Skip to content

Commit 03fae41

Browse files
committed
BannedTypes: assign scope to each query
1 parent 6eadab9 commit 03fae41

File tree

5 files changed

+12
-4
lines changed

5 files changed

+12
-4
lines changed

cpp/autosar/src/rules/A0-4-2/TypeLongDoubleUsed.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @tags external/autosar/id/a0-4-2
1010
* correctness
1111
* readability
12+
* scope/single-translation-unit
1213
* external/autosar/allocated-target/implementation
1314
* external/autosar/enforcement/automated
1415
* external/autosar/obligation/required

cpp/autosar/src/rules/A18-1-2/VectorboolSpecializationUsed.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @problem.severity warning
1010
* @tags external/autosar/id/a18-1-2
1111
* correctness
12+
* scope/single-translation-unit
1213
* external/autosar/allocated-target/implementation
1314
* external/autosar/enforcement/automated
1415
* external/autosar/obligation/required

cpp/autosar/src/rules/A18-1-3/AutoPtrTypeUsed.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @problem.severity warning
88
* @tags external/autosar/id/a18-1-3
99
* maintainability
10+
* scope/single-translation-unit
1011
* external/autosar/allocated-target/implementation
1112
* external/autosar/enforcement/automated
1213
* external/autosar/obligation/required

cpp/autosar/src/rules/A2-13-3/TypeWcharTUsed.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* @tags external/autosar/id/a2-13-3
99
* correctness
1010
* readability
11+
* scope/single-translation-unit
1112
* external/autosar/allocated-target/architecture
1213
* external/autosar/allocated-target/design
1314
* external/autosar/allocated-target/implementation

rule_packages/cpp/BannedTypes.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"short_name": "TypeLongDoubleUsed",
1919
"tags": [
2020
"correctness",
21-
"readability"
21+
"readability",
22+
"scope/single-translation-unit"
2223
]
2324
}
2425
],
@@ -41,7 +42,8 @@
4142
"severity": "warning",
4243
"short_name": "VectorboolSpecializationUsed",
4344
"tags": [
44-
"correctness"
45+
"correctness",
46+
"scope/single-translation-unit"
4547
]
4648
}
4749
],
@@ -64,7 +66,8 @@
6466
"severity": "warning",
6567
"short_name": "AutoPtrTypeUsed",
6668
"tags": [
67-
"maintainability"
69+
"maintainability",
70+
"scope/single-translation-unit"
6871
]
6972
}
7073
],
@@ -90,7 +93,8 @@
9093
"short_name": "TypeWcharTUsed",
9194
"tags": [
9295
"correctness",
93-
"readability"
96+
"readability",
97+
"scope/single-translation-unit"
9498
]
9599
}
96100
],

0 commit comments

Comments
 (0)