Skip to content

Commit 63d6bbd

Browse files
committed
fix rule-4-4 -> dir-4-4
1 parent f22c1ef commit 63d6bbd

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

c/misra/src/rules/RULE-4-4/SectionsOfCodeShallNotBeCommentedOut.ql renamed to c/misra/src/rules/DIR-4-4/SectionsOfCodeShallNotBeCommentedOut.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/**
22
* @id c/misra/sections-of-code-shall-not-be-commented-out
3-
* @name RULE-4-4: Sections of code should not be commented out
3+
* @name DIR-4-4: Sections of code should not be commented out
44
* @description Commented out code may become out of date leading to developer confusion.
55
* @kind problem
66
* @precision high
77
* @problem.severity warning
8-
* @tags external/misra/id/rule-4-4
8+
* @tags external/misra/id/dir-4-4
99
* maintainability
1010
* readability
1111
* correctness

cpp/common/src/codingstandards/cpp/exclusions/c/Syntax.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ predicate isSyntaxQueryMetadata(Query query, string queryId, string ruleId) {
4343
queryId =
4444
// `@id` for the `sectionsOfCodeShallNotBeCommentedOut` query
4545
"c/misra/sections-of-code-shall-not-be-commented-out" and
46-
ruleId = "RULE-4-4"
46+
ruleId = "DIR-4-4"
4747
or
4848
query =
4949
// `Query` instance for the `identifiersInTheSameNameSpaceUnambiguous` query

rule_packages/c/Syntax.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
],
6363
"title": "Octal and hexadecimal escape sequences shall be terminated"
6464
},
65-
"RULE-4-4": {
65+
"DIR-4-4": {
6666
"properties": {
6767
"obligation": "advisory"
6868
},

0 commit comments

Comments
 (0)