forked from yandex/gixy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support multiple config files (yandex#47)
- Loading branch information
Showing
10 changed files
with
122 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,43 @@ | ||
{% set colors = {'DEF': '\033[0m', 'TITLE': '\033[95m', 'UNSPECIFIED': '\033[0m', 'LOW': '\033[94m', 'MEDIUM': '\033[93m', 'HIGH': '\033[91m'} %} | ||
|
||
{{ colors['TITLE'] }}==================== Results ==================={{ colors['DEF'] }} | ||
{{ colors.TITLE }}==================== Results ==================={{ colors.DEF }} | ||
{% for path, issues in reports.items() %} | ||
File path: {{ path }} | ||
{% if not issues %} | ||
No issues found. | ||
|
||
{% else %} | ||
|
||
{% for issue in issues|sort(attribute='severity') %} | ||
{{ colors[issue.severity] }}Problem: [{{ issue.plugin }}] {{ issue.summary }} | ||
{{ colors[issue.severity] }}>> Problem: [{{ issue.plugin }}] {{ issue.summary }} | ||
{% if issue.description %} | ||
Description: {{ issue.description }} | ||
Description: {{ issue.description }} | ||
{% endif %} | ||
{% if issue.help_url %} | ||
Additional info: {{ issue.help_url }} | ||
Additional info: {{ issue.help_url }} | ||
{% endif %} | ||
{% if issue.reason %} | ||
Reason: {{ issue.reason }} | ||
Reason: {{ issue.reason }} | ||
{% endif %} | ||
{{ colors['DEF'] }}Pseudo config:{{ issue.config }} | ||
Pseudo config:{{ colors.DEF }} | ||
{{ issue.config }} | ||
|
||
{% if not loop.last %} | ||
--------8<--------8<--------8<--------8<-------- | ||
------------------------------------------------ | ||
|
||
{% endif %} | ||
{% endfor %} | ||
{% endif %} | ||
{% if not loop.last %} | ||
--------8<--------8<--------8<--------8<-------- | ||
|
||
{% endif %} | ||
{% endfor %} | ||
{% if stats %} | ||
{{ colors['TITLE'] }}==================== Summary ==================={{ colors['DEF'] }} | ||
{{ colors.TITLE }}==================== Summary ==================={{ colors.DEF }} | ||
Total issues: | ||
Unspecified: {{ stats['UNSPECIFIED'] }} | ||
Low: {{ stats['LOW'] }} | ||
Medium: {{ stats['MEDIUM'] }} | ||
High: {{ stats['HIGH'] }} | ||
Unspecified: {{ stats.UNSPECIFIED }} | ||
Low: {{ stats.LOW }} | ||
Medium: {{ stats.MEDIUM }} | ||
High: {{ stats.HIGH }} | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,43 @@ | ||
|
||
==================== Results =================== | ||
{% for path, issues in reports.items() %} | ||
File path: {{ path }} | ||
{% if not issues %} | ||
No issues found. | ||
|
||
{% else %} | ||
|
||
{% for issue in issues|sort(attribute='severity') %} | ||
Problem: [{{ issue.plugin }}] {{ issue.summary }} | ||
Severity: {{ issue.severity }} | ||
>> Problem: [{{ issue.plugin }}] {{ issue.summary }} | ||
Severity: {{ issue.severity }} | ||
{% if issue.description %} | ||
Description: {{ issue.description }} | ||
Description: {{ issue.description }} | ||
{% endif %} | ||
{% if issue.help_url %} | ||
Additional info: {{ issue.help_url }} | ||
Additional info: {{ issue.help_url }} | ||
{% endif %} | ||
{% if issue.reason %} | ||
Reason: {{ issue.reason }} | ||
Reason: {{ issue.reason }} | ||
{% endif %} | ||
Pseudo config: {{ issue.config }} | ||
Pseudo config: | ||
{{ issue.config }} | ||
|
||
{% if not loop.last %} | ||
--------8<--------8<--------8<--------8<-------- | ||
------------------------------------------------ | ||
|
||
{% endif %} | ||
{% endfor %} | ||
{% endif %} | ||
{% if not loop.last %} | ||
--------8<--------8<--------8<--------8<-------- | ||
|
||
{% endif %} | ||
{% endfor %} | ||
{% if stats %} | ||
==================== Summary =================== | ||
Total issues: | ||
Unspecified: {{ stats['UNSPECIFIED'] }} | ||
Low: {{ stats['LOW'] }} | ||
Medium: {{ stats['MEDIUM'] }} | ||
High: {{ stats['HIGH'] }} | ||
Unspecified: {{ stats.UNSPECIFIED }} | ||
Low: {{ stats.LOW }} | ||
Medium: {{ stats.MEDIUM }} | ||
High: {{ stats.HIGH }} | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters