Skip to content
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

Merged
merged 1 commit into from
Jan 30, 2018
Merged

Conversation

csordasmarton
Copy link
Contributor

  • Adding new command line filters for detection status and review status.
  • Mark suppressed option of the command line client as deprecated.

@csordasmarton csordasmarton added enhancement 🌟 CLI 💻 Related to the command-line interface, such as the cmd, store, etc. commands labels Jan 23, 2018
@csordasmarton csordasmarton added this to the release 6.5 milestone Jan 23, 2018
@csordasmarton csordasmarton requested review from dkrupp and gyorb January 23, 2018 16:11
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 "
Copy link
Contributor

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.

"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\"")
Copy link
Contributor

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\").")
Copy link
Contributor

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.

* Adding new command line filters for detection status and review
status.
* Mark `suppressed` option of the command line client as deprecated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLI 💻 Related to the command-line interface, such as the cmd, store, etc. commands enhancement 🌟
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants