Skip to content

Commit 5b33319

Browse files
Add package json
1 parent 7d2cd6f commit 5b33319

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

rule_packages/cpp/DeadCode9.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"MISRA-C++-2023": {
3+
"RULE-0-2-3": {
4+
"properties": {
5+
"enforcement": "decidable",
6+
"obligation": "advisory"
7+
},
8+
"queries": [
9+
{
10+
"description": "Types that are unused with limited visibility are unnecessary and should either be removed or may indicate a developer mistake.",
11+
"kind": "problem",
12+
"name": "Types with limited visibility should be used at least once",
13+
"precision": "very-high",
14+
"severity": "error",
15+
"short_name": "UnusedTypeWithLimitedVisibility",
16+
"tags": [
17+
"scope/single-translation-unit",
18+
"maintainability",
19+
"correctness"
20+
],
21+
"implementation_scope": {
22+
"description": "CodeQL extractor information for hidden friends is limited, and the number of hidden friends may be overestimated, resulting in false positives."
23+
}
24+
}
25+
],
26+
"title": "Types with limited visibility should be used at least once"
27+
}
28+
}
29+
}

0 commit comments

Comments
 (0)