Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d09605b

Browse filesBrowse files
authored
Merge pull request #60 from lcartey/lcartey/single-translation-unit-basic-suites
Add basic single translation unit query suites
2 parents 68ad087 + 41fa465 commit d09605b
Copy full SHA for d09605b

File tree

Expand file treeCollapse file tree

57 files changed

+169
-55
lines changed
Filter options

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree

57 files changed

+169
-55
lines changed

‎.vscode/tasks.json

Copy file name to clipboardExpand all lines: .vscode/tasks.json
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,13 +185,11 @@
185185
"type": "pickString",
186186
"options": [
187187
"Allocations",
188-
"Banned",
189188
"BannedFunctions",
189+
"BannedLibraries",
190190
"BannedSyntax",
191191
"BannedTypes",
192192
"Classes",
193-
"Classes",
194-
"Classes",
195193
"Comments",
196194
"Contracts1",
197195
"Concurrency",
+3Lines changed: 3 additions & 0 deletions

‎cpp/autosar/src/codeql-suites/autosar-advisory.qls

Copy file name to clipboardExpand all lines: cpp/autosar/src/codeql-suites/autosar-advisory.qls
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
- description: AUTOSAR C++14 Guidelines 19-11 (Advisory)
1+
- description: AUTOSAR C++14 Guidelines 20-11 (Advisory)
22
- qlpack: autosar-cpp-coding-standards
33
- include:
44
kind:

‎cpp/autosar/src/codeql-suites/autosar-audit.qls

Copy file name to clipboardExpand all lines: cpp/autosar/src/codeql-suites/autosar-audit.qls
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
- description: AUTOSAR C++14 Guidelines 19-11 (Audit)
1+
- description: AUTOSAR C++14 Guidelines 20-11 (Audit)
22
- qlpack: autosar-cpp-coding-standards
33
- include:
44
kind:

‎cpp/autosar/src/codeql-suites/autosar-default.qls

Copy file name to clipboardExpand all lines: cpp/autosar/src/codeql-suites/autosar-default.qls
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
- description: AUTOSAR C++14 Guidelines 19-11 (Default)
1+
- description: AUTOSAR C++14 Guidelines 20-11 (Default)
22
- qlpack: autosar-cpp-coding-standards
33
- include:
44
kind:

‎cpp/autosar/src/codeql-suites/autosar-required.qls

Copy file name to clipboardExpand all lines: cpp/autosar/src/codeql-suites/autosar-required.qls
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
- description: AUTOSAR C++14 Guidelines 19-11 (Required)
1+
- description: AUTOSAR C++14 Guidelines 20-11 (Required)
22
- qlpack: autosar-cpp-coding-standards
33
- include:
44
kind:
+12Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
- description: AUTOSAR C++14 Guidelines 20-11 (Single Translation Unit)
2+
- qlpack: autosar-cpp-coding-standards
3+
- include:
4+
kind:
5+
- problem
6+
- path-problem
7+
tags contain:
8+
- scope/single-translation-unit
9+
- exclude:
10+
tags contain:
11+
- external/autosar/audit
12+
- external/autosar/default-disabled

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

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/A0-4-2/TypeLongDoubleUsed.ql
+1Lines 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/A11-3-1/FriendDeclarationsUsed.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/A11-3-1/FriendDeclarationsUsed.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* @tags external/autosar/id/a11-3-1
99
* correctness
1010
* security
11+
* scope/single-translation-unit
1112
* external/autosar/allocated-target/implementation
1213
* external/autosar/enforcement/automated
1314
* external/autosar/obligation/required

‎cpp/autosar/src/rules/A17-0-1/ReservedIdentifiersMacrosAndFunctionsAreDefinedRedefinedOrUndefined.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/A17-0-1/ReservedIdentifiersMacrosAndFunctionsAreDefinedRedefinedOrUndefined.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* @tags external/autosar/id/a17-0-1
1515
* correctness
1616
* maintainability
17+
* scope/single-translation-unit
1718
* external/autosar/allocated-target/implementation
1819
* external/autosar/enforcement/automated
1920
* external/autosar/obligation/required

‎cpp/autosar/src/rules/A18-0-1/CLibraryFacilitiesNotAccessedThroughCPPLibraryHeaders.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/A18-0-1/CLibraryFacilitiesNotAccessedThroughCPPLibraryHeaders.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @tags external/autosar/id/a18-0-1
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-0-3/LocaleFunctionsUsed.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/A18-0-3/LocaleFunctionsUsed.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* @problem.severity warning
1515
* @tags external/autosar/id/a18-0-3
1616
* correctness
17+
* scope/single-translation-unit
1718
* external/autosar/allocated-target/implementation
1819
* external/autosar/enforcement/automated
1920
* external/autosar/obligation/required

‎cpp/autosar/src/rules/A18-0-3/LocaleMacrosUsed.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/A18-0-3/LocaleMacrosUsed.ql
+1Lines 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-0-3
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-0-3/LocaleTypeLConvUsed.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/A18-0-3/LocaleTypeLConvUsed.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* @problem.severity warning
99
* @tags external/autosar/id/a18-0-3
1010
* correctness
11+
* scope/single-translation-unit
1112
* external/autosar/allocated-target/implementation
1213
* external/autosar/enforcement/automated
1314
* external/autosar/obligation/required

‎cpp/autosar/src/rules/A18-1-1/CStyleArraysUsed.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/A18-1-1/CStyleArraysUsed.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* @problem.severity error
99
* @tags external/autosar/id/a18-1-1
1010
* correctness
11+
* scope/single-translation-unit
1112
* external/autosar/allocated-target/implementation
1213
* external/autosar/enforcement/automated
1314
* external/autosar/obligation/required

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

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/A18-1-2/VectorboolSpecializationUsed.ql
+1Lines 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

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/A18-1-3/AutoPtrTypeUsed.ql
+1Lines 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/A18-5-1/FunctionsMallocCallocReallocAndFreeUsed.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/A18-5-1/FunctionsMallocCallocReallocAndFreeUsed.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* @problem.severity error
99
* @tags external/autosar/id/a18-5-1
1010
* correctness
11+
* scope/single-translation-unit
1112
* external/autosar/allocated-target/implementation
1213
* external/autosar/enforcement/automated
1314
* external/autosar/obligation/required

‎cpp/autosar/src/rules/A18-9-1/BindUsed.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/A18-9-1/BindUsed.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @problem.severity error
88
* @tags external/autosar/id/a18-9-1
99
* correctness
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-11-1/VolatileKeywordUsed.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/A2-11-1/VolatileKeywordUsed.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @problem.severity error
88
* @tags external/autosar/id/a2-11-1
99
* correctness
10+
* scope/single-translation-unit
1011
* external/autosar/allocated-target/design
1112
* external/autosar/allocated-target/implementation
1213
* external/autosar/enforcement/automated

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

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/A2-13-3/TypeWcharTUsed.ql
+1Lines 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

‎cpp/autosar/src/rules/A26-5-1/PseudorandomNumbersGeneratedUsingRand.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/A26-5-1/PseudorandomNumbersGeneratedUsingRand.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @problem.severity error
88
* @tags external/autosar/id/a26-5-1
99
* security
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/A5-16-1/TernaryConditionalOperatorUsedAsSubExpression.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/A5-16-1/TernaryConditionalOperatorUsedAsSubExpression.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* @problem.severity error
99
* @tags external/autosar/id/a5-16-1
1010
* correctness
11+
* scope/single-translation-unit
1112
* external/autosar/allocated-target/implementation
1213
* external/autosar/enforcement/automated
1314
* external/autosar/obligation/required

‎cpp/autosar/src/rules/A5-2-1/DynamicCastShouldNotBeUsed.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/A5-2-1/DynamicCastShouldNotBeUsed.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @problem.severity error
88
* @tags external/autosar/id/a5-2-1
99
* correctness
10+
* scope/single-translation-unit
1011
* external/autosar/allocated-target/implementation
1112
* external/autosar/enforcement/automated
1213
* external/autosar/obligation/advisory

‎cpp/autosar/src/rules/A5-2-2/TraditionalCStyleCastsUsed.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/A5-2-2/TraditionalCStyleCastsUsed.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @problem.severity error
88
* @tags external/autosar/id/a5-2-2
99
* correctness
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/A5-2-4/ReinterpretCastUsed.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/A5-2-4/ReinterpretCastUsed.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* @tags external/autosar/id/a5-2-4
99
* correctness
1010
* security
11+
* scope/single-translation-unit
1112
* external/autosar/allocated-target/implementation
1213
* external/autosar/enforcement/automated
1314
* external/autosar/obligation/required

‎cpp/autosar/src/rules/A6-6-1/GotoStatementUsed.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/A6-6-1/GotoStatementUsed.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* @tags external/autosar/id/a6-6-1
99
* correctness
1010
* security
11+
* scope/single-translation-unit
1112
* external/autosar/allocated-target/implementation
1213
* external/autosar/enforcement/automated
1314
* external/autosar/obligation/required

‎cpp/autosar/src/rules/A7-1-4/RegisterKeywordUsed.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/A7-1-4/RegisterKeywordUsed.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @problem.severity error
88
* @tags external/autosar/id/a7-1-4
99
* correctness
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/A7-1-6/TypedefSpecifierUsed.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/A7-1-6/TypedefSpecifierUsed.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @problem.severity error
88
* @tags external/autosar/id/a7-1-6
99
* correctness
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/A7-4-1/AsmDeclarationUsed.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/A7-4-1/AsmDeclarationUsed.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @problem.severity error
88
* @tags external/autosar/id/a7-4-1
99
* correctness
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/A8-4-1/FunctionsDefinedUsingTheEllipsisNotation.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/A8-4-1/FunctionsDefinedUsingTheEllipsisNotation.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* @tags external/autosar/id/a8-4-1
99
* correctness
1010
* security
11+
* scope/single-translation-unit
1112
* external/autosar/allocated-target/implementation
1213
* external/autosar/enforcement/automated
1314
* external/autosar/obligation/required

‎cpp/autosar/src/rules/A9-5-1/UnionsUsed.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/A9-5-1/UnionsUsed.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* @problem.severity error
99
* @tags external/autosar/id/a9-5-1
1010
* correctness
11+
* scope/single-translation-unit
1112
* external/autosar/allocated-target/implementation
1213
* external/autosar/enforcement/automated
1314
* external/autosar/obligation/required

‎cpp/autosar/src/rules/M17-0-5/SetjmpMacroAndTheLongjmpFunctionUsed.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/M17-0-5/SetjmpMacroAndTheLongjmpFunctionUsed.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @problem.severity error
88
* @tags external/autosar/id/m17-0-5
99
* correctness
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/M18-0-3/LibraryFunctionsAbortExitGetenvAndSystemFromLibraryCstdlibUsed.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/M18-0-3/LibraryFunctionsAbortExitGetenvAndSystemFromLibraryCstdlibUsed.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* @tags external/autosar/id/m18-0-3
99
* correctness
1010
* security
11+
* scope/single-translation-unit
1112
* external/autosar/allocated-target/implementation
1213
* external/autosar/enforcement/automated
1314
* external/autosar/obligation/required

‎cpp/autosar/src/rules/M18-0-4/TimeHandlingFunctionsOfLibraryCtimeUsed.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/M18-0-4/TimeHandlingFunctionsOfLibraryCtimeUsed.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* @tags external/autosar/id/m18-0-4
99
* correctness
1010
* security
11+
* scope/single-translation-unit
1112
* external/autosar/allocated-target/implementation
1213
* external/autosar/enforcement/automated
1314
* external/autosar/obligation/required

‎cpp/autosar/src/rules/M18-0-5/UnboundedFunctionsOfLibraryCstringUsed.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/M18-0-5/UnboundedFunctionsOfLibraryCstringUsed.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* @tags external/autosar/id/m18-0-5
99
* security
1010
* correctness
11+
* scope/single-translation-unit
1112
* external/autosar/allocated-target/implementation
1213
* external/autosar/enforcement/automated
1314
* external/autosar/obligation/required

‎cpp/autosar/src/rules/M18-2-1/MacroOffsetofUsed.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/M18-2-1/MacroOffsetofUsed.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @problem.severity error
88
* @tags external/autosar/id/m18-2-1
99
* security
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/M18-7-1/CsignalFunctionsUsed.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/M18-7-1/CsignalFunctionsUsed.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* @tags external/autosar/id/m18-7-1
99
* maintainability
1010
* correctness
11+
* scope/single-translation-unit
1112
* external/autosar/allocated-target/implementation
1213
* external/autosar/enforcement/automated
1314
* external/autosar/obligation/required

‎cpp/autosar/src/rules/M18-7-1/CsignalTypesUsed.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/M18-7-1/CsignalTypesUsed.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* @tags external/autosar/id/m18-7-1
99
* maintainability
1010
* correctness
11+
* scope/single-translation-unit
1112
* external/autosar/allocated-target/implementation
1213
* external/autosar/enforcement/automated
1314
* external/autosar/obligation/required

‎cpp/autosar/src/rules/M19-3-1/ErrnoUsed.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/M19-3-1/ErrnoUsed.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
* @tags external/autosar/id/m19-3-1
1111
* correctness
1212
* maintainability
13+
* scope/single-translation-unit
1314
* external/autosar/allocated-target/implementation
1415
* external/autosar/enforcement/automated
1516
* external/autosar/obligation/required

‎cpp/autosar/src/rules/M27-0-1/CstdioFunctionsUsed.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/M27-0-1/CstdioFunctionsUsed.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @tags external/autosar/id/m27-0-1
1010
* maintainability
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/M27-0-1/CstdioMacrosUsed.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/M27-0-1/CstdioMacrosUsed.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @tags external/autosar/id/m27-0-1
1010
* maintainability
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/M27-0-1/CstdioTypesUsed.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/M27-0-1/CstdioTypesUsed.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @tags external/autosar/id/m27-0-1
1010
* maintainability
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/M5-18-1/CommaOperatorUsed.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/M5-18-1/CommaOperatorUsed.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @problem.severity error
88
* @tags external/autosar/id/m5-18-1
99
* correctness
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/M7-3-4/UsingDirectivesUsed.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/M7-3-4/UsingDirectivesUsed.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @problem.severity error
88
* @tags external/autosar/id/m7-3-4
99
* correctness
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/M7-3-6/UsingDeclarationsUsedInHeaderFiles.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/M7-3-6/UsingDeclarationsUsedInHeaderFiles.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* @problem.severity error
99
* @tags external/autosar/id/m7-3-6
1010
* correctness
11+
* scope/single-translation-unit
1112
* external/autosar/allocated-target/implementation
1213
* external/autosar/enforcement/automated
1314
* external/autosar/obligation/required

‎cpp/autosar/src/rules/M7-4-1/UsageOfAssemblerNotDocumented.ql

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/M7-4-1/UsageOfAssemblerNotDocumented.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* @tags external/autosar/id/m7-4-1
99
* readability
1010
* maintainability
11+
* scope/single-translation-unit
1112
* external/autosar/allocated-target/implementation
1213
* external/autosar/audit
1314
* external/autosar/enforcement/non-automated
+11Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
- description: CERT C++ 2016 (Single Translation Unit)
2+
- qlpack: cert-cpp-coding-standards
3+
- include:
4+
kind:
5+
- problem
6+
- path-problem
7+
tags contain:
8+
- scope/single-translation-unit
9+
- exclude:
10+
tags contain:
11+
- external/cert/default-disabled

‎cpp/cert/src/rules/DCL50-CPP/DoNotDefineACStyleVariadicFunction.ql

Copy file name to clipboardExpand all lines: cpp/cert/src/rules/DCL50-CPP/DoNotDefineACStyleVariadicFunction.ql
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* @tags external/cert/id/dcl50-cpp
99
* correctness
1010
* security
11+
* scope/single-translation-unit
1112
* external/cert/obligation/rule
1213
*/
1314

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.