Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion web/api/js/codechecker-api-node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "codechecker-api",
"version": "6.67.0",
"version": "6.68.0",
"description": "Generated node.js compatible API stubs for CodeChecker server.",
"main": "lib",
"homepage": "https://github.com/Ericsson/codechecker",
Expand Down
Binary file modified web/api/py/codechecker_api/dist/codechecker_api.tar.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion web/api/py/codechecker_api/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
with open('README.md', encoding='utf-8', errors="ignore") as f:
long_description = f.read()

api_version = '6.67.0'
api_version = '6.68.0'

setup(
name='codechecker_api',
Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion web/api/py/codechecker_api_shared/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
with open('README.md', encoding='utf-8', errors="ignore") as f:
long_description = f.read()

api_version = '6.67.0'
api_version = '6.68.0'

setup(
name='codechecker_api_shared',
Expand Down
9 changes: 5 additions & 4 deletions web/api/report_server.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -566,10 +566,11 @@ struct Guideline {
}

struct Rule {
1: string ruleId, // The identifier of the rule.
2: string title, // The rule summary.
3: string url, // The link of the rule page.
4: list<string> checkers // List of checker names
1: string ruleId, // The identifier of the rule.
2: string title, // The rule summary.
3: string url, // The link of the rule page.
4: list<string> checkers, // List of checker names,
5: optional string level,
}
typedef map<string, list<Rule>> GuidelineRules

Expand Down
2 changes: 1 addition & 1 deletion web/codechecker_web/shared/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# The newest supported minor version (value) for each supported major version
# (key) in this particular build.
SUPPORTED_VERSIONS = {
6: 67
6: 68
}

# Used by the client to automatically identify the latest major and minor
Expand Down
3 changes: 2 additions & 1 deletion web/server/codechecker_server/api/report_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -2839,7 +2839,8 @@ def getGuidelineRules(
ruleId=rule.lower(),
title=rules[rule].get("title", ""),
url=rules[rule].get("rule_url", ""),
checkers=checkers
checkers=checkers,
level=rules[rule].get("level", "")
)
)

Expand Down
8 changes: 4 additions & 4 deletions web/server/vue-cli/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion web/server/vue-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@mdi/font": "^6.5.95",
"chart.js": "^2.9.4",
"chartjs-plugin-datalabels": "^0.7.0",
"codechecker-api": "file:../../api/js/codechecker-api-node/dist/codechecker-api-6.67.0.tgz",
"codechecker-api": "file:../../api/js/codechecker-api-node/dist/codechecker-api-6.68.0.tgz",
"codemirror": "^5.65.0",
"date-fns": "^2.28.0",
"js-cookie": "^3.0.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ export default {
guidelineRule: rule.ruleId,
guidelineUrl: rule.url,
guidelineRuleTitle: rule.title,
guidelineLevel: rule.level,
checkers: filtered_stat.length
? filtered_stat.map(checkerId => {
return {
Expand Down Expand Up @@ -391,7 +392,8 @@ export default {
title: rule.title,
url: rule.url,
checkers: checkers_with_severity.filter(
cws => rule.checkers.includes(cws.checkerName))
cws => rule.checkers.includes(cws.checkerName)),
level: rule.level
};
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
sort-by="checkers.severity"
sort-desc
@enabled-click="enabledClick"
/>
/>
</template>

<script>
Expand Down Expand Up @@ -42,6 +42,10 @@ export default {
text: "Title",
value: "guidelineRuleTitle"
},
{
text: "Level",
value: "guidelineLevel"
},
{
text: "Related Checker(s)",
value: "checkers.name"
Expand Down Expand Up @@ -75,12 +79,18 @@ export default {
return this.items.some(item => item.guidelineRuleTitle);
},

hasLevel() {
return this.items.some(item => item.guidelineLevel);
},

tableHeaders() {
if (!this.headers) return;

return this.headers.filter(header => {
if (header.value === "guidelineRuleTitle") {
return this.hasTitle;
} else if (header.value === "guidelineLevel") {
return this.hasLevel;
}

return true;
Expand Down