-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Add SARIF output support. #4651
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 1 commit
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
8f10eef
Refactor XML output through the new `XMLAnalysisReport` class.
mario-campos 6f0b5f0
Refactor out CLI error messages into the new class `CLIAnalysisReport`.
mario-campos e736e59
Change snake-cased `add_finding` to camelCased `addFinding`.
mario-campos 963267b
Add SARIF output format with the new `SARIFAnalysisReport` class.
mario-campos b495ccd
Reformat files to fix warnings.
mario-campos 44ea258
Include externals/picojson for building cppcheck CLI with cmake.
mario-campos 918d9cf
Abstract classes must implement a destructor, even if its virtual.
mario-campos f92e1fd
Add a parameter name to the XMLAnalysisReport method.
mario-campos a5298d3
Use std::unique_ptr instead of new/free.
mario-campos a1f442d
Output severity in SARIF report.
mario-campos 349dc0b
Output precision in SARIF report.
mario-campos c501cdd
Output line/column numbers in SARIF report.
mario-campos ca7214f
Unify spacing and alignment in std::map literal.
mario-campos b81988e
Unify spacing around std::map literals.
mario-campos df790fd
Change static methods to static functions.
mario-campos b1b7239
Fix SARIF report by making `runs` property an array.
mario-campos 6835c6a
Include Cppcheck homepage URL to SARIF report.
mario-campos d92b72b
Add SARIFAnalysisReport documentation as comment.
mario-campos 551f7ed
Add missing <memory> include to use `std::unique_ptr`.
mario-campos 5f13e12
Fix `switch`/`case` alignment to please uncrustify.
mario-campos 9a73d59
Fix clang-tidy findings.
mario-campos 9b5310f
Add analysis report objects to Makefile's testrunner target.
mario-campos c7a9611
Fix --errorlist by hoisting mReport assignment earlier in the code.
mario-campos b4058ca
Check (and error) if XML and SARIF outputs are both specified.
mario-campos 915d9fb
Fix XML pretty-print by appending new-line to XML error message.
mario-campos 455ab5f
Add CLI system test to test that the SARIF file has expected structur…
mario-campos a4671e5
Rename *AnalysisReport::emit() to serialize().
mario-campos 2e88265
Fix forgotten `sarif` field initialization in settings.cpp.
mario-campos 3a647e5
Refactor duplicate-branch conditional statement.
mario-campos 4ecafee
Put `sarif` property in alphabetical order of other properties.
mario-campos a22a1ac
Refactor SARIFAnalysisReport::addFinding() from 2 to 1 line!
mario-campos 1a20b60
Fix XML alignment by adding missing newline character.
mario-campos d1c2d83
Undo changes to merge CLI findings into separate class.
mario-campos 13ce02e
`std::move` more objects in sarifanalysisreport.cpp.
mario-campos 03d91ac
Use range-based for loop for SARIF generation.
mario-campos e14ff71
Use constant reference.
mario-campos 74950dc
Improve error message to be more helpful.
mario-campos 3abccfc
Add CLIAnalysisReport class for outputting findings to CLI.
mario-campos 1cc3516
Indent the member initialization for uncrusty.
mario-campos 21eba3b
Fix the extra new-line character that was added.
mario-campos b341465
Use `--output-format` instead of `--sarif`.
mario-campos 1b32554
Use move semantics for SARIF generation if PicoJSON supports it.
mario-campos eacd087
Fix tests by using `--output-format=xml` instead of `--xml`.
mario-campos 9995bb1
Forgot to include windows.h for Windows OSes.
mario-campos e53984e
Fix selfcheck and clang-tidy warnings about passing std::string by va…
mario-campos 3b2fda2
Need to link the *analysisreport.o object files for testrunner.
mario-campos File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Output line/column numbers in SARIF report.
- Loading branch information
commit c501cddb83e722d942e2e81382bcd9cc6531e3de
There are no files selected for viewing
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.