Skip to content

Commit

Permalink
Add output data format version to header
Browse files Browse the repository at this point in the history
Adds a new attribute `output_format_version` to the scancode header
to support output data format versioning.
See aboutcode-org/scancode-toolkit#2653 for more details.

Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
  • Loading branch information
AyanSinhaMahapatra committed Aug 30, 2021
1 parent 2e98f92 commit 036061f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/commoncode/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ class Header(object):
notice = String(default='', help='Notice text for this tool.')
start_timestamp = String(help='Start timestamp for this header.')
end_timestamp = String(help='End timestamp for this header.')
output_format_version = String(help='Version for the scancode output data format, such as v1.1 .')
duration = String(help='Scan duration in seconds.')
message = String(help='Message text.')
errors = List(help='List of error messages.')
Expand Down

0 comments on commit 036061f

Please sign in to comment.