Commit Graph

12 Commits

Author SHA1 Message Date
Michael Hohn
85ddaaafe1 sarif-results-summary: add codeFlow (path-problem) output, remove meta-data
The per-language result counts are removed; they belong in a separate sarif-info script.
2021-12-06 11:48:53 -08:00
Michael Hohn
6147e57260 Introduce get_relatedlocation_message_info to co-locate tree information 2021-11-17 16:34:20 -08:00
Michael Hohn
1f7e78b049 refactor: introduce get_location_message_info 2021-11-17 16:28:43 -08:00
Michael Hohn
90758f769f factor common code into display_underlined 2021-11-17 15:56:43 -08:00
Michael Hohn
9f3be7bcb0 Log missing files, but try to continue execution 2021-11-16 21:45:54 -08:00
Michael Hohn
e36874cb54 sarif-results-summary: underline affected code region
Using
    sarif-results-summary -s data/linux-small data/torvalds_linux__2021-10-21_10_07_00__export.sarif |less
now underscores the indicated regions, e.g.

tools/cgroup/iocost_monitor.py:64:5:64:27: Normal methods should have 'self', rather than 'blkcg', as their first parameter.

    def blkcg_name(blkcg):
    ^^^^^^^^^^^^^^^^^^^^^^
2021-11-15 14:16:23 -08:00
Michael Hohn
a756abbb09 Consistency with tabs in Python source code
In load_lines, use 1 space for each tab
2021-11-15 14:00:18 -08:00
Michael Hohn
912f75c52a fix load_lines: only strip newlines 2021-11-15 13:41:51 -08:00
Michael Hohn
b69eec404d sarif-results-summary -s: include source file lines in output 2021-11-09 16:10:12 -08:00
Michael Hohn
ab1d7c27ef Use sensible values for start/end line/columns for empty entries in the sarif 'region' structure. 2021-11-09 15:04:36 -08:00
Michael Hohn
a0af2c8c59 fix: traverse all languages 2021-11-09 14:29:31 -08:00
Michael Hohn
3032fe3fcd pre-alpha versions of bin/sarif-{digest,labeled,list-files,results-summary 2021-11-09 12:21:12 -08:00