-
Notifications
You must be signed in to change notification settings - Fork 385
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
Extend command line filters #1312
Conversation
libcodechecker/libhandlers/cmd.py
Outdated
parser.add_argument('-s', '--suppressed', | ||
dest="suppressed", | ||
action='store_true', | ||
help="Show only suppressed results instead of only " | ||
"unsuppressed ones.") | ||
help="DEPRECATED. Show only suppressed results " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would mention here that the users should use the --filter
option to get false positive (suppressed) results.
libcodechecker/libhandlers/cmd.py
Outdated
"file_paths, detection_statuses, review_statuses " | ||
"should be a comma separated list, e.g.:" | ||
"\"high,medium:unix,core:*.cpp,*.h:" | ||
"new,unresolved:confirmed,wont_fix\"") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we deprecate the --suppressed
option I think we should provide an example filter where we get the false positives.
if filter_str.count(':') != 4: | ||
LOG.error("Filter string has to contain four colons (e.g. " | ||
"\"high,medium:unix,core:*.cpp:new,unresolved:confirmed," | ||
"wont_fix\").") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use a false positive filter in the example.
0818275
to
c044527
Compare
* Adding new command line filters for detection status and review status. * Mark `suppressed` option of the command line client as deprecated.
c044527
to
672d940
Compare
suppressed
option of the command line client as deprecated.