Skip to content

Commit 6b575f4

Browse files
committed
updated metadata for 16-5
1 parent 0e68e41 commit 6b575f4

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

c/misra/src/rules/RULE-16-5/DefaultNotFirstOrLastOfSwitch.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/**
22
* @id c/misra/default-not-first-or-last-of-switch
3-
* @name RULE-16-5: A default label shall appear as either the first or the last switch label of a switch statement
3+
* @name RULE-16-5: A default label shall appear as either the first or the last switch label or a switch statement
44
* @description Locating the default label is easy when it the first of last label.
55
* @kind problem
66
* @precision very-high
7-
* @problem.severity error
7+
* @problem.severity recommendation
88
* @tags external/misra/id/rule-16-5
99
* external/misra/obligation/required
1010
*/

rule_packages/c/Statements1.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@
6969
{
7070
"description": "Locating the default label is easy when it the first of last label.",
7171
"kind": "problem",
72-
"name": "A default label shall appear as either the first or the last switch label of a switch statement",
72+
"name": "A default label shall appear as either the first or the last switch label or a switch statement",
7373
"precision": "very-high",
74-
"severity": "error",
74+
"severity": "recommendation",
7575
"short_name": "DefaultNotFirstOrLastOfSwitch",
7676
"tags": []
7777
}

0 commit comments

Comments
 (0)