|
6 | 6 | },
|
7 | 7 | "queries": [
|
8 | 8 | {
|
9 |
| - "description": "", |
| 9 | + "description": "Using an inappropriate essential type operand may lead to confusing or unexpected behavior when the operand is converted.", |
10 | 10 | "kind": "problem",
|
11 | 11 | "name": "Operands shall not be of an inappropriate essential type",
|
12 | 12 | "precision": "very-high",
|
13 |
| - "severity": "error", |
| 13 | + "severity": "warning", |
14 | 14 | "short_name": "OperandsOfAnInappropriateEssentialType",
|
15 |
| - "tags": [] |
| 15 | + "tags": [ |
| 16 | + "maintainability" |
| 17 | + ] |
16 | 18 | },
|
17 | 19 | {
|
18 |
| - "description": "", |
| 20 | + "description": "Using pointer types with logical operators should be avoid because it can cause confusing behavior.", |
19 | 21 | "kind": "problem",
|
20 | 22 | "name": "Logical operators should not be used with pointer types",
|
21 | 23 | "precision": "very-high",
|
22 |
| - "severity": "error", |
| 24 | + "severity": "warning", |
23 | 25 | "short_name": "PointerTypeOnLogicalOperator",
|
24 |
| - "tags": [] |
| 26 | + "tags": [ |
| 27 | + "correctness" |
| 28 | + ] |
25 | 29 | }
|
26 | 30 | ],
|
27 | 31 | "title": "Operands shall not be of an inappropriate essential type"
|
|
34 | 38 | {
|
35 | 39 | "description": "Expressions of essentially character type shall not be used inappropriately in addition and subtraction operations",
|
36 | 40 | "kind": "problem",
|
37 |
| - "name": "Expressions of essentially character type shall not be used inappropriately in addition and", |
| 41 | + "name": "Inappropriate use of essentially character type operands in addition and subtraction operations", |
38 | 42 | "precision": "very-high",
|
39 | 43 | "severity": "error",
|
40 | 44 | "short_name": "AdditionSubtractionOnEssentiallyCharType",
|
41 |
| - "tags": [] |
| 45 | + "tags": [ |
| 46 | + "maintainability", |
| 47 | + "correctness" |
| 48 | + ] |
42 | 49 | }
|
43 | 50 | ],
|
44 | 51 | "title": "Expressions of essentially character type shall not be used inappropriately in addition and subtraction operations"
|
|
51 | 58 | {
|
52 | 59 | "description": "The value of an expression shall not be assigned to an object with a narrower essential type or of a different essential type category",
|
53 | 60 | "kind": "problem",
|
54 |
| - "name": "The value of an expression shall not be assigned to an object with a narrower essential type or of a", |
55 |
| - "precision": "high", |
56 |
| - "severity": "error", |
| 61 | + "name": "Do not assign to an object with a different essential type category or narrower essential type", |
| 62 | + "precision": "very-high", |
| 63 | + "severity": "warning", |
57 | 64 | "short_name": "AssignmentOfIncompatibleEssentialType",
|
58 |
| - "tags": [] |
| 65 | + "tags": [ |
| 66 | + "maintainability", |
| 67 | + "correctness" |
| 68 | + ] |
59 | 69 | }
|
60 | 70 | ],
|
61 | 71 | "title": "The value of an expression shall not be assigned to an object with a narrower essential type or of a different essential type category"
|
|
68 | 78 | {
|
69 | 79 | "description": "Both operands of an operator in which the usual arithmetic conversions are performed shall have the same essential type category",
|
70 | 80 | "kind": "problem",
|
71 |
| - "name": "Both operands of an operator in which the usual arithmetic conversions are performed shall have the", |
| 81 | + "name": "Operator with usual arithmetic conversions shall have operands with the same essential type category", |
72 | 82 | "precision": "very-high",
|
73 |
| - "severity": "error", |
| 83 | + "severity": "warning", |
74 | 84 | "short_name": "OperandsWithMismatchedEssentialTypeCategory",
|
75 |
| - "tags": [] |
| 85 | + "tags": [ |
| 86 | + "maintainability", |
| 87 | + "correctness" |
| 88 | + ] |
76 | 89 | }
|
77 | 90 | ],
|
78 | 91 | "title": "Both operands of an operator in which the usual arithmetic conversions are performed shall have the same essential type category"
|
|
83 | 96 | },
|
84 | 97 | "queries": [
|
85 | 98 | {
|
86 |
| - "description": "", |
| 99 | + "description": "Casting the value of an expression to an inappropriate essential type may lead to confusing or unexpected behavior in the way the value is converted.", |
87 | 100 | "kind": "problem",
|
88 | 101 | "name": "The value of an expression should not be cast to an inappropriate essential type",
|
89 | 102 | "precision": "very-high",
|
90 |
| - "severity": "error", |
| 103 | + "severity": "warning", |
91 | 104 | "short_name": "InappropriateEssentialTypeCast",
|
92 |
| - "tags": [] |
| 105 | + "tags": [ |
| 106 | + "maintainability", |
| 107 | + "correctness" |
| 108 | + ] |
93 | 109 | }
|
94 | 110 | ],
|
95 | 111 | "title": "The value of an expression should not be cast to an inappropriate essential type"
|
|
100 | 116 | },
|
101 | 117 | "queries": [
|
102 | 118 | {
|
103 |
| - "description": "", |
| 119 | + "description": "Assigning a composite expression to an object with wider essential type can cause some unexpected conversions.", |
104 | 120 | "kind": "problem",
|
105 | 121 | "name": "The value of a composite expression shall not be assigned to an object with wider essential type",
|
106 | 122 | "precision": "very-high",
|
107 |
| - "severity": "error", |
| 123 | + "severity": "warning", |
108 | 124 | "short_name": "AssignmentToWiderEssentialType",
|
109 |
| - "tags": [] |
| 125 | + "tags": [ |
| 126 | + "maintainability", |
| 127 | + "correctness" |
| 128 | + ] |
110 | 129 | }
|
111 | 130 | ],
|
112 | 131 | "title": "The value of a composite expression shall not be assigned to an object with wider essential type"
|
|
119 | 138 | {
|
120 | 139 | "description": "If a composite expression is used as one operand of an operator in which the usual arithmetic conversions are performed then the other operand shall not have wider essential type",
|
121 | 140 | "kind": "problem",
|
122 |
| - "name": "If a composite expression is used as one operand of an operator in which the usual arithmetic", |
| 141 | + "name": "Implicit conversion of composite expression operand to wider essential type", |
123 | 142 | "precision": "very-high",
|
124 |
| - "severity": "error", |
| 143 | + "severity": "warning", |
125 | 144 | "short_name": "ImplicitConversionOfCompositeExpression",
|
126 |
| - "tags": [] |
| 145 | + "tags": [ |
| 146 | + "maintainability", |
| 147 | + "correctness" |
| 148 | + ] |
127 | 149 | }
|
128 | 150 | ],
|
129 | 151 | "title": "If a composite expression is used as one operand of an operator in which the usual arithmetic conversions are performed then the other operand shall not have wider essential type"
|
|
136 | 158 | {
|
137 | 159 | "description": "The value of a composite expression shall not be cast to a different essential type category or a wider essential type",
|
138 | 160 | "kind": "problem",
|
139 |
| - "name": "The value of a composite expression shall not be cast to a different essential type category or a", |
| 161 | + "name": "Composite expression explicitly casted to wider or different essential type", |
140 | 162 | "precision": "very-high",
|
141 |
| - "severity": "error", |
| 163 | + "severity": "warning", |
142 | 164 | "short_name": "InappropriateCastOfCompositeExpression",
|
143 |
| - "tags": [] |
| 165 | + "tags": [ |
| 166 | + "maintainability", |
| 167 | + "correctness" |
| 168 | + ] |
144 | 169 | }
|
145 | 170 | ],
|
146 | 171 | "title": "The value of a composite expression shall not be cast to a different essential type category or a wider essential type"
|
|
151 | 176 | },
|
152 | 177 | "queries": [
|
153 | 178 | {
|
154 |
| - "description": "", |
| 179 | + "description": "A floating point loop counter can cause confusing behavior when incremented.", |
155 | 180 | "kind": "problem",
|
156 | 181 | "name": "A loop counter shall not have essentially floating type",
|
157 |
| - "precision": "high", |
158 |
| - "severity": "error", |
| 182 | + "precision": "very-high", |
| 183 | + "severity": "warning", |
159 | 184 | "short_name": "LoopOverEssentiallyFloatType",
|
160 |
| - "tags": [] |
| 185 | + "tags": [ |
| 186 | + "maintainability", |
| 187 | + "correctness" |
| 188 | + ] |
161 | 189 | }
|
162 | 190 | ],
|
163 | 191 | "title": "A loop counter shall not have essentially floating type"
|
|
170 | 198 | {
|
171 | 199 | "description": "The pointer arguments to the Standard Library function memcmp shall point to either a pointer type, an essentially signed type, an essentially unsigned type, an essentially Boolean type or an essentially enum type",
|
172 | 200 | "kind": "problem",
|
173 |
| - "name": "The pointer arguments to the Standard Library function memcmp shall point to either a pointer type,", |
| 201 | + "name": "Do not use memcmp on pointers to characters or composite types such as structs and unions.", |
174 | 202 | "precision": "very-high",
|
175 | 203 | "severity": "error",
|
176 | 204 | "short_name": "MemcmpOnInappropriateEssentialTypeArgs",
|
177 |
| - "tags": [] |
| 205 | + "tags": [ |
| 206 | + "maintainability", |
| 207 | + "correctness" |
| 208 | + ] |
178 | 209 | }
|
179 | 210 | ],
|
180 | 211 | "title": "The pointer arguments to the Standard Library function memcmp shall point to either a pointer type, an essentially signed type, an essentially unsigned type, an essentially Boolean type or an essentially enum type"
|
|
0 commit comments