@@ -9,38 +9,42 @@ newtype Statements1Query =
99 TEverySwitchShallHaveDefaultLabelQuery ( ) or
1010 TDefaultNotFirstOrLastOfSwitchQuery ( )
1111
12- predicate isStatements1QueryMetadata ( Query query , string queryId , string ruleId ) {
12+ predicate isStatements1QueryMetadata ( Query query , string queryId , string ruleId , string category ) {
1313 query =
1414 // `Query` instance for the `nestSwitchLabelInSwitchStatement` query
1515 Statements1Package:: nestSwitchLabelInSwitchStatementQuery ( ) and
1616 queryId =
1717 // `@id` for the `nestSwitchLabelInSwitchStatement` query
1818 "c/misra/nest-switch-label-in-switch-statement" and
19- ruleId = "RULE-16-2"
19+ ruleId = "RULE-16-2" and
20+ category = "required"
2021 or
2122 query =
2223 // `Query` instance for the `breakShallTerminateSwitchClause` query
2324 Statements1Package:: breakShallTerminateSwitchClauseQuery ( ) and
2425 queryId =
2526 // `@id` for the `breakShallTerminateSwitchClause` query
2627 "c/misra/break-shall-terminate-switch-clause" and
27- ruleId = "RULE-16-3"
28+ ruleId = "RULE-16-3" and
29+ category = "required"
2830 or
2931 query =
3032 // `Query` instance for the `everySwitchShallHaveDefaultLabel` query
3133 Statements1Package:: everySwitchShallHaveDefaultLabelQuery ( ) and
3234 queryId =
3335 // `@id` for the `everySwitchShallHaveDefaultLabel` query
3436 "c/misra/every-switch-shall-have-default-label" and
35- ruleId = "RULE-16-4"
37+ ruleId = "RULE-16-4" and
38+ category = "required"
3639 or
3740 query =
3841 // `Query` instance for the `defaultNotFirstOrLastOfSwitch` query
3942 Statements1Package:: defaultNotFirstOrLastOfSwitchQuery ( ) and
4043 queryId =
4144 // `@id` for the `defaultNotFirstOrLastOfSwitch` query
4245 "c/misra/default-not-first-or-last-of-switch" and
43- ruleId = "RULE-16-5"
46+ ruleId = "RULE-16-5" and
47+ category = "required"
4448}
4549
4650module Statements1Package {
0 commit comments