-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Open
Nettozx
wants to merge
70
commits into
danmar:main
Choose a base branch
from
Nettozx:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,177
−26
Open
Changes from all commits
Commits
Show all changes
70 commits
Select commit
Hold shift + click to select a range
793e0a6
add description for sarif based on id so github doesnt show same text…
Nettozx 152f804
better description handling and add rule.name to serialize
Nettozx f68a78e
only set severity level for security related sarif findings
Nettozx 348abc7
set problem severity for non security findings
Nettozx 11d537a
Merge branch 'danmar:main' into main
Nettozx ad9703a
no prefix string, and always set problem severity
Nettozx 6c231a6
Merge branch 'main' of github.com:Nettozx/cppcheck
Nettozx 49f64df
set defaultConfiguration to the same severity level
Nettozx 86846fc
oops it was already there
Nettozx af080f2
guess recommendation is not valid even though the github documentatio…
Nettozx ed9b0ae
security-severity needs to be a string
Nettozx ce9c164
try short message for name
Nettozx 069b0dd
update description functions to fallback to values from finding. add …
Nettozx 1ddf844
change name back to short desc, change short desc to shortMessage, up…
Nettozx 428f2ef
revert the shortDescription value, that causes the original issue to …
Nettozx 50575b0
update comment
Nettozx c19bca9
more comment updates
Nettozx c1c4e90
add to authors
Nettozx a0da1e0
braces
Nettozx de9a4bc
unit tests
Nettozx e46a4fb
remove duplicate code
Nettozx c1d8f9b
match sarifSeverity for security-severity levels
Nettozx b43ac8f
fix misconception about isCriticalErrorId()
Nettozx 8c9e3a9
update unit test
Nettozx ef874d3
test generic message builder
Nettozx cc301a5
Merge branch 'danmar:main' into generic
Nettozx 346587a
add more regex to handle empty qutoes and extra spaces
Nettozx 692c237
formatting
Nettozx 5461bf1
add more pattern recognition for generification output. update messag…
Nettozx e676f87
uncrustify downloaded from link has _f suffix, update DETECTED_VERSIO…
Nettozx 9a402a8
added unit tests for sarif and ran uncrustify
Nettozx 2d15a78
add cwe tags
Nettozx f941ec9
add tests for cwe tags
Nettozx eb23dbe
fix regex issues for repeated varnames and empty brackets. fix issue …
Nettozx af98d3b
add more sarif test cases
Nettozx 6b29143
fix issue for invalidScanfArgType_int output not being generic
Nettozx dff042a
fix scanf regex and add unit test for it
Nettozx 47cec25
remove ruleID specific pattern matching and define generic regex that…
Nettozx 235f950
fix column number being 0 issue
Nettozx 35c575a
allow cwe tags for all rules and not just security related
Nettozx 58df85f
more regex patterns to cover more instance specific data coming throu…
Nettozx 2b64d7a
make description getters static
Nettozx 5f2195e
Merge branch 'main' into main
Nettozx 93c3a8f
move logic to errorlogger and make generic member
Nettozx dba842a
more regex and cleanup duplicate logic
Nettozx 6c2829d
make it more simpler, remove generic for xml, update tests
Nettozx c978499
run uncrustify
Nettozx ee36017
Merge pull request #1 from Nettozx/generic
Nettozx aaea761
just make everything empty strings because github will then default t…
Nettozx 754e509
dont need generic message anymore
Nettozx bab310b
revert error logger tests
Nettozx 2e721e9
remove irrelevant tests
Nettozx cc9702c
add test case to check instance specific error messages
Nettozx cf78418
run uncrustify
Nettozx f52bce4
add description
Nettozx 928d988
cross platform approach to running tests copied from cppcheckexecutor
Nettozx c973c26
run uncrustify
Nettozx e789c06
Merge branch 'generic'
Nettozx 717d459
remove any unneccessary changes
Nettozx 6e8bf04
revert formatting changes made by uncrustify. use ss instead of to_st…
Nettozx a1562fa
fix selfcheck issues
Nettozx 143e2c8
add attempts at other executable paths
Nettozx 47749d2
fix clang-tidy issues
Nettozx 50b7c22
few more braces
Nettozx 88854d4
revert a few more spacing
Nettozx ac402ff
cmake executable path in test, and clang-tidy fixes
Nettozx c1be953
empty spaces
Nettozx f2ab096
fix selfcheck issues
Nettozx 74999d5
fix clang-tidy issues
Nettozx deb707f
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
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.