Skip to content

Commit 87cf955

Browse files
authored
Merge pull request #4712 from gulyasgergely902/add-new-report-filter-6483
[feat] Add new report filtering mode
2 parents 65c5db5 + 02e8f55 commit 87cf955

File tree

30 files changed

+321
-75
lines changed

30 files changed

+321
-75
lines changed

docs/web/user_guide.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -799,6 +799,9 @@ filter arguments:
799799
Filter reports where the report path not only ends in
800800
the files given by --file or --component, but goes
801801
through them. (default: False)
802+
--single-origin-report
803+
Filter reports where the report path is entirely in
804+
the files specified by the given --component.
802805
```
803806

804807
#### Source components (`components`)
-68.9 KB
Binary file not shown.
68.8 KB
Binary file not shown.

web/api/js/codechecker-api-node/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codechecker-api",
3-
"version": "6.66.0",
3+
"version": "6.67.0",
44
"description": "Generated node.js compatible API stubs for CodeChecker server.",
55
"main": "lib",
66
"homepage": "https://github.com/Ericsson/codechecker",
13 Bytes
Binary file not shown.

web/api/py/codechecker_api/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
with open('README.md', encoding='utf-8', errors="ignore") as f:
99
long_description = f.read()
1010

11-
api_version = '6.66.0'
11+
api_version = '6.67.0'
1212

1313
setup(
1414
name='codechecker_api',
Binary file not shown.

web/api/py/codechecker_api_shared/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
with open('README.md', encoding='utf-8', errors="ignore") as f:
99
long_description = f.read()
1010

11-
api_version = '6.66.0'
11+
api_version = '6.67.0'
1212

1313
setup(
1414
name='codechecker_api_shared',

web/api/report_server.thrift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,8 @@ struct ReportFilter {
402402
// have "value1" OR "value2" for "key1" AND have "value3" for "key2".
403403
22: optional list<Pair> annotations,
404404
23: optional list<ReportStatus> reportStatus, // Specifying the status of the filtered reports.
405+
// If set, report filter filters only the components where the whole report path is inside.
406+
24: optional bool fullReportPathInComponent,
405407
}
406408

407409
struct RunReportCount {

web/client/codechecker_client/cli/cmd.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
'review_status': ['unreviewed', 'confirmed'],
3535
'detection_status': ['new', 'reopened', 'unresolved'],
3636
'uniqueing': 'off',
37-
'anywhere_on_report_path': False
37+
'anywhere_on_report_path': False,
38+
'single_origin_report': False
3839
}
3940

4041
DEFAULT_OUTPUT_FORMATS = ["plaintext"] + USER_FORMATS
@@ -438,6 +439,15 @@ def init_default(dest):
438439
"ends in the files given by --file or "
439440
"--component, but goes through them.")
440441

442+
f_group.add_argument('--single-origin-report',
443+
dest='single_origin_report',
444+
required=False,
445+
default=init_default('single_origin_report'),
446+
action="store_true",
447+
help="Filter reports where the report path is "
448+
"entirely in the files specified by the "
449+
"given --component.")
450+
441451

442452
def __register_results(parser):
443453
"""

0 commit comments

Comments
 (0)