-
Notifications
You must be signed in to change notification settings - Fork 379
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
Use the new client count/filter api everywhere #918
Conversation
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.
User interface changed, please update docs/user_guide.md
too. (--filter
is in some "common arguments" section)
libcodechecker/libhandlers/cmd.py
Outdated
@@ -131,7 +131,10 @@ def __add_filtering_arguments(parser): | |||
default="::", | |||
help="Filter results. The filter string has the " | |||
"following format: " | |||
"<severity>:<checker_name>:<file_path>") | |||
"[<severities>]:[<checker_names>]:[<file_paths>] " |
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.
"Variables" in the help should be UPPERCASE.
libcodechecker/libhandlers/cmd.py
Outdated
@@ -131,7 +131,10 @@ def __add_filtering_arguments(parser): | |||
default="::", | |||
help="Filter results. The filter string has the " | |||
"following format: " | |||
"<severity>:<checker_name>:<file_path>") | |||
"[<severities>]:[<checker_names>]:[<file_paths>] " | |||
"where severites, checker_names, " |
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.
Keep the same syntax: <SEVERITIES>
, etc.
libcodechecker/libhandlers/cmd.py
Outdated
"<severity>:<checker_name>:<file_path>") | ||
"[<severities>]:[<checker_names>]:[<file_paths>] " | ||
"where severites, checker_names, " | ||
"file_paths should be a coma separated list. " |
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.
s/coma/comma, and list,
, not a .
libcodechecker/libhandlers/cmd.py
Outdated
"[<severities>]:[<checker_names>]:[<file_paths>] " | ||
"where severites, checker_names, " | ||
"file_paths should be a coma separated list. " | ||
"Eg.: \"high,medium:unix,core:*.cpp,*.h\"") |
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.
e.g.:
* use the new filtering api in the command line * remove the old api calls * remove the temporary v2 naming
@@ -1105,11 +1105,14 @@ positional arguments: | |||
|
|||
optional arguments: | |||
-h, --help show this help message and exit | |||
-s, --suppressed Filter results to only show suppressed entries. | |||
(default: False) | |||
-s, --suppressed Show only suppressed results instead of only |
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.
Is suppression still a thing?
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've just updated the documentation based on the current command output.
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.
CodeChecker cmd results
has a suppressed option
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 know it does. But does it need to have one, since the new API? Note that detection status and review status changes were introduced without a proper command-line touch-up.
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.
Ok, I've got your point, this should be rechecked later, as you mentioned.
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.
Let's consider the --suppress
option and its justification of existence later on. For now, this is good.
Last part of #687