reuse.lint module#
All linting happens here. The linting here is nothing more than reading the reports and printing some conclusions.
- reuse.lint.format_json(report)[source]#
Formats data dictionary as JSON string ready to be printed to sys.stdout
- Parameters:
report (
ProjectReport
) – Dictionary containing formatted ProjectReport data- Return type:
- Returns:
String (representing JSON) that can be output to sys.stdout
- reuse.lint.format_plain(report)[source]#
Formats data dictionary as plaintext string to be printed to sys.stdout
- Parameters:
report (
ProjectReport
) – ProjectReport data- Return type:
- Returns:
String (in plaintext) that can be output to sys.stdout