File tree Expand file tree Collapse file tree
c/misra/src/rules/RULE-16-5 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 */
Original file line number Diff line number Diff line change 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 }
You can’t perform that action at this time.
0 commit comments