-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Fix first instance rule being used as rule description for all violations of that rule and other SARIF improvements #7640
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
Merged
Merged
Changes from 83 commits
Commits
Show all changes
86 commits
Select commit
Hold shift + click to select a range
14358c8
add description for sarif based on id so github doesnt show same text…
Nettozx 1ae55cf
better description handling and add rule.name to serialize
Nettozx 79ac227
only set severity level for security related sarif findings
Nettozx 69f3660
set problem severity for non security findings
Nettozx 4535112
no prefix string, and always set problem severity
Nettozx dc43e84
set defaultConfiguration to the same severity level
Nettozx 890d5b1
oops it was already there
Nettozx b43cca3
guess recommendation is not valid even though the github documentatio…
Nettozx 0b8785f
security-severity needs to be a string
Nettozx 7dd044e
try short message for name
Nettozx d52efa7
update description functions to fallback to values from finding. add …
Nettozx f379da1
change name back to short desc, change short desc to shortMessage, up…
Nettozx 0e48504
revert the shortDescription value, that causes the original issue to …
Nettozx 938788d
update comment
Nettozx 706913a
more comment updates
Nettozx 8033d32
add to authors
Nettozx 49c6134
braces
Nettozx c2c16bd
unit tests
Nettozx 40f36bc
remove duplicate code
Nettozx dca6a13
match sarifSeverity for security-severity levels
Nettozx 7eedb24
fix misconception about isCriticalErrorId()
Nettozx 76ad903
update unit test
Nettozx 29aaecc
test generic message builder
Nettozx 3023b39
add more regex to handle empty qutoes and extra spaces
Nettozx 17ffc24
formatting
Nettozx 3000f92
add more pattern recognition for generification output. update messag…
Nettozx 433ddde
uncrustify downloaded from link has _f suffix, update DETECTED_VERSIO…
Nettozx 40fcaaa
added unit tests for sarif and ran uncrustify
Nettozx 2109f05
add cwe tags
Nettozx 4d6f508
add tests for cwe tags
Nettozx cf231bf
fix regex issues for repeated varnames and empty brackets. fix issue …
Nettozx 370c7d6
add more sarif test cases
Nettozx 7f5b4a3
fix issue for invalidScanfArgType_int output not being generic
Nettozx 824e273
fix scanf regex and add unit test for it
Nettozx c1f6a41
remove ruleID specific pattern matching and define generic regex that…
Nettozx 6f63179
fix column number being 0 issue
Nettozx 9009cc3
allow cwe tags for all rules and not just security related
Nettozx 3934973
more regex patterns to cover more instance specific data coming throu…
Nettozx e6487ae
make description getters static
Nettozx fd12bf2
move logic to errorlogger and make generic member
Nettozx 9e7b493
more regex and cleanup duplicate logic
Nettozx d4d73b2
make it more simpler, remove generic for xml, update tests
Nettozx ba900cd
run uncrustify
Nettozx c24fb46
just make everything empty strings because github will then default t…
Nettozx e51f922
dont need generic message anymore
Nettozx 98f15c1
revert error logger tests
Nettozx 94c7c76
remove irrelevant tests
Nettozx c03b22e
add test case to check instance specific error messages
Nettozx 1bb8d9c
run uncrustify
Nettozx 91e337f
add description
Nettozx 8d3f483
cross platform approach to running tests copied from cppcheckexecutor
Nettozx 44af45e
run uncrustify
Nettozx f505636
remove any unneccessary changes
Nettozx 41e75c4
revert formatting changes made by uncrustify. use ss instead of to_st…
Nettozx f34bea1
fix selfcheck issues
Nettozx 4c140e1
add attempts at other executable paths
Nettozx b746746
fix clang-tidy issues
Nettozx 92c64d4
few more braces
Nettozx 2e9d793
revert a few more spacing
Nettozx a02cf35
cmake executable path in test, and clang-tidy fixes
Nettozx 9213093
empty spaces
Nettozx 43af896
fix selfcheck issues
Nettozx 47b62e4
fix clang-tidy issues
Nettozx dbce578
add helper since selfcheck complains both ways
Nettozx 299d61a
fix formatter complaint
Nettozx f756552
fix dmake issue
Nettozx 8a59d00
windows executable path changed since last merge
Nettozx dba1ef9
move sarif reporter to its own class so it can be used for tests, cha…
Nettozx 38e8069
selfcheck and clangtidy fixes
Nettozx 8c7a531
Move SarifReport class to lib directory to fix Windows DLL export issues
Nettozx bd1b29f
Fix Linux Makefile dependencies for moved sarifreport files
Nettozx ece5f5a
dmake
Nettozx 07f0fe4
Fix picojson type conflicts in sarifreport - Remove incorrect forward…
Nettozx 71d3991
dmake
Nettozx 976008e
formatting
Nettozx 00247ca
default constructors in header
Nettozx 669dfc3
move system tests to python script
Nettozx 8b1e5ac
unit tests for sarifreport
Nettozx 8619148
undo uncrustify fix
Nettozx c751918
formatting and python lint issues
Nettozx 68cc214
clang tidy
Nettozx c0ebf70
fix windows build issue
Nettozx 4de30a0
fix shadow var and format issues
Nettozx e2a8521
move unique error check above output format check
Nettozx 783eb98
Merge branch 'main' into main
Nettozx fb42232
Merge branch 'main' into main
Nettozx 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
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
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
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
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
Oops, something went wrong.
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.