Skip to content

Commit b0cb1c6

Browse files
committed
[feat] Display guideline levels in the guideline statistics table
Some guidelines have their own severity ranking, like the levels at SEI-CERT. In this commit these are also displayed at the guideline statistics table.
1 parent 463081e commit b0cb1c6

14 files changed

Lines changed: 30 additions & 16 deletions

File tree

-68.8 KB
Binary file not shown.
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.67.0",
3+
"version": "6.68.0",
44
"description": "Generated node.js compatible API stubs for CodeChecker server.",
55
"main": "lib",
66
"homepage": "https://github.com/Ericsson/codechecker",
111 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.67.0'
11+
api_version = '6.68.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.67.0'
11+
api_version = '6.68.0'
1212

1313
setup(
1414
name='codechecker_api_shared',

web/api/report_server.thrift

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -566,10 +566,11 @@ struct Guideline {
566566
}
567567

568568
struct Rule {
569-
1: string ruleId, // The identifier of the rule.
570-
2: string title, // The rule summary.
571-
3: string url, // The link of the rule page.
572-
4: list<string> checkers // List of checker names
569+
1: string ruleId, // The identifier of the rule.
570+
2: string title, // The rule summary.
571+
3: string url, // The link of the rule page.
572+
4: list<string> checkers, // List of checker names,
573+
5: optional string level,
573574
}
574575
typedef map<string, list<Rule>> GuidelineRules
575576

web/codechecker_web/shared/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# The newest supported minor version (value) for each supported major version
2121
# (key) in this particular build.
2222
SUPPORTED_VERSIONS = {
23-
6: 67
23+
6: 68
2424
}
2525

2626
# Used by the client to automatically identify the latest major and minor

web/server/codechecker_server/api/report_server.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2839,7 +2839,8 @@ def getGuidelineRules(
28392839
ruleId=rule.lower(),
28402840
title=rules[rule].get("title", ""),
28412841
url=rules[rule].get("rule_url", ""),
2842-
checkers=checkers
2842+
checkers=checkers,
2843+
level=rules[rule].get("level", "")
28432844
)
28442845
)
28452846

0 commit comments

Comments
 (0)