Merge ubuntu-security-tools:json-output into ubuntu-security-tools:master
Proposed by
Mark Esler
Status: | Rejected |
---|---|
Rejected by: | Mark Esler |
Proposed branch: | ubuntu-security-tools:json-output |
Merge into: | ubuntu-security-tools:master |
Diff against target: |
245 lines (+120/-66) 2 files modified
audits/shellcheck-json.sh (+2/-0) audits/uaudit (+118/-66) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Alex Murray | Needs Fixing | ||
Review via email: mp+431459@code.launchpad.net |
This proposal has been superseded by a proposal from 2022-10-14.
Commit message
extends StaticAnalysisTool to allow optional JSON output
Description of the change
Primarily extends the StaticAnalysisTool class. StaticAnalysisT
bandit and scc have cmd_json examples. Most other tools support JSON output.
To post a comment you must log in.
Since both tools support `--format json` why not have a supports_ format_ json boolean parameter which defaults to False but when set means the tools get run twice (with and without the --format json parameters) and then we can always generated both json and text output? Then you don't have to add the --json top level command-line flag.