diff --git a/.codeqlmanifest.json b/.codeqlmanifest.json index b7d2d5604c..fa1279fce8 100644 --- a/.codeqlmanifest.json +++ b/.codeqlmanifest.json @@ -1,7 +1,9 @@ { "provide": [ + "cpp/baseline_suites/qlpack.yml", "cpp/*/src/qlpack.yml", "cpp/*/test/qlpack.yml", + "c/baseline_suites/qlpack.yml", "c/*/src/qlpack.yml", "c/*/test/qlpack.yml", "scripts/generate_modules/queries/qlpack.yml" diff --git a/c/baseline_suites/codeql-pack.lock.yml b/c/baseline_suites/codeql-pack.lock.yml new file mode 100644 index 0000000000..a45ea8f438 --- /dev/null +++ b/c/baseline_suites/codeql-pack.lock.yml @@ -0,0 +1,24 @@ +--- +lockVersion: 1.0.0 +dependencies: + codeql/cpp-all: + version: 4.0.3 + codeql/dataflow: + version: 2.0.3 + codeql/mad: + version: 1.0.19 + codeql/rangeanalysis: + version: 1.0.19 + codeql/ssa: + version: 1.0.19 + codeql/tutorial: + version: 1.0.19 + codeql/typeflow: + version: 1.0.19 + codeql/typetracking: + version: 2.0.3 + codeql/util: + version: 2.0.6 + codeql/xml: + version: 1.0.19 +compiled: false diff --git a/c/baseline_suites/codeql-suites/c-baseline-default.qls b/c/baseline_suites/codeql-suites/c-baseline-default.qls new file mode 100644 index 0000000000..a538470754 --- /dev/null +++ b/c/baseline_suites/codeql-suites/c-baseline-default.qls @@ -0,0 +1,10 @@ +- description: C Baseline Coding Standards Queries +- qlpack: codeql/cert-c-coding-standards +- qlpack: codeql/misra-c-coding-standards +- include: + kind: + - problem + - path-problem + tags contain: + - coding-standards/baseline/safety + - coding-standards/baseline/style \ No newline at end of file diff --git a/c/baseline_suites/codeql-suites/c-baseline-safety.qls b/c/baseline_suites/codeql-suites/c-baseline-safety.qls new file mode 100644 index 0000000000..6ad50277ba --- /dev/null +++ b/c/baseline_suites/codeql-suites/c-baseline-safety.qls @@ -0,0 +1,8 @@ +- description: C Baseline Safety Coding Standards Queries +- qlpack: codeql/misra-c-coding-standards +- include: + kind: + - problem + - path-problem + tags contain: + - coding-standards/baseline/safety \ No newline at end of file diff --git a/c/baseline_suites/codeql-suites/c-baseline-style.qls b/c/baseline_suites/codeql-suites/c-baseline-style.qls new file mode 100644 index 0000000000..bce7541ea9 --- /dev/null +++ b/c/baseline_suites/codeql-suites/c-baseline-style.qls @@ -0,0 +1,8 @@ +- description: C Baseline Style Coding Standards Queries +- qlpack: codeql/coding-standards-c-baseline +- include: + kind: + - problem + - path-problem + tags contain: + - coding-standards/baseline/style diff --git a/c/baseline_suites/qlpack.yml b/c/baseline_suites/qlpack.yml new file mode 100644 index 0000000000..806e62f200 --- /dev/null +++ b/c/baseline_suites/qlpack.yml @@ -0,0 +1,9 @@ +name: advanced-security/coding-standards-c-baseline +version: 0.0.2 +description: A set of baseline coding standards for C projects, combining hand picked rules from MISRA C and CERT C. +suites: codeql-suites +license: MIT +default-suite-file: codeql-suites/c-baseline-default.qls +dependencies: + codeql/misra-c-coding-standards: 2.51.0 + codeql/cert-c-coding-standards: 2.51.0 diff --git a/c/cert/src/rules/ARR32-C/VariableLengthArraySizeNotInValidRange.ql b/c/cert/src/rules/ARR32-C/VariableLengthArraySizeNotInValidRange.ql index 1356777e5f..890f0a48ec 100644 --- a/c/cert/src/rules/ARR32-C/VariableLengthArraySizeNotInValidRange.ql +++ b/c/cert/src/rules/ARR32-C/VariableLengthArraySizeNotInValidRange.ql @@ -15,6 +15,7 @@ * external/cert/priority/p6 * external/cert/level/l2 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/ARR36-C/DoNotRelatePointersThatDoNotReferToTheSameArray.ql b/c/cert/src/rules/ARR36-C/DoNotRelatePointersThatDoNotReferToTheSameArray.ql index e42437042f..274f381f38 100644 --- a/c/cert/src/rules/ARR36-C/DoNotRelatePointersThatDoNotReferToTheSameArray.ql +++ b/c/cert/src/rules/ARR36-C/DoNotRelatePointersThatDoNotReferToTheSameArray.ql @@ -14,6 +14,7 @@ * external/cert/priority/p8 * external/cert/level/l2 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/CON30-C/CleanUpThreadSpecificStorage.ql b/c/cert/src/rules/CON30-C/CleanUpThreadSpecificStorage.ql index 1e03c089e8..908e1aa858 100644 --- a/c/cert/src/rules/CON30-C/CleanUpThreadSpecificStorage.ql +++ b/c/cert/src/rules/CON30-C/CleanUpThreadSpecificStorage.ql @@ -15,6 +15,7 @@ * external/cert/priority/p4 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/CON31-C/DoNotAllowAMutexToGoOutOfScopeWhileLocked.ql b/c/cert/src/rules/CON31-C/DoNotAllowAMutexToGoOutOfScopeWhileLocked.ql index 345623fe0d..5d5af628ad 100644 --- a/c/cert/src/rules/CON31-C/DoNotAllowAMutexToGoOutOfScopeWhileLocked.ql +++ b/c/cert/src/rules/CON31-C/DoNotAllowAMutexToGoOutOfScopeWhileLocked.ql @@ -15,6 +15,7 @@ * external/cert/priority/p4 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/CON31-C/DoNotDestroyAMutexWhileItIsLocked.ql b/c/cert/src/rules/CON31-C/DoNotDestroyAMutexWhileItIsLocked.ql index 40c4e936dd..c70fe0329c 100644 --- a/c/cert/src/rules/CON31-C/DoNotDestroyAMutexWhileItIsLocked.ql +++ b/c/cert/src/rules/CON31-C/DoNotDestroyAMutexWhileItIsLocked.ql @@ -14,6 +14,7 @@ * external/cert/priority/p4 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/CON32-C/PreventDataRacesWithMultipleThreads.ql b/c/cert/src/rules/CON32-C/PreventDataRacesWithMultipleThreads.ql index 3ea9e1e1fd..09bd234f63 100644 --- a/c/cert/src/rules/CON32-C/PreventDataRacesWithMultipleThreads.ql +++ b/c/cert/src/rules/CON32-C/PreventDataRacesWithMultipleThreads.ql @@ -15,6 +15,7 @@ * external/cert/priority/p8 * external/cert/level/l2 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/CON33-C/RaceConditionsWhenUsingLibraryFunctions.ql b/c/cert/src/rules/CON33-C/RaceConditionsWhenUsingLibraryFunctions.ql index c9bcaa6bd2..b58579d524 100644 --- a/c/cert/src/rules/CON33-C/RaceConditionsWhenUsingLibraryFunctions.ql +++ b/c/cert/src/rules/CON33-C/RaceConditionsWhenUsingLibraryFunctions.ql @@ -14,6 +14,7 @@ * external/cert/priority/p4 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/CON36-C/WrapFunctionsThatCanSpuriouslyWakeUpInLoop.ql b/c/cert/src/rules/CON36-C/WrapFunctionsThatCanSpuriouslyWakeUpInLoop.ql index d0d948d9b2..86b7e373ce 100644 --- a/c/cert/src/rules/CON36-C/WrapFunctionsThatCanSpuriouslyWakeUpInLoop.ql +++ b/c/cert/src/rules/CON36-C/WrapFunctionsThatCanSpuriouslyWakeUpInLoop.ql @@ -15,6 +15,7 @@ * external/cert/priority/p2 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/CON38-C/PreserveSafetyWhenUsingConditionVariables.ql b/c/cert/src/rules/CON38-C/PreserveSafetyWhenUsingConditionVariables.ql index 3b2ae558d8..736416f118 100644 --- a/c/cert/src/rules/CON38-C/PreserveSafetyWhenUsingConditionVariables.ql +++ b/c/cert/src/rules/CON38-C/PreserveSafetyWhenUsingConditionVariables.ql @@ -15,6 +15,7 @@ * external/cert/priority/p2 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/CON39-C/ThreadWasPreviouslyJoinedOrDetached.ql b/c/cert/src/rules/CON39-C/ThreadWasPreviouslyJoinedOrDetached.ql index 6ef617ca72..30b56ad257 100644 --- a/c/cert/src/rules/CON39-C/ThreadWasPreviouslyJoinedOrDetached.ql +++ b/c/cert/src/rules/CON39-C/ThreadWasPreviouslyJoinedOrDetached.ql @@ -15,6 +15,7 @@ * external/cert/priority/p6 * external/cert/level/l2 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/CON40-C/AtomicVariableTwiceInExpression.ql b/c/cert/src/rules/CON40-C/AtomicVariableTwiceInExpression.ql index 0ec195868f..aad09e207c 100644 --- a/c/cert/src/rules/CON40-C/AtomicVariableTwiceInExpression.ql +++ b/c/cert/src/rules/CON40-C/AtomicVariableTwiceInExpression.ql @@ -15,6 +15,7 @@ * external/cert/priority/p8 * external/cert/level/l2 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/CON41-C/WrapFunctionsThatCanFailSpuriouslyInLoop.ql b/c/cert/src/rules/CON41-C/WrapFunctionsThatCanFailSpuriouslyInLoop.ql index 57be1bc488..47e5bb20f6 100644 --- a/c/cert/src/rules/CON41-C/WrapFunctionsThatCanFailSpuriouslyInLoop.ql +++ b/c/cert/src/rules/CON41-C/WrapFunctionsThatCanFailSpuriouslyInLoop.ql @@ -15,6 +15,7 @@ * external/cert/priority/p2 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/DCL30-C/AppropriateStorageDurationsFunctionReturn.ql b/c/cert/src/rules/DCL30-C/AppropriateStorageDurationsFunctionReturn.ql index 2e1064ee9d..c890aacf5a 100644 --- a/c/cert/src/rules/DCL30-C/AppropriateStorageDurationsFunctionReturn.ql +++ b/c/cert/src/rules/DCL30-C/AppropriateStorageDurationsFunctionReturn.ql @@ -14,6 +14,7 @@ * external/cert/priority/p6 * external/cert/level/l2 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/DCL38-C/DeclaringAFlexibleArrayMember.ql b/c/cert/src/rules/DCL38-C/DeclaringAFlexibleArrayMember.ql index d6000852c6..e3cb2d1f2f 100644 --- a/c/cert/src/rules/DCL38-C/DeclaringAFlexibleArrayMember.ql +++ b/c/cert/src/rules/DCL38-C/DeclaringAFlexibleArrayMember.ql @@ -16,6 +16,7 @@ * external/cert/priority/p3 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/style */ import cpp diff --git a/c/cert/src/rules/DCL41-C/VariablesInsideSwitchStatement.ql b/c/cert/src/rules/DCL41-C/VariablesInsideSwitchStatement.ql index 6f06174b99..3fd118f127 100644 --- a/c/cert/src/rules/DCL41-C/VariablesInsideSwitchStatement.ql +++ b/c/cert/src/rules/DCL41-C/VariablesInsideSwitchStatement.ql @@ -16,6 +16,7 @@ * external/cert/priority/p4 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/style */ import cpp diff --git a/c/cert/src/rules/ENV30-C/DoNotModifyTheReturnValueOfCertainFunctions.ql b/c/cert/src/rules/ENV30-C/DoNotModifyTheReturnValueOfCertainFunctions.ql index f69a78ba2c..c56bb6f906 100644 --- a/c/cert/src/rules/ENV30-C/DoNotModifyTheReturnValueOfCertainFunctions.ql +++ b/c/cert/src/rules/ENV30-C/DoNotModifyTheReturnValueOfCertainFunctions.ql @@ -14,6 +14,7 @@ * external/cert/priority/p4 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/ENV31-C/EnvPointerIsInvalidAfterCertainOperations.ql b/c/cert/src/rules/ENV31-C/EnvPointerIsInvalidAfterCertainOperations.ql index b4d4a74d57..072ee27669 100644 --- a/c/cert/src/rules/ENV31-C/EnvPointerIsInvalidAfterCertainOperations.ql +++ b/c/cert/src/rules/ENV31-C/EnvPointerIsInvalidAfterCertainOperations.ql @@ -14,6 +14,7 @@ * external/cert/priority/p4 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/ENV32-C/ExitHandlersMustReturnNormally.ql b/c/cert/src/rules/ENV32-C/ExitHandlersMustReturnNormally.ql index 19cf28b3e9..40d3b15b94 100644 --- a/c/cert/src/rules/ENV32-C/ExitHandlersMustReturnNormally.ql +++ b/c/cert/src/rules/ENV32-C/ExitHandlersMustReturnNormally.ql @@ -14,6 +14,7 @@ * external/cert/priority/p12 * external/cert/level/l1 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/ENV34-C/DoNotStorePointersReturnedByEnvFunctions.ql b/c/cert/src/rules/ENV34-C/DoNotStorePointersReturnedByEnvFunctions.ql index af54dfa823..2a9ee5d569 100644 --- a/c/cert/src/rules/ENV34-C/DoNotStorePointersReturnedByEnvFunctions.ql +++ b/c/cert/src/rules/ENV34-C/DoNotStorePointersReturnedByEnvFunctions.ql @@ -15,6 +15,7 @@ * external/cert/priority/p4 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/ENV34-C/DoNotStorePointersReturnedByEnvironmentFunWarn.ql b/c/cert/src/rules/ENV34-C/DoNotStorePointersReturnedByEnvironmentFunWarn.ql index 784b7898d6..dd4c431048 100644 --- a/c/cert/src/rules/ENV34-C/DoNotStorePointersReturnedByEnvironmentFunWarn.ql +++ b/c/cert/src/rules/ENV34-C/DoNotStorePointersReturnedByEnvironmentFunWarn.ql @@ -15,6 +15,7 @@ * external/cert/priority/p4 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/ERR30-C/ErrnoReadBeforeReturn.ql b/c/cert/src/rules/ERR30-C/ErrnoReadBeforeReturn.ql index 13f7e40303..401fb4ce88 100644 --- a/c/cert/src/rules/ERR30-C/ErrnoReadBeforeReturn.ql +++ b/c/cert/src/rules/ERR30-C/ErrnoReadBeforeReturn.ql @@ -14,6 +14,7 @@ * external/cert/priority/p8 * external/cert/level/l2 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/ERR30-C/SetlocaleMightSetErrno.ql b/c/cert/src/rules/ERR30-C/SetlocaleMightSetErrno.ql index a7ccf8c041..58468d1fe6 100644 --- a/c/cert/src/rules/ERR30-C/SetlocaleMightSetErrno.ql +++ b/c/cert/src/rules/ERR30-C/SetlocaleMightSetErrno.ql @@ -13,6 +13,7 @@ * external/cert/priority/p8 * external/cert/level/l2 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/ERR32-C/DoNotRelyOnIndeterminateValuesOfErrno.ql b/c/cert/src/rules/ERR32-C/DoNotRelyOnIndeterminateValuesOfErrno.ql index 146d0cb30f..3c08898928 100644 --- a/c/cert/src/rules/ERR32-C/DoNotRelyOnIndeterminateValuesOfErrno.ql +++ b/c/cert/src/rules/ERR32-C/DoNotRelyOnIndeterminateValuesOfErrno.ql @@ -13,6 +13,7 @@ * external/cert/priority/p3 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/EXP32-C/DoNotAccessVolatileObjectWithNonVolatileReference.ql b/c/cert/src/rules/EXP32-C/DoNotAccessVolatileObjectWithNonVolatileReference.ql index 891b93bcda..e97716a89a 100644 --- a/c/cert/src/rules/EXP32-C/DoNotAccessVolatileObjectWithNonVolatileReference.ql +++ b/c/cert/src/rules/EXP32-C/DoNotAccessVolatileObjectWithNonVolatileReference.ql @@ -14,6 +14,7 @@ * external/cert/priority/p6 * external/cert/level/l2 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/EXP35-C/DoNotModifyObjectsWithTemporaryLifetime.ql b/c/cert/src/rules/EXP35-C/DoNotModifyObjectsWithTemporaryLifetime.ql index 3f7d9ae142..15594de9ec 100644 --- a/c/cert/src/rules/EXP35-C/DoNotModifyObjectsWithTemporaryLifetime.ql +++ b/c/cert/src/rules/EXP35-C/DoNotModifyObjectsWithTemporaryLifetime.ql @@ -14,6 +14,7 @@ * external/cert/priority/p4 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/EXP37-C/DoNotCallFunctionPointerWithIncompatibleType.ql b/c/cert/src/rules/EXP37-C/DoNotCallFunctionPointerWithIncompatibleType.ql index 6d223dab72..fbcfaa2aa8 100644 --- a/c/cert/src/rules/EXP37-C/DoNotCallFunctionPointerWithIncompatibleType.ql +++ b/c/cert/src/rules/EXP37-C/DoNotCallFunctionPointerWithIncompatibleType.ql @@ -14,6 +14,7 @@ * external/cert/priority/p4 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/EXP37-C/DoNotCallFunctionsWithIncompatibleArguments.ql b/c/cert/src/rules/EXP37-C/DoNotCallFunctionsWithIncompatibleArguments.ql index 4c5ba57504..0b7dde938d 100644 --- a/c/cert/src/rules/EXP37-C/DoNotCallFunctionsWithIncompatibleArguments.ql +++ b/c/cert/src/rules/EXP37-C/DoNotCallFunctionsWithIncompatibleArguments.ql @@ -14,6 +14,7 @@ * external/cert/priority/p4 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/EXP40-C/DoNotModifyConstantObjects.ql b/c/cert/src/rules/EXP40-C/DoNotModifyConstantObjects.ql index 9d8e4b16d4..9ffde045b9 100644 --- a/c/cert/src/rules/EXP40-C/DoNotModifyConstantObjects.ql +++ b/c/cert/src/rules/EXP40-C/DoNotModifyConstantObjects.ql @@ -13,6 +13,7 @@ * external/cert/priority/p2 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/EXP43-C/DoNotPassAliasedPointerToRestrictQualifiedParam.ql b/c/cert/src/rules/EXP43-C/DoNotPassAliasedPointerToRestrictQualifiedParam.ql index 4aced57136..4879c4675b 100644 --- a/c/cert/src/rules/EXP43-C/DoNotPassAliasedPointerToRestrictQualifiedParam.ql +++ b/c/cert/src/rules/EXP43-C/DoNotPassAliasedPointerToRestrictQualifiedParam.ql @@ -13,6 +13,7 @@ * external/cert/priority/p4 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/EXP43-C/RestrictPointerReferencesOverlappingObject.ql b/c/cert/src/rules/EXP43-C/RestrictPointerReferencesOverlappingObject.ql index 31618785d2..c0b7c8afce 100644 --- a/c/cert/src/rules/EXP43-C/RestrictPointerReferencesOverlappingObject.ql +++ b/c/cert/src/rules/EXP43-C/RestrictPointerReferencesOverlappingObject.ql @@ -13,6 +13,7 @@ * external/cert/priority/p4 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/EXP46-C/DoNotUseABitwiseOperatorWithABooleanLikeOperand.ql b/c/cert/src/rules/EXP46-C/DoNotUseABitwiseOperatorWithABooleanLikeOperand.ql index 549e57236a..6a7e406e0d 100644 --- a/c/cert/src/rules/EXP46-C/DoNotUseABitwiseOperatorWithABooleanLikeOperand.ql +++ b/c/cert/src/rules/EXP46-C/DoNotUseABitwiseOperatorWithABooleanLikeOperand.ql @@ -15,6 +15,7 @@ * external/cert/priority/p9 * external/cert/level/l2 * external/cert/obligation/rule + * coding-standards/baseline/style */ import cpp diff --git a/c/cert/src/rules/FIO30-C/ExcludeUserInputFromFormatStrings.ql b/c/cert/src/rules/FIO30-C/ExcludeUserInputFromFormatStrings.ql index 81ecf56ccf..b38a62c814 100644 --- a/c/cert/src/rules/FIO30-C/ExcludeUserInputFromFormatStrings.ql +++ b/c/cert/src/rules/FIO30-C/ExcludeUserInputFromFormatStrings.ql @@ -14,6 +14,7 @@ * external/cert/priority/p18 * external/cert/level/l1 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/FIO37-C/SuccessfulFgetsOrFgetwsMayReturnAnEmptyString.ql b/c/cert/src/rules/FIO37-C/SuccessfulFgetsOrFgetwsMayReturnAnEmptyString.ql index ad3a2c8192..111e17b13e 100644 --- a/c/cert/src/rules/FIO37-C/SuccessfulFgetsOrFgetwsMayReturnAnEmptyString.ql +++ b/c/cert/src/rules/FIO37-C/SuccessfulFgetsOrFgetwsMayReturnAnEmptyString.ql @@ -13,6 +13,7 @@ * external/cert/priority/p12 * external/cert/level/l1 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/FIO38-C/DoNotCopyAFileObject.ql b/c/cert/src/rules/FIO38-C/DoNotCopyAFileObject.ql index 5b5a043395..ab66a396ad 100644 --- a/c/cert/src/rules/FIO38-C/DoNotCopyAFileObject.ql +++ b/c/cert/src/rules/FIO38-C/DoNotCopyAFileObject.ql @@ -14,6 +14,7 @@ * external/cert/priority/p4 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/FIO39-C/DoNotAlternatelyIOFromAStreamWithoutPositioning.ql b/c/cert/src/rules/FIO39-C/DoNotAlternatelyIOFromAStreamWithoutPositioning.ql index 09289d1f79..1df6e26be8 100644 --- a/c/cert/src/rules/FIO39-C/DoNotAlternatelyIOFromAStreamWithoutPositioning.ql +++ b/c/cert/src/rules/FIO39-C/DoNotAlternatelyIOFromAStreamWithoutPositioning.ql @@ -14,6 +14,7 @@ * external/cert/priority/p6 * external/cert/level/l2 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/FIO40-C/ResetStringsOnFgetsOrFgetwsFailure.ql b/c/cert/src/rules/FIO40-C/ResetStringsOnFgetsOrFgetwsFailure.ql index 9b0882ac66..5fbe5695ec 100644 --- a/c/cert/src/rules/FIO40-C/ResetStringsOnFgetsOrFgetwsFailure.ql +++ b/c/cert/src/rules/FIO40-C/ResetStringsOnFgetsOrFgetwsFailure.ql @@ -15,6 +15,7 @@ * external/cert/priority/p4 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/FIO41-C/DoNotCallGetcAndPutcWithSideEffects.ql b/c/cert/src/rules/FIO41-C/DoNotCallGetcAndPutcWithSideEffects.ql index 5c7d759606..5986fb70e0 100644 --- a/c/cert/src/rules/FIO41-C/DoNotCallGetcAndPutcWithSideEffects.ql +++ b/c/cert/src/rules/FIO41-C/DoNotCallGetcAndPutcWithSideEffects.ql @@ -14,6 +14,7 @@ * external/cert/priority/p2 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/FIO45-C/ToctouRaceConditionsWhileAccessingFiles.ql b/c/cert/src/rules/FIO45-C/ToctouRaceConditionsWhileAccessingFiles.ql index 85369b502e..5ce99960a9 100644 --- a/c/cert/src/rules/FIO45-C/ToctouRaceConditionsWhileAccessingFiles.ql +++ b/c/cert/src/rules/FIO45-C/ToctouRaceConditionsWhileAccessingFiles.ql @@ -14,6 +14,7 @@ * external/cert/priority/p6 * external/cert/level/l2 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/FIO46-C/UndefinedBehaviorAccessingAClosedFile.ql b/c/cert/src/rules/FIO46-C/UndefinedBehaviorAccessingAClosedFile.ql index dc52dca487..a0075a5ef8 100644 --- a/c/cert/src/rules/FIO46-C/UndefinedBehaviorAccessingAClosedFile.ql +++ b/c/cert/src/rules/FIO46-C/UndefinedBehaviorAccessingAClosedFile.ql @@ -13,6 +13,7 @@ * external/cert/priority/p4 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/FIO47-C/UseValidSpecifiers.ql b/c/cert/src/rules/FIO47-C/UseValidSpecifiers.ql index 8ed99d4541..4758431e43 100644 --- a/c/cert/src/rules/FIO47-C/UseValidSpecifiers.ql +++ b/c/cert/src/rules/FIO47-C/UseValidSpecifiers.ql @@ -14,6 +14,7 @@ * external/cert/priority/p6 * external/cert/level/l2 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/FLP30-C/FloatingPointLoopCounters.ql b/c/cert/src/rules/FLP30-C/FloatingPointLoopCounters.ql index a042d80ba5..24686fae58 100644 --- a/c/cert/src/rules/FLP30-C/FloatingPointLoopCounters.ql +++ b/c/cert/src/rules/FLP30-C/FloatingPointLoopCounters.ql @@ -15,6 +15,7 @@ * external/cert/priority/p6 * external/cert/level/l2 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/FLP37-C/MemcmpUsedToCompareFloats.ql b/c/cert/src/rules/FLP37-C/MemcmpUsedToCompareFloats.ql index 8735a804fa..e23b66b268 100644 --- a/c/cert/src/rules/FLP37-C/MemcmpUsedToCompareFloats.ql +++ b/c/cert/src/rules/FLP37-C/MemcmpUsedToCompareFloats.ql @@ -14,6 +14,7 @@ * external/cert/priority/p2 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/INT35-C/UseCorrectIntegerPrecisions.ql b/c/cert/src/rules/INT35-C/UseCorrectIntegerPrecisions.ql index 1bc372506d..e8487eb2ad 100644 --- a/c/cert/src/rules/INT35-C/UseCorrectIntegerPrecisions.ql +++ b/c/cert/src/rules/INT35-C/UseCorrectIntegerPrecisions.ql @@ -14,6 +14,7 @@ * external/cert/priority/p2 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/MEM30-C/DoNotAccessFreedMemory.ql b/c/cert/src/rules/MEM30-C/DoNotAccessFreedMemory.ql index 59ab0df670..53283c041d 100644 --- a/c/cert/src/rules/MEM30-C/DoNotAccessFreedMemory.ql +++ b/c/cert/src/rules/MEM30-C/DoNotAccessFreedMemory.ql @@ -14,6 +14,7 @@ * external/cert/priority/p18 * external/cert/level/l1 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/MEM33-C/AllocStructsWithAFlexibleArrayMemberDynamically.ql b/c/cert/src/rules/MEM33-C/AllocStructsWithAFlexibleArrayMemberDynamically.ql index 2ed5035ff0..19f94ecc3c 100644 --- a/c/cert/src/rules/MEM33-C/AllocStructsWithAFlexibleArrayMemberDynamically.ql +++ b/c/cert/src/rules/MEM33-C/AllocStructsWithAFlexibleArrayMemberDynamically.ql @@ -14,6 +14,7 @@ * external/cert/priority/p3 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/MEM33-C/CopyStructsWithAFlexibleArrayMemberDynamically.ql b/c/cert/src/rules/MEM33-C/CopyStructsWithAFlexibleArrayMemberDynamically.ql index b4d2a9127b..ab184f11eb 100644 --- a/c/cert/src/rules/MEM33-C/CopyStructsWithAFlexibleArrayMemberDynamically.ql +++ b/c/cert/src/rules/MEM33-C/CopyStructsWithAFlexibleArrayMemberDynamically.ql @@ -14,6 +14,7 @@ * external/cert/priority/p3 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/MEM36-C/DoNotModifyAlignmentOfMemoryWithRealloc.ql b/c/cert/src/rules/MEM36-C/DoNotModifyAlignmentOfMemoryWithRealloc.ql index 90c34a44a2..92e95552a5 100644 --- a/c/cert/src/rules/MEM36-C/DoNotModifyAlignmentOfMemoryWithRealloc.ql +++ b/c/cert/src/rules/MEM36-C/DoNotModifyAlignmentOfMemoryWithRealloc.ql @@ -15,6 +15,7 @@ * external/cert/priority/p2 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/MSC30-C/RandUsedForGeneratingPseudorandomNumbers.ql b/c/cert/src/rules/MSC30-C/RandUsedForGeneratingPseudorandomNumbers.ql index 722e6fff80..b971a17973 100644 --- a/c/cert/src/rules/MSC30-C/RandUsedForGeneratingPseudorandomNumbers.ql +++ b/c/cert/src/rules/MSC30-C/RandUsedForGeneratingPseudorandomNumbers.ql @@ -13,6 +13,7 @@ * external/cert/priority/p6 * external/cert/level/l2 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/MSC32-C/ProperlySeedPseudorandomNumberGenerators.ql b/c/cert/src/rules/MSC32-C/ProperlySeedPseudorandomNumberGenerators.ql index 85623d9390..ca20b48583 100644 --- a/c/cert/src/rules/MSC32-C/ProperlySeedPseudorandomNumberGenerators.ql +++ b/c/cert/src/rules/MSC32-C/ProperlySeedPseudorandomNumberGenerators.ql @@ -13,6 +13,7 @@ * external/cert/priority/p18 * external/cert/level/l1 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/MSC33-C/DoNotPassInvalidDataToTheAsctimeFunction.ql b/c/cert/src/rules/MSC33-C/DoNotPassInvalidDataToTheAsctimeFunction.ql index 67fa83e852..4fe66932f0 100644 --- a/c/cert/src/rules/MSC33-C/DoNotPassInvalidDataToTheAsctimeFunction.ql +++ b/c/cert/src/rules/MSC33-C/DoNotPassInvalidDataToTheAsctimeFunction.ql @@ -15,6 +15,7 @@ * external/cert/priority/p27 * external/cert/level/l1 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/MSC39-C/DoNotCallVaArgOnAVaListThatHasAnIndeterminateValue.ql b/c/cert/src/rules/MSC39-C/DoNotCallVaArgOnAVaListThatHasAnIndeterminateValue.ql index 56613c1943..4d711d45f4 100644 --- a/c/cert/src/rules/MSC39-C/DoNotCallVaArgOnAVaListThatHasAnIndeterminateValue.ql +++ b/c/cert/src/rules/MSC39-C/DoNotCallVaArgOnAVaListThatHasAnIndeterminateValue.ql @@ -13,6 +13,7 @@ * external/cert/priority/p3 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/MSC40-C/DoNotViolateInLineLinkageConstraints.ql b/c/cert/src/rules/MSC40-C/DoNotViolateInLineLinkageConstraints.ql index 746cea2e9f..30cc1f9f4a 100644 --- a/c/cert/src/rules/MSC40-C/DoNotViolateInLineLinkageConstraints.ql +++ b/c/cert/src/rules/MSC40-C/DoNotViolateInLineLinkageConstraints.ql @@ -15,6 +15,7 @@ * external/cert/priority/p2 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/PRE31-C/SideEffectsInArgumentsToUnsafeMacros.ql b/c/cert/src/rules/PRE31-C/SideEffectsInArgumentsToUnsafeMacros.ql index 322048f6de..54775b0bf4 100644 --- a/c/cert/src/rules/PRE31-C/SideEffectsInArgumentsToUnsafeMacros.ql +++ b/c/cert/src/rules/PRE31-C/SideEffectsInArgumentsToUnsafeMacros.ql @@ -14,6 +14,7 @@ * external/cert/priority/p3 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/PRE32-C/MacroOrFunctionArgsContainHashToken.ql b/c/cert/src/rules/PRE32-C/MacroOrFunctionArgsContainHashToken.ql index 0a777dc25d..ba5c05c648 100644 --- a/c/cert/src/rules/PRE32-C/MacroOrFunctionArgsContainHashToken.ql +++ b/c/cert/src/rules/PRE32-C/MacroOrFunctionArgsContainHashToken.ql @@ -16,6 +16,7 @@ * external/cert/priority/p2 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/SIG30-C/CallOnlyAsyncSafeFunctionsWithinSignalHandlers.ql b/c/cert/src/rules/SIG30-C/CallOnlyAsyncSafeFunctionsWithinSignalHandlers.ql index e5dc33f817..2e1e5c9224 100644 --- a/c/cert/src/rules/SIG30-C/CallOnlyAsyncSafeFunctionsWithinSignalHandlers.ql +++ b/c/cert/src/rules/SIG30-C/CallOnlyAsyncSafeFunctionsWithinSignalHandlers.ql @@ -14,6 +14,7 @@ * external/cert/priority/p18 * external/cert/level/l1 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/SIG34-C/DoNotCallSignalFromInterruptibleSignalHandlers.ql b/c/cert/src/rules/SIG34-C/DoNotCallSignalFromInterruptibleSignalHandlers.ql index 0586c40c36..76f4f0c1bb 100644 --- a/c/cert/src/rules/SIG34-C/DoNotCallSignalFromInterruptibleSignalHandlers.ql +++ b/c/cert/src/rules/SIG34-C/DoNotCallSignalFromInterruptibleSignalHandlers.ql @@ -14,6 +14,7 @@ * external/cert/priority/p3 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/SIG35-C/DoNotReturnFromAComputationalExceptionHandler.ql b/c/cert/src/rules/SIG35-C/DoNotReturnFromAComputationalExceptionHandler.ql index bd65019f98..8d67cf267f 100644 --- a/c/cert/src/rules/SIG35-C/DoNotReturnFromAComputationalExceptionHandler.ql +++ b/c/cert/src/rules/SIG35-C/DoNotReturnFromAComputationalExceptionHandler.ql @@ -14,6 +14,7 @@ * external/cert/priority/p1 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/STR30-C/DoNotAttemptToModifyStringLiterals.ql b/c/cert/src/rules/STR30-C/DoNotAttemptToModifyStringLiterals.ql index 397e1bfc9e..f77f549489 100644 --- a/c/cert/src/rules/STR30-C/DoNotAttemptToModifyStringLiterals.ql +++ b/c/cert/src/rules/STR30-C/DoNotAttemptToModifyStringLiterals.ql @@ -14,6 +14,7 @@ * external/cert/priority/p9 * external/cert/level/l2 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/STR31-C/StringsHasSufficientSpaceForTheNullTerminator.ql b/c/cert/src/rules/STR31-C/StringsHasSufficientSpaceForTheNullTerminator.ql index 437b13f7f9..55efeb0711 100644 --- a/c/cert/src/rules/STR31-C/StringsHasSufficientSpaceForTheNullTerminator.ql +++ b/c/cert/src/rules/STR31-C/StringsHasSufficientSpaceForTheNullTerminator.ql @@ -16,6 +16,7 @@ * external/cert/priority/p18 * external/cert/level/l1 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/STR37-C/ToCharacterHandlingFunctionsRepresentableAsUChar.ql b/c/cert/src/rules/STR37-C/ToCharacterHandlingFunctionsRepresentableAsUChar.ql index a29dbd34b9..8bbe466827 100644 --- a/c/cert/src/rules/STR37-C/ToCharacterHandlingFunctionsRepresentableAsUChar.ql +++ b/c/cert/src/rules/STR37-C/ToCharacterHandlingFunctionsRepresentableAsUChar.ql @@ -15,6 +15,7 @@ * external/cert/priority/p3 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/cert/src/rules/STR38-C/DoNotConfuseNarrowAndWideFunctions.ql b/c/cert/src/rules/STR38-C/DoNotConfuseNarrowAndWideFunctions.ql index 58b2b1c7dd..c0b9d2dfc3 100644 --- a/c/cert/src/rules/STR38-C/DoNotConfuseNarrowAndWideFunctions.ql +++ b/c/cert/src/rules/STR38-C/DoNotConfuseNarrowAndWideFunctions.ql @@ -14,6 +14,7 @@ * external/cert/priority/p27 * external/cert/level/l1 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/DIR-4-10/PrecautionIncludeGuardsNotProvided.ql b/c/misra/src/rules/DIR-4-10/PrecautionIncludeGuardsNotProvided.ql index 338437b5b2..6ba7ec185d 100644 --- a/c/misra/src/rules/DIR-4-10/PrecautionIncludeGuardsNotProvided.ql +++ b/c/misra/src/rules/DIR-4-10/PrecautionIncludeGuardsNotProvided.ql @@ -12,6 +12,7 @@ * readability * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/c/misra/src/rules/DIR-4-4/SectionsOfCodeShallNotBeCommentedOut.ql b/c/misra/src/rules/DIR-4-4/SectionsOfCodeShallNotBeCommentedOut.ql index 272a411f0e..fc3415dc49 100644 --- a/c/misra/src/rules/DIR-4-4/SectionsOfCodeShallNotBeCommentedOut.ql +++ b/c/misra/src/rules/DIR-4-4/SectionsOfCodeShallNotBeCommentedOut.ql @@ -11,6 +11,7 @@ * correctness * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/advisory + * coding-standards/baseline/style */ import cpp diff --git a/c/misra/src/rules/DIR-4-5/IdentifiersInTheSameNameSpaceUnambiguous.ql b/c/misra/src/rules/DIR-4-5/IdentifiersInTheSameNameSpaceUnambiguous.ql index 5dd78fc340..861c1a0ba3 100644 --- a/c/misra/src/rules/DIR-4-5/IdentifiersInTheSameNameSpaceUnambiguous.ql +++ b/c/misra/src/rules/DIR-4-5/IdentifiersInTheSameNameSpaceUnambiguous.ql @@ -10,6 +10,7 @@ * maintainability * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/advisory + * coding-standards/baseline/style */ import cpp diff --git a/c/misra/src/rules/DIR-4-9/FunctionOverFunctionLikeMacro.ql b/c/misra/src/rules/DIR-4-9/FunctionOverFunctionLikeMacro.ql index 582715e34f..20bb65df24 100644 --- a/c/misra/src/rules/DIR-4-9/FunctionOverFunctionLikeMacro.ql +++ b/c/misra/src/rules/DIR-4-9/FunctionOverFunctionLikeMacro.ql @@ -12,6 +12,7 @@ * readability * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/advisory + * coding-standards/baseline/style */ import cpp diff --git a/c/misra/src/rules/DIR-5-2/NotNoDeadlocksBetweenThreads.ql b/c/misra/src/rules/DIR-5-2/NotNoDeadlocksBetweenThreads.ql index 5d949f56ed..a444d81e10 100644 --- a/c/misra/src/rules/DIR-5-2/NotNoDeadlocksBetweenThreads.ql +++ b/c/misra/src/rules/DIR-5-2/NotNoDeadlocksBetweenThreads.ql @@ -11,6 +11,7 @@ * correctness * concurrency * external/misra/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-1-5/CallToObsolescentFunctionGets.ql b/c/misra/src/rules/RULE-1-5/CallToObsolescentFunctionGets.ql index 4994c4ea6e..80b9476ec1 100644 --- a/c/misra/src/rules/RULE-1-5/CallToObsolescentFunctionGets.ql +++ b/c/misra/src/rules/RULE-1-5/CallToObsolescentFunctionGets.ql @@ -10,6 +10,7 @@ * security * maintainability * external/misra/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-1-5/FunctionTypesNotInPrototypeFormObsolete.ql b/c/misra/src/rules/RULE-1-5/FunctionTypesNotInPrototypeFormObsolete.ql index 645285f438..d7a16f782f 100644 --- a/c/misra/src/rules/RULE-1-5/FunctionTypesNotInPrototypeFormObsolete.ql +++ b/c/misra/src/rules/RULE-1-5/FunctionTypesNotInPrototypeFormObsolete.ql @@ -10,6 +10,7 @@ * correctness * external/misra/c/2012/amendment3 * external/misra/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/c/misra/src/rules/RULE-1-5/InvalidDefineOrUndefOfStdBoolMacro.ql b/c/misra/src/rules/RULE-1-5/InvalidDefineOrUndefOfStdBoolMacro.ql index 9d10522ecf..541ec4c0b4 100644 --- a/c/misra/src/rules/RULE-1-5/InvalidDefineOrUndefOfStdBoolMacro.ql +++ b/c/misra/src/rules/RULE-1-5/InvalidDefineOrUndefOfStdBoolMacro.ql @@ -11,6 +11,7 @@ * readability * external/misra/c/2012/amendment3 * external/misra/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-1-5/MissingStaticSpecifierFuncRedeclarationObsolete.ql b/c/misra/src/rules/RULE-1-5/MissingStaticSpecifierFuncRedeclarationObsolete.ql index ba800885ef..8fab940504 100644 --- a/c/misra/src/rules/RULE-1-5/MissingStaticSpecifierFuncRedeclarationObsolete.ql +++ b/c/misra/src/rules/RULE-1-5/MissingStaticSpecifierFuncRedeclarationObsolete.ql @@ -10,6 +10,7 @@ * readability * external/misra/c/2012/amendment3 * external/misra/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/c/misra/src/rules/RULE-1-5/MissingStaticSpecifierObjectRedeclarationObsolete.ql b/c/misra/src/rules/RULE-1-5/MissingStaticSpecifierObjectRedeclarationObsolete.ql index 9f9953aa6f..8cc95a79a4 100644 --- a/c/misra/src/rules/RULE-1-5/MissingStaticSpecifierObjectRedeclarationObsolete.ql +++ b/c/misra/src/rules/RULE-1-5/MissingStaticSpecifierObjectRedeclarationObsolete.ql @@ -10,6 +10,7 @@ * readability * external/misra/c/2012/amendment3 * external/misra/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/c/misra/src/rules/RULE-1-5/SizeInReallocCallIsZero.ql b/c/misra/src/rules/RULE-1-5/SizeInReallocCallIsZero.ql index 2b5cdaa851..c722c9ca57 100644 --- a/c/misra/src/rules/RULE-1-5/SizeInReallocCallIsZero.ql +++ b/c/misra/src/rules/RULE-1-5/SizeInReallocCallIsZero.ql @@ -10,6 +10,7 @@ * correctness * external/misra/c/2012/amendment3 * external/misra/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-1-5/UseOfObsoleteMacroAtomicVarInit.ql b/c/misra/src/rules/RULE-1-5/UseOfObsoleteMacroAtomicVarInit.ql index e8abf1bbfb..4896ca3066 100644 --- a/c/misra/src/rules/RULE-1-5/UseOfObsoleteMacroAtomicVarInit.ql +++ b/c/misra/src/rules/RULE-1-5/UseOfObsoleteMacroAtomicVarInit.ql @@ -11,6 +11,7 @@ * readability * external/misra/c/2012/amendment3 * external/misra/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/c/misra/src/rules/RULE-11-10/AtomicQualifierAppliedToVoid.ql b/c/misra/src/rules/RULE-11-10/AtomicQualifierAppliedToVoid.ql index 6440e84070..a9955db892 100644 --- a/c/misra/src/rules/RULE-11-10/AtomicQualifierAppliedToVoid.ql +++ b/c/misra/src/rules/RULE-11-10/AtomicQualifierAppliedToVoid.ql @@ -11,6 +11,7 @@ * external/misra/c/2012/third-edition-first-revision * external/misra/c/2012/amendment4 * external/misra/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-11-2/ConversionBetweenIncompleteTypePointerAndOtherType.ql b/c/misra/src/rules/RULE-11-2/ConversionBetweenIncompleteTypePointerAndOtherType.ql index 5c16dc1afb..22e2a00c26 100644 --- a/c/misra/src/rules/RULE-11-2/ConversionBetweenIncompleteTypePointerAndOtherType.ql +++ b/c/misra/src/rules/RULE-11-2/ConversionBetweenIncompleteTypePointerAndOtherType.ql @@ -10,6 +10,7 @@ * correctness * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-11-7/CastBetweenPointerToObjectAndNonIntArithmeticType.ql b/c/misra/src/rules/RULE-11-7/CastBetweenPointerToObjectAndNonIntArithmeticType.ql index 82ac620aa7..bd0ecba460 100644 --- a/c/misra/src/rules/RULE-11-7/CastBetweenPointerToObjectAndNonIntArithmeticType.ql +++ b/c/misra/src/rules/RULE-11-7/CastBetweenPointerToObjectAndNonIntArithmeticType.ql @@ -10,6 +10,7 @@ * correctness * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-11-9/MacroNullNotUsedAsIntegerNullPointerConstant.ql b/c/misra/src/rules/RULE-11-9/MacroNullNotUsedAsIntegerNullPointerConstant.ql index 28b256e85c..63f8fe5e73 100644 --- a/c/misra/src/rules/RULE-11-9/MacroNullNotUsedAsIntegerNullPointerConstant.ql +++ b/c/misra/src/rules/RULE-11-9/MacroNullNotUsedAsIntegerNullPointerConstant.ql @@ -9,6 +9,7 @@ * readability * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/c/misra/src/rules/RULE-12-3/CommaOperatorShouldNotBeUsed.ql b/c/misra/src/rules/RULE-12-3/CommaOperatorShouldNotBeUsed.ql index bccb382804..41da3185e1 100644 --- a/c/misra/src/rules/RULE-12-3/CommaOperatorShouldNotBeUsed.ql +++ b/c/misra/src/rules/RULE-12-3/CommaOperatorShouldNotBeUsed.ql @@ -9,6 +9,7 @@ * readability * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/advisory + * coding-standards/baseline/style */ import cpp diff --git a/c/misra/src/rules/RULE-12-4/ConstantUnsignedIntegerExpressionsWrapAround.ql b/c/misra/src/rules/RULE-12-4/ConstantUnsignedIntegerExpressionsWrapAround.ql index 1ebbf184bb..810227c8f7 100644 --- a/c/misra/src/rules/RULE-12-4/ConstantUnsignedIntegerExpressionsWrapAround.ql +++ b/c/misra/src/rules/RULE-12-4/ConstantUnsignedIntegerExpressionsWrapAround.ql @@ -16,6 +16,7 @@ * security * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/advisory + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-12-5/SizeofOperatorUsedOnArrayTypeParam.ql b/c/misra/src/rules/RULE-12-5/SizeofOperatorUsedOnArrayTypeParam.ql index 2e080419e1..58c6f40728 100644 --- a/c/misra/src/rules/RULE-12-5/SizeofOperatorUsedOnArrayTypeParam.ql +++ b/c/misra/src/rules/RULE-12-5/SizeofOperatorUsedOnArrayTypeParam.ql @@ -9,6 +9,7 @@ * @tags external/misra/id/rule-12-5 * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/mandatory + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-12-6/AtomicAggregateObjectDirectlyAccessed.ql b/c/misra/src/rules/RULE-12-6/AtomicAggregateObjectDirectlyAccessed.ql index 5085e5dc7b..b47b8f8de4 100644 --- a/c/misra/src/rules/RULE-12-6/AtomicAggregateObjectDirectlyAccessed.ql +++ b/c/misra/src/rules/RULE-12-6/AtomicAggregateObjectDirectlyAccessed.ql @@ -10,6 +10,7 @@ * correctness * concurrency * external/misra/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-13-1/InitializerListsContainPersistentSideEffects.ql b/c/misra/src/rules/RULE-13-1/InitializerListsContainPersistentSideEffects.ql index 69ecbede58..dcf720e6df 100644 --- a/c/misra/src/rules/RULE-13-1/InitializerListsContainPersistentSideEffects.ql +++ b/c/misra/src/rules/RULE-13-1/InitializerListsContainPersistentSideEffects.ql @@ -10,6 +10,7 @@ * correctness * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-13-2/UnsequencedAtomicReads.ql b/c/misra/src/rules/RULE-13-2/UnsequencedAtomicReads.ql index 86756668a8..7e6a834b50 100644 --- a/c/misra/src/rules/RULE-13-2/UnsequencedAtomicReads.ql +++ b/c/misra/src/rules/RULE-13-2/UnsequencedAtomicReads.ql @@ -10,6 +10,7 @@ * correctness * external/misra/c/2012/amendment3 * external/misra/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-13-2/UnsequencedSideEffects.ql b/c/misra/src/rules/RULE-13-2/UnsequencedSideEffects.ql index 90b0315e88..2d288607e8 100644 --- a/c/misra/src/rules/RULE-13-2/UnsequencedSideEffects.ql +++ b/c/misra/src/rules/RULE-13-2/UnsequencedSideEffects.ql @@ -10,6 +10,7 @@ * correctness * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-13-4/ResultOfAnAssignmentOperatorShouldNotBeUsed.ql b/c/misra/src/rules/RULE-13-4/ResultOfAnAssignmentOperatorShouldNotBeUsed.ql index c840947b1f..fc4bb8f9a3 100644 --- a/c/misra/src/rules/RULE-13-4/ResultOfAnAssignmentOperatorShouldNotBeUsed.ql +++ b/c/misra/src/rules/RULE-13-4/ResultOfAnAssignmentOperatorShouldNotBeUsed.ql @@ -11,6 +11,7 @@ * readability * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/advisory + * coding-standards/baseline/style */ import cpp diff --git a/c/misra/src/rules/RULE-13-6/SizeofOperandWithSideEffect.ql b/c/misra/src/rules/RULE-13-6/SizeofOperandWithSideEffect.ql index 759ad9b06a..f96982032b 100644 --- a/c/misra/src/rules/RULE-13-6/SizeofOperandWithSideEffect.ql +++ b/c/misra/src/rules/RULE-13-6/SizeofOperandWithSideEffect.ql @@ -10,6 +10,7 @@ * correctness * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-14-1/LoopOverEssentiallyFloatType.ql b/c/misra/src/rules/RULE-14-1/LoopOverEssentiallyFloatType.ql index 3d351c898e..59c1173e47 100644 --- a/c/misra/src/rules/RULE-14-1/LoopOverEssentiallyFloatType.ql +++ b/c/misra/src/rules/RULE-14-1/LoopOverEssentiallyFloatType.ql @@ -10,6 +10,7 @@ * correctness * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-14-3/ControllingExprInvariant.ql b/c/misra/src/rules/RULE-14-3/ControllingExprInvariant.ql index 1bd2708750..5372cb9c3e 100644 --- a/c/misra/src/rules/RULE-14-3/ControllingExprInvariant.ql +++ b/c/misra/src/rules/RULE-14-3/ControllingExprInvariant.ql @@ -12,6 +12,7 @@ * readability * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-15-1/GotoStatementUsed.ql b/c/misra/src/rules/RULE-15-1/GotoStatementUsed.ql index 84c7dbd408..1d1353de66 100644 --- a/c/misra/src/rules/RULE-15-1/GotoStatementUsed.ql +++ b/c/misra/src/rules/RULE-15-1/GotoStatementUsed.ql @@ -10,6 +10,7 @@ * security * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/advisory + * coding-standards/baseline/style */ import cpp diff --git a/c/misra/src/rules/RULE-15-2/GotoLabelLocationCondition.ql b/c/misra/src/rules/RULE-15-2/GotoLabelLocationCondition.ql index 623fb9baed..9da281a0dc 100644 --- a/c/misra/src/rules/RULE-15-2/GotoLabelLocationCondition.ql +++ b/c/misra/src/rules/RULE-15-2/GotoLabelLocationCondition.ql @@ -10,6 +10,8 @@ * readability * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/style + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-15-3/GotoLabelBlockCondition.ql b/c/misra/src/rules/RULE-15-3/GotoLabelBlockCondition.ql index a88f3170de..d51e3493ea 100644 --- a/c/misra/src/rules/RULE-15-3/GotoLabelBlockCondition.ql +++ b/c/misra/src/rules/RULE-15-3/GotoLabelBlockCondition.ql @@ -11,6 +11,7 @@ * readability * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-15-6/LoopCompoundCondition.ql b/c/misra/src/rules/RULE-15-6/LoopCompoundCondition.ql index 9cc5bf9dda..db2313fb21 100644 --- a/c/misra/src/rules/RULE-15-6/LoopCompoundCondition.ql +++ b/c/misra/src/rules/RULE-15-6/LoopCompoundCondition.ql @@ -11,6 +11,7 @@ * readability * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/c/misra/src/rules/RULE-15-6/SelectionCompoundCondition.ql b/c/misra/src/rules/RULE-15-6/SelectionCompoundCondition.ql index f84c142414..3c6a45bb5a 100644 --- a/c/misra/src/rules/RULE-15-6/SelectionCompoundCondition.ql +++ b/c/misra/src/rules/RULE-15-6/SelectionCompoundCondition.ql @@ -1,6 +1,6 @@ /** * @id c/misra/selection-compound-condition - * @name RULE-15-6: The statement forming the body of a slection statement shall be a compound statement + * @name RULE-15-6: The statement forming the body of a selection statement shall be a compound statement * @description if the body of a selection statement is not enclosed in braces, then this can lead * to incorrect execution, and is hard for developers to maintain. * @kind problem @@ -11,6 +11,7 @@ * readability * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/c/misra/src/rules/RULE-15-6/SwitchCompoundCondition.ql b/c/misra/src/rules/RULE-15-6/SwitchCompoundCondition.ql index 1d446f323f..05780aa286 100644 --- a/c/misra/src/rules/RULE-15-6/SwitchCompoundCondition.ql +++ b/c/misra/src/rules/RULE-15-6/SwitchCompoundCondition.ql @@ -11,6 +11,7 @@ * readability * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/c/misra/src/rules/RULE-16-1/SwitchCaseStartCondition.ql b/c/misra/src/rules/RULE-16-1/SwitchCaseStartCondition.ql index 4ceca23d8f..fc16d511c8 100644 --- a/c/misra/src/rules/RULE-16-1/SwitchCaseStartCondition.ql +++ b/c/misra/src/rules/RULE-16-1/SwitchCaseStartCondition.ql @@ -10,6 +10,7 @@ * readability * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/c/misra/src/rules/RULE-16-1/SwitchStmtNotWellFormed.ql b/c/misra/src/rules/RULE-16-1/SwitchStmtNotWellFormed.ql index 644994562a..059a3f3a74 100644 --- a/c/misra/src/rules/RULE-16-1/SwitchStmtNotWellFormed.ql +++ b/c/misra/src/rules/RULE-16-1/SwitchStmtNotWellFormed.ql @@ -10,6 +10,7 @@ * readability * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/c/misra/src/rules/RULE-16-2/NestSwitchLabelInSwitchStatement.ql b/c/misra/src/rules/RULE-16-2/NestSwitchLabelInSwitchStatement.ql index 45ad0519bb..237e4d7c02 100644 --- a/c/misra/src/rules/RULE-16-2/NestSwitchLabelInSwitchStatement.ql +++ b/c/misra/src/rules/RULE-16-2/NestSwitchLabelInSwitchStatement.ql @@ -10,6 +10,7 @@ * readability * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/c/misra/src/rules/RULE-16-5/DefaultNotFirstOrLastOfSwitch.ql b/c/misra/src/rules/RULE-16-5/DefaultNotFirstOrLastOfSwitch.ql index 5a93477b9a..f69a0a7409 100644 --- a/c/misra/src/rules/RULE-16-5/DefaultNotFirstOrLastOfSwitch.ql +++ b/c/misra/src/rules/RULE-16-5/DefaultNotFirstOrLastOfSwitch.ql @@ -8,6 +8,7 @@ * @tags external/misra/id/rule-16-5 * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/c/misra/src/rules/RULE-16-6/SwitchClauseNumberCondition.ql b/c/misra/src/rules/RULE-16-6/SwitchClauseNumberCondition.ql index 0259f8023d..bd59c83440 100644 --- a/c/misra/src/rules/RULE-16-6/SwitchClauseNumberCondition.ql +++ b/c/misra/src/rules/RULE-16-6/SwitchClauseNumberCondition.ql @@ -10,6 +10,7 @@ * readability * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/c/misra/src/rules/RULE-17-11/FunctionWithNoReturningBranchShouldBeNoreturn.ql b/c/misra/src/rules/RULE-17-11/FunctionWithNoReturningBranchShouldBeNoreturn.ql index 4dd939effe..a26699f065 100644 --- a/c/misra/src/rules/RULE-17-11/FunctionWithNoReturningBranchShouldBeNoreturn.ql +++ b/c/misra/src/rules/RULE-17-11/FunctionWithNoReturningBranchShouldBeNoreturn.ql @@ -9,6 +9,7 @@ * correctness * external/misra/c/2012/amendment3 * external/misra/obligation/advisory + * coding-standards/baseline/style */ import cpp diff --git a/c/misra/src/rules/RULE-17-3/FunctionDeclaredImplicitly.ql b/c/misra/src/rules/RULE-17-3/FunctionDeclaredImplicitly.ql index af6c9bccad..f956fcec66 100644 --- a/c/misra/src/rules/RULE-17-3/FunctionDeclaredImplicitly.ql +++ b/c/misra/src/rules/RULE-17-3/FunctionDeclaredImplicitly.ql @@ -11,6 +11,7 @@ * readability * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/mandatory + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-17-4/NonVoidFunctionReturnCondition.ql b/c/misra/src/rules/RULE-17-4/NonVoidFunctionReturnCondition.ql index 1529a403c9..df21468e0a 100644 --- a/c/misra/src/rules/RULE-17-4/NonVoidFunctionReturnCondition.ql +++ b/c/misra/src/rules/RULE-17-4/NonVoidFunctionReturnCondition.ql @@ -12,6 +12,8 @@ * readability * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/mandatory + * coding-standards/baseline/style + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-17-5/ArrayFunctionArgumentNumberOfElements.ql b/c/misra/src/rules/RULE-17-5/ArrayFunctionArgumentNumberOfElements.ql index 1a142ddb22..194b89fce6 100644 --- a/c/misra/src/rules/RULE-17-5/ArrayFunctionArgumentNumberOfElements.ql +++ b/c/misra/src/rules/RULE-17-5/ArrayFunctionArgumentNumberOfElements.ql @@ -1,6 +1,6 @@ /** * @id c/misra/array-function-argument-number-of-elements - * @name RULE-17-5: An array founction argument shall have an appropriate number of elements + * @name RULE-17-5: An array function argument shall have an appropriate number of elements * @description The function argument corresponding to an array parameter shall have an appropriate * number of elements. * @kind problem @@ -10,6 +10,7 @@ * correctness * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-17-6/UseOfArrayStatic.ql b/c/misra/src/rules/RULE-17-6/UseOfArrayStatic.ql index 0a1232b6ad..fce081cba2 100644 --- a/c/misra/src/rules/RULE-17-6/UseOfArrayStatic.ql +++ b/c/misra/src/rules/RULE-17-6/UseOfArrayStatic.ql @@ -10,6 +10,7 @@ * correctness * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/mandatory + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-17-9/ReturnStatementInNoreturnFunction.ql b/c/misra/src/rules/RULE-17-9/ReturnStatementInNoreturnFunction.ql index dedac9da9e..10989476ff 100644 --- a/c/misra/src/rules/RULE-17-9/ReturnStatementInNoreturnFunction.ql +++ b/c/misra/src/rules/RULE-17-9/ReturnStatementInNoreturnFunction.ql @@ -9,6 +9,7 @@ * correctness * external/misra/c/2012/amendment3 * external/misra/obligation/mandatory + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-18-10/PointersToVariablyModifiedArrayTypesUsed.ql b/c/misra/src/rules/RULE-18-10/PointersToVariablyModifiedArrayTypesUsed.ql index dc1433d5e4..81a0996fb0 100644 --- a/c/misra/src/rules/RULE-18-10/PointersToVariablyModifiedArrayTypesUsed.ql +++ b/c/misra/src/rules/RULE-18-10/PointersToVariablyModifiedArrayTypesUsed.ql @@ -12,6 +12,7 @@ * correctness * security * external/misra/obligation/mandatory + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-18-5/NoMoreThanTwoLevelsOfPointerNestingInDeclarations.ql b/c/misra/src/rules/RULE-18-5/NoMoreThanTwoLevelsOfPointerNestingInDeclarations.ql index f467c41804..419199502d 100644 --- a/c/misra/src/rules/RULE-18-5/NoMoreThanTwoLevelsOfPointerNestingInDeclarations.ql +++ b/c/misra/src/rules/RULE-18-5/NoMoreThanTwoLevelsOfPointerNestingInDeclarations.ql @@ -10,6 +10,7 @@ * readability * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/advisory + * coding-standards/baseline/style */ import cpp diff --git a/c/misra/src/rules/RULE-18-6/AutomaticStorageObjectAddressCopiedToOtherObject.ql b/c/misra/src/rules/RULE-18-6/AutomaticStorageObjectAddressCopiedToOtherObject.ql index efbc8d1334..a89d12152b 100644 --- a/c/misra/src/rules/RULE-18-6/AutomaticStorageObjectAddressCopiedToOtherObject.ql +++ b/c/misra/src/rules/RULE-18-6/AutomaticStorageObjectAddressCopiedToOtherObject.ql @@ -11,6 +11,7 @@ * correctness * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-18-6/ThreadLocalObjectAddressCopiedToGlobalObject.ql b/c/misra/src/rules/RULE-18-6/ThreadLocalObjectAddressCopiedToGlobalObject.ql index 6a520447d1..d29bfde9f5 100644 --- a/c/misra/src/rules/RULE-18-6/ThreadLocalObjectAddressCopiedToGlobalObject.ql +++ b/c/misra/src/rules/RULE-18-6/ThreadLocalObjectAddressCopiedToGlobalObject.ql @@ -11,6 +11,7 @@ * correctness * external/misra/c/2012/amendment3 * external/misra/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-18-7/FlexibleArrayMembersDeclared.ql b/c/misra/src/rules/RULE-18-7/FlexibleArrayMembersDeclared.ql index 73f0732ba5..f840e5ec51 100644 --- a/c/misra/src/rules/RULE-18-7/FlexibleArrayMembersDeclared.ql +++ b/c/misra/src/rules/RULE-18-7/FlexibleArrayMembersDeclared.ql @@ -9,6 +9,8 @@ * correctness * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/style + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-18-8/VariableLengthArrayTypesUsed.ql b/c/misra/src/rules/RULE-18-8/VariableLengthArrayTypesUsed.ql index cf19c02eca..d6e8683644 100644 --- a/c/misra/src/rules/RULE-18-8/VariableLengthArrayTypesUsed.ql +++ b/c/misra/src/rules/RULE-18-8/VariableLengthArrayTypesUsed.ql @@ -10,6 +10,8 @@ * readability * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/style + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-18-9/ArrayToPointerConversionOfTemporaryObject.ql b/c/misra/src/rules/RULE-18-9/ArrayToPointerConversionOfTemporaryObject.ql index da73214859..9593ec19b0 100644 --- a/c/misra/src/rules/RULE-18-9/ArrayToPointerConversionOfTemporaryObject.ql +++ b/c/misra/src/rules/RULE-18-9/ArrayToPointerConversionOfTemporaryObject.ql @@ -11,6 +11,7 @@ * correctness * security * external/misra/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-18-9/ModifiableLValueSubscriptedWithTemporaryLifetime.ql b/c/misra/src/rules/RULE-18-9/ModifiableLValueSubscriptedWithTemporaryLifetime.ql index 5ccc8316ec..ad9856a42c 100644 --- a/c/misra/src/rules/RULE-18-9/ModifiableLValueSubscriptedWithTemporaryLifetime.ql +++ b/c/misra/src/rules/RULE-18-9/ModifiableLValueSubscriptedWithTemporaryLifetime.ql @@ -11,6 +11,7 @@ * correctness * security * external/misra/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-19-1/ObjectAssignedToAnOverlappingObject.ql b/c/misra/src/rules/RULE-19-1/ObjectAssignedToAnOverlappingObject.ql index 31c24dcdd8..5460824b82 100644 --- a/c/misra/src/rules/RULE-19-1/ObjectAssignedToAnOverlappingObject.ql +++ b/c/misra/src/rules/RULE-19-1/ObjectAssignedToAnOverlappingObject.ql @@ -9,6 +9,7 @@ * correctness * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/mandatory + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-19-1/ObjectCopiedToAnOverlappingObject.ql b/c/misra/src/rules/RULE-19-1/ObjectCopiedToAnOverlappingObject.ql index 33de4f84b6..76b4e44e55 100644 --- a/c/misra/src/rules/RULE-19-1/ObjectCopiedToAnOverlappingObject.ql +++ b/c/misra/src/rules/RULE-19-1/ObjectCopiedToAnOverlappingObject.ql @@ -9,6 +9,7 @@ * correctness * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/mandatory + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-2-1/UnreachableCode.ql b/c/misra/src/rules/RULE-2-1/UnreachableCode.ql index 020338913a..f8c5c90c69 100644 --- a/c/misra/src/rules/RULE-2-1/UnreachableCode.ql +++ b/c/misra/src/rules/RULE-2-1/UnreachableCode.ql @@ -11,6 +11,7 @@ * maintainability * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/c/misra/src/rules/RULE-2-2/DeadCode.ql b/c/misra/src/rules/RULE-2-2/DeadCode.ql index 97c3808607..05f6fc17a2 100644 --- a/c/misra/src/rules/RULE-2-2/DeadCode.ql +++ b/c/misra/src/rules/RULE-2-2/DeadCode.ql @@ -11,6 +11,7 @@ * maintainability * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/c/misra/src/rules/RULE-2-3/UnusedTypeDeclarations.ql b/c/misra/src/rules/RULE-2-3/UnusedTypeDeclarations.ql index b4c6bbf42c..03a3284ee4 100644 --- a/c/misra/src/rules/RULE-2-3/UnusedTypeDeclarations.ql +++ b/c/misra/src/rules/RULE-2-3/UnusedTypeDeclarations.ql @@ -11,6 +11,7 @@ * maintainability * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/advisory + * coding-standards/baseline/style */ import cpp diff --git a/c/misra/src/rules/RULE-2-5/UnusedMacroDeclaration.ql b/c/misra/src/rules/RULE-2-5/UnusedMacroDeclaration.ql index 2b5a8e8c1d..2943bcd009 100644 --- a/c/misra/src/rules/RULE-2-5/UnusedMacroDeclaration.ql +++ b/c/misra/src/rules/RULE-2-5/UnusedMacroDeclaration.ql @@ -11,6 +11,7 @@ * maintainability * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/advisory + * coding-standards/baseline/style */ import cpp diff --git a/c/misra/src/rules/RULE-2-6/UnusedLabelDeclaration.ql b/c/misra/src/rules/RULE-2-6/UnusedLabelDeclaration.ql index 7838c5fc1f..76e5d07318 100644 --- a/c/misra/src/rules/RULE-2-6/UnusedLabelDeclaration.ql +++ b/c/misra/src/rules/RULE-2-6/UnusedLabelDeclaration.ql @@ -11,6 +11,7 @@ * maintainability * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/advisory + * coding-standards/baseline/style */ import cpp diff --git a/c/misra/src/rules/RULE-2-8/UnusedObjectDefinition.ql b/c/misra/src/rules/RULE-2-8/UnusedObjectDefinition.ql index 13355b7f74..66d155800b 100644 --- a/c/misra/src/rules/RULE-2-8/UnusedObjectDefinition.ql +++ b/c/misra/src/rules/RULE-2-8/UnusedObjectDefinition.ql @@ -10,6 +10,7 @@ * performance * external/misra/c/2012/amendment4 * external/misra/obligation/advisory + * coding-standards/baseline/style */ import cpp diff --git a/c/misra/src/rules/RULE-20-1/IncludeDirectivesPrecededByDirectivesOrComments.ql b/c/misra/src/rules/RULE-20-1/IncludeDirectivesPrecededByDirectivesOrComments.ql index ba78abcb5e..a4e0c1726a 100644 --- a/c/misra/src/rules/RULE-20-1/IncludeDirectivesPrecededByDirectivesOrComments.ql +++ b/c/misra/src/rules/RULE-20-1/IncludeDirectivesPrecededByDirectivesOrComments.ql @@ -10,6 +10,7 @@ * readability * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/advisory + * coding-standards/baseline/style */ import cpp diff --git a/c/misra/src/rules/RULE-20-11/MoreThanOneHashOperatorInMacroDefinition.ql b/c/misra/src/rules/RULE-20-11/MoreThanOneHashOperatorInMacroDefinition.ql index fc87186d3e..e1299f1a8a 100644 --- a/c/misra/src/rules/RULE-20-11/MoreThanOneHashOperatorInMacroDefinition.ql +++ b/c/misra/src/rules/RULE-20-11/MoreThanOneHashOperatorInMacroDefinition.ql @@ -10,6 +10,7 @@ * correctness * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-20-2/ForbiddenCharactersInHeaderFileName.ql b/c/misra/src/rules/RULE-20-2/ForbiddenCharactersInHeaderFileName.ql index d9942c3e56..0e2e6525b3 100644 --- a/c/misra/src/rules/RULE-20-2/ForbiddenCharactersInHeaderFileName.ql +++ b/c/misra/src/rules/RULE-20-2/ForbiddenCharactersInHeaderFileName.ql @@ -10,6 +10,7 @@ * correctness * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/c/misra/src/rules/RULE-20-4/MacroDefinedWithTheSameNameAsKeyword.ql b/c/misra/src/rules/RULE-20-4/MacroDefinedWithTheSameNameAsKeyword.ql index 210e081bb1..e1dbfad2d7 100644 --- a/c/misra/src/rules/RULE-20-4/MacroDefinedWithTheSameNameAsKeyword.ql +++ b/c/misra/src/rules/RULE-20-4/MacroDefinedWithTheSameNameAsKeyword.ql @@ -13,6 +13,7 @@ * maintainability * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/c/misra/src/rules/RULE-20-5/UndefShouldNotBeUsed.ql b/c/misra/src/rules/RULE-20-5/UndefShouldNotBeUsed.ql index 15bec51bf8..a224ce0eae 100644 --- a/c/misra/src/rules/RULE-20-5/UndefShouldNotBeUsed.ql +++ b/c/misra/src/rules/RULE-20-5/UndefShouldNotBeUsed.ql @@ -10,6 +10,7 @@ * readability * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/advisory + * coding-standards/baseline/style */ import cpp diff --git a/c/misra/src/rules/RULE-20-6/FunctionLikeMacroArgsContainHashTokenCQuery.ql b/c/misra/src/rules/RULE-20-6/FunctionLikeMacroArgsContainHashTokenCQuery.ql index e0fc8e4510..017cc85d66 100644 --- a/c/misra/src/rules/RULE-20-6/FunctionLikeMacroArgsContainHashTokenCQuery.ql +++ b/c/misra/src/rules/RULE-20-6/FunctionLikeMacroArgsContainHashTokenCQuery.ql @@ -11,6 +11,7 @@ * correctness * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/c/misra/src/rules/RULE-20-9/IdentifiersUsedInPreprocessorExpression.ql b/c/misra/src/rules/RULE-20-9/IdentifiersUsedInPreprocessorExpression.ql index be6f3c00f3..d4852715c4 100644 --- a/c/misra/src/rules/RULE-20-9/IdentifiersUsedInPreprocessorExpression.ql +++ b/c/misra/src/rules/RULE-20-9/IdentifiersUsedInPreprocessorExpression.ql @@ -12,6 +12,7 @@ * readability * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-21-13/CtypeFunctionArgNotUnsignedCharOrEof.ql b/c/misra/src/rules/RULE-21-13/CtypeFunctionArgNotUnsignedCharOrEof.ql index b7ccf534fa..9ec9197c70 100644 --- a/c/misra/src/rules/RULE-21-13/CtypeFunctionArgNotUnsignedCharOrEof.ql +++ b/c/misra/src/rules/RULE-21-13/CtypeFunctionArgNotUnsignedCharOrEof.ql @@ -9,6 +9,7 @@ * @tags external/misra/id/rule-21-13 * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/mandatory + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-21-14/MemcmpUsedToCompareNullTerminatedStrings.ql b/c/misra/src/rules/RULE-21-14/MemcmpUsedToCompareNullTerminatedStrings.ql index b487f5b9b5..c9d68e4598 100644 --- a/c/misra/src/rules/RULE-21-14/MemcmpUsedToCompareNullTerminatedStrings.ql +++ b/c/misra/src/rules/RULE-21-14/MemcmpUsedToCompareNullTerminatedStrings.ql @@ -11,6 +11,7 @@ * correctness * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-21-15/MemcpyMemmoveMemcmpArgNotPointersToCompatibleTypes.ql b/c/misra/src/rules/RULE-21-15/MemcpyMemmoveMemcmpArgNotPointersToCompatibleTypes.ql index 28dce7b638..ed1619b03f 100644 --- a/c/misra/src/rules/RULE-21-15/MemcpyMemmoveMemcmpArgNotPointersToCompatibleTypes.ql +++ b/c/misra/src/rules/RULE-21-15/MemcpyMemmoveMemcmpArgNotPointersToCompatibleTypes.ql @@ -9,6 +9,7 @@ * @tags external/misra/id/rule-21-15 * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-21-17/StringFunctionPointerArgumentOutOfBounds.ql b/c/misra/src/rules/RULE-21-17/StringFunctionPointerArgumentOutOfBounds.ql index 31d3434c58..fa2a37d834 100644 --- a/c/misra/src/rules/RULE-21-17/StringFunctionPointerArgumentOutOfBounds.ql +++ b/c/misra/src/rules/RULE-21-17/StringFunctionPointerArgumentOutOfBounds.ql @@ -11,6 +11,7 @@ * security * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/mandatory + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-21-18/StringLibrarySizeArgumentOutOfBounds.ql b/c/misra/src/rules/RULE-21-18/StringLibrarySizeArgumentOutOfBounds.ql index 22ccc14b69..f12ca680d4 100644 --- a/c/misra/src/rules/RULE-21-18/StringLibrarySizeArgumentOutOfBounds.ql +++ b/c/misra/src/rules/RULE-21-18/StringLibrarySizeArgumentOutOfBounds.ql @@ -12,6 +12,7 @@ * security * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/mandatory + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-21-19/ValuesReturnedByLocaleSettingUsedAsPtrToConst.ql b/c/misra/src/rules/RULE-21-19/ValuesReturnedByLocaleSettingUsedAsPtrToConst.ql index 6fa3ad92be..2d342d7891 100644 --- a/c/misra/src/rules/RULE-21-19/ValuesReturnedByLocaleSettingUsedAsPtrToConst.ql +++ b/c/misra/src/rules/RULE-21-19/ValuesReturnedByLocaleSettingUsedAsPtrToConst.ql @@ -11,6 +11,7 @@ * correctness * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/mandatory + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-21-20/CallToSetlocaleInvalidatesOldPointers.ql b/c/misra/src/rules/RULE-21-20/CallToSetlocaleInvalidatesOldPointers.ql index 6441add7fc..5adb6adcd5 100644 --- a/c/misra/src/rules/RULE-21-20/CallToSetlocaleInvalidatesOldPointers.ql +++ b/c/misra/src/rules/RULE-21-20/CallToSetlocaleInvalidatesOldPointers.ql @@ -11,6 +11,7 @@ * correctness * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/mandatory + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-21-20/CallToSetlocaleInvalidatesOldPointersWarn.ql b/c/misra/src/rules/RULE-21-20/CallToSetlocaleInvalidatesOldPointersWarn.ql index e7e97e2639..194ecf15be 100644 --- a/c/misra/src/rules/RULE-21-20/CallToSetlocaleInvalidatesOldPointersWarn.ql +++ b/c/misra/src/rules/RULE-21-20/CallToSetlocaleInvalidatesOldPointersWarn.ql @@ -11,6 +11,7 @@ * correctness * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/mandatory + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-21-23/TgMathArgumentsWithDifferingStandardType.ql b/c/misra/src/rules/RULE-21-23/TgMathArgumentsWithDifferingStandardType.ql index 34d3b62b2c..6f844caab3 100644 --- a/c/misra/src/rules/RULE-21-23/TgMathArgumentsWithDifferingStandardType.ql +++ b/c/misra/src/rules/RULE-21-23/TgMathArgumentsWithDifferingStandardType.ql @@ -10,6 +10,7 @@ * correctness * external/misra/c/2012/amendment3 * external/misra/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-21-24/CallToBannedRandomFunction.ql b/c/misra/src/rules/RULE-21-24/CallToBannedRandomFunction.ql index 8066cc80cb..189bf5746a 100644 --- a/c/misra/src/rules/RULE-21-24/CallToBannedRandomFunction.ql +++ b/c/misra/src/rules/RULE-21-24/CallToBannedRandomFunction.ql @@ -10,6 +10,7 @@ * security * external/misra/c/2012/amendment3 * external/misra/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-21-26/TimedlockOnInappropriateMutexType.ql b/c/misra/src/rules/RULE-21-26/TimedlockOnInappropriateMutexType.ql index 929eb5bd0a..e666077cc9 100644 --- a/c/misra/src/rules/RULE-21-26/TimedlockOnInappropriateMutexType.ql +++ b/c/misra/src/rules/RULE-21-26/TimedlockOnInappropriateMutexType.ql @@ -11,6 +11,7 @@ * concurrency * external/misra/c/2012/amendment4 * external/misra/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-21-4/StandardHeaderFileUsedSetjmph.ql b/c/misra/src/rules/RULE-21-4/StandardHeaderFileUsedSetjmph.ql index 88ad0aa6db..924788fa6a 100644 --- a/c/misra/src/rules/RULE-21-4/StandardHeaderFileUsedSetjmph.ql +++ b/c/misra/src/rules/RULE-21-4/StandardHeaderFileUsedSetjmph.ql @@ -9,6 +9,7 @@ * correctness * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-21-7/AtofAtoiAtolAndAtollOfStdlibhUsed.ql b/c/misra/src/rules/RULE-21-7/AtofAtoiAtolAndAtollOfStdlibhUsed.ql index ce781403b1..7f67be8087 100644 --- a/c/misra/src/rules/RULE-21-7/AtofAtoiAtolAndAtollOfStdlibhUsed.ql +++ b/c/misra/src/rules/RULE-21-7/AtofAtoiAtolAndAtollOfStdlibhUsed.ql @@ -10,6 +10,7 @@ * correctness * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-22-1/CloseFileHandleWhenNoLongerNeededMisra.ql b/c/misra/src/rules/RULE-22-1/CloseFileHandleWhenNoLongerNeededMisra.ql index d888d87b6c..022b83f45b 100644 --- a/c/misra/src/rules/RULE-22-1/CloseFileHandleWhenNoLongerNeededMisra.ql +++ b/c/misra/src/rules/RULE-22-1/CloseFileHandleWhenNoLongerNeededMisra.ql @@ -11,6 +11,7 @@ * security * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-22-1/FreeMemoryWhenNoLongerNeededMisra.ql b/c/misra/src/rules/RULE-22-1/FreeMemoryWhenNoLongerNeededMisra.ql index ca5853dac9..b9d590097d 100644 --- a/c/misra/src/rules/RULE-22-1/FreeMemoryWhenNoLongerNeededMisra.ql +++ b/c/misra/src/rules/RULE-22-1/FreeMemoryWhenNoLongerNeededMisra.ql @@ -11,6 +11,7 @@ * security * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-22-10/OnlyTestErrnoRightAfterErrnoSettingFunction.ql b/c/misra/src/rules/RULE-22-10/OnlyTestErrnoRightAfterErrnoSettingFunction.ql index 50e5350936..432cd3229d 100644 --- a/c/misra/src/rules/RULE-22-10/OnlyTestErrnoRightAfterErrnoSettingFunction.ql +++ b/c/misra/src/rules/RULE-22-10/OnlyTestErrnoRightAfterErrnoSettingFunction.ql @@ -11,6 +11,7 @@ * correctness * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-22-11/ThreadPreviouslyJoinedOrDetached.ql b/c/misra/src/rules/RULE-22-11/ThreadPreviouslyJoinedOrDetached.ql index 1a6476b1a7..ab6059c43d 100644 --- a/c/misra/src/rules/RULE-22-11/ThreadPreviouslyJoinedOrDetached.ql +++ b/c/misra/src/rules/RULE-22-11/ThreadPreviouslyJoinedOrDetached.ql @@ -11,6 +11,7 @@ * correctness * concurrency * external/misra/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-22-14/MutexInitWithInvalidMutexType.ql b/c/misra/src/rules/RULE-22-14/MutexInitWithInvalidMutexType.ql index a122a0bec4..383f3c49ba 100644 --- a/c/misra/src/rules/RULE-22-14/MutexInitWithInvalidMutexType.ql +++ b/c/misra/src/rules/RULE-22-14/MutexInitWithInvalidMutexType.ql @@ -10,6 +10,7 @@ * concurrency * external/misra/c/2012/amendment4 * external/misra/obligation/mandatory + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-22-16/MutexObjectsNotAlwaysUnlocked.ql b/c/misra/src/rules/RULE-22-16/MutexObjectsNotAlwaysUnlocked.ql index c86c9b9d9d..87e389b173 100644 --- a/c/misra/src/rules/RULE-22-16/MutexObjectsNotAlwaysUnlocked.ql +++ b/c/misra/src/rules/RULE-22-16/MutexObjectsNotAlwaysUnlocked.ql @@ -11,6 +11,7 @@ * concurrency * external/misra/c/2012/amendment4 * external/misra/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-22-17/InvalidOperationOnUnlockedMutex.ql b/c/misra/src/rules/RULE-22-17/InvalidOperationOnUnlockedMutex.ql index d85183a831..2d1b850e5c 100644 --- a/c/misra/src/rules/RULE-22-17/InvalidOperationOnUnlockedMutex.ql +++ b/c/misra/src/rules/RULE-22-17/InvalidOperationOnUnlockedMutex.ql @@ -11,6 +11,7 @@ * concurrency * external/misra/c/2012/amendment4 * external/misra/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-22-19/ConditionVariableUsedWithMultipleMutexes.ql b/c/misra/src/rules/RULE-22-19/ConditionVariableUsedWithMultipleMutexes.ql index 0d5aa5399f..e19d4cb029 100644 --- a/c/misra/src/rules/RULE-22-19/ConditionVariableUsedWithMultipleMutexes.ql +++ b/c/misra/src/rules/RULE-22-19/ConditionVariableUsedWithMultipleMutexes.ql @@ -11,6 +11,7 @@ * concurrency * external/misra/c/2012/amendment4 * external/misra/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-22-2/OnlyFreeMemoryAllocatedDynamicallyMisra.ql b/c/misra/src/rules/RULE-22-2/OnlyFreeMemoryAllocatedDynamicallyMisra.ql index cdbe8e2c16..aa1977e31f 100644 --- a/c/misra/src/rules/RULE-22-2/OnlyFreeMemoryAllocatedDynamicallyMisra.ql +++ b/c/misra/src/rules/RULE-22-2/OnlyFreeMemoryAllocatedDynamicallyMisra.ql @@ -11,6 +11,7 @@ * security * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/mandatory + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-22-20/ThreadStorageNotInitializedBeforeUse.ql b/c/misra/src/rules/RULE-22-20/ThreadStorageNotInitializedBeforeUse.ql index 1edf4aa9c3..7937792845 100644 --- a/c/misra/src/rules/RULE-22-20/ThreadStorageNotInitializedBeforeUse.ql +++ b/c/misra/src/rules/RULE-22-20/ThreadStorageNotInitializedBeforeUse.ql @@ -11,6 +11,7 @@ * concurrency * external/misra/c/2012/amendment4 * external/misra/obligation/mandatory + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-22-3/FileOpenForReadAndWriteOnDifferentStreams.ql b/c/misra/src/rules/RULE-22-3/FileOpenForReadAndWriteOnDifferentStreams.ql index 642813bbab..0b78107027 100644 --- a/c/misra/src/rules/RULE-22-3/FileOpenForReadAndWriteOnDifferentStreams.ql +++ b/c/misra/src/rules/RULE-22-3/FileOpenForReadAndWriteOnDifferentStreams.ql @@ -10,6 +10,7 @@ * correctness * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-22-4/AttemptToWriteToAReadOnlyStream.ql b/c/misra/src/rules/RULE-22-4/AttemptToWriteToAReadOnlyStream.ql index 2439d4ca47..28b751b79f 100644 --- a/c/misra/src/rules/RULE-22-4/AttemptToWriteToAReadOnlyStream.ql +++ b/c/misra/src/rules/RULE-22-4/AttemptToWriteToAReadOnlyStream.ql @@ -9,6 +9,7 @@ * correctness * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/mandatory + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-22-5/PointerToAFileObjectDereferenced.ql b/c/misra/src/rules/RULE-22-5/PointerToAFileObjectDereferenced.ql index 05cc4e3433..db6c6c64b3 100644 --- a/c/misra/src/rules/RULE-22-5/PointerToAFileObjectDereferenced.ql +++ b/c/misra/src/rules/RULE-22-5/PointerToAFileObjectDereferenced.ql @@ -9,6 +9,7 @@ * correctness * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/mandatory + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-22-6/FileUsedAfterClosed.ql b/c/misra/src/rules/RULE-22-6/FileUsedAfterClosed.ql index 64318dbedd..834d434758 100644 --- a/c/misra/src/rules/RULE-22-6/FileUsedAfterClosed.ql +++ b/c/misra/src/rules/RULE-22-6/FileUsedAfterClosed.ql @@ -9,6 +9,7 @@ * correctness * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/mandatory + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-22-7/EofShallBeComparedWithUnmodifiedReturnValues.ql b/c/misra/src/rules/RULE-22-7/EofShallBeComparedWithUnmodifiedReturnValues.ql index 1da495ca28..90a0d39239 100644 --- a/c/misra/src/rules/RULE-22-7/EofShallBeComparedWithUnmodifiedReturnValues.ql +++ b/c/misra/src/rules/RULE-22-7/EofShallBeComparedWithUnmodifiedReturnValues.ql @@ -10,6 +10,7 @@ * correctness * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-22-8/ErrnoSetToZeroPriorToCall.ql b/c/misra/src/rules/RULE-22-8/ErrnoSetToZeroPriorToCall.ql index 6a39070ef0..efaa647259 100644 --- a/c/misra/src/rules/RULE-22-8/ErrnoSetToZeroPriorToCall.ql +++ b/c/misra/src/rules/RULE-22-8/ErrnoSetToZeroPriorToCall.ql @@ -11,6 +11,7 @@ * correctness * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-22-9/ErrnoSetToZeroAfterCall.ql b/c/misra/src/rules/RULE-22-9/ErrnoSetToZeroAfterCall.ql index 274bf5b2ae..e06f571271 100644 --- a/c/misra/src/rules/RULE-22-9/ErrnoSetToZeroAfterCall.ql +++ b/c/misra/src/rules/RULE-22-9/ErrnoSetToZeroAfterCall.ql @@ -10,6 +10,7 @@ * correctness * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-23-1/GenericSelectionDoesntDependOnMacroArgument.ql b/c/misra/src/rules/RULE-23-1/GenericSelectionDoesntDependOnMacroArgument.ql index 1a76339f50..9754a1bef8 100644 --- a/c/misra/src/rules/RULE-23-1/GenericSelectionDoesntDependOnMacroArgument.ql +++ b/c/misra/src/rules/RULE-23-1/GenericSelectionDoesntDependOnMacroArgument.ql @@ -10,6 +10,7 @@ * maintainability * external/misra/c/2012/amendment3 * external/misra/obligation/advisory + * coding-standards/baseline/style */ import cpp diff --git a/c/misra/src/rules/RULE-23-1/GenericSelectionNotExpandedFromAMacro.ql b/c/misra/src/rules/RULE-23-1/GenericSelectionNotExpandedFromAMacro.ql index 603c44e8e1..3134960d83 100644 --- a/c/misra/src/rules/RULE-23-1/GenericSelectionNotExpandedFromAMacro.ql +++ b/c/misra/src/rules/RULE-23-1/GenericSelectionNotExpandedFromAMacro.ql @@ -9,6 +9,7 @@ * maintainability * external/misra/c/2012/amendment3 * external/misra/obligation/advisory + * coding-standards/baseline/style */ import cpp diff --git a/c/misra/src/rules/RULE-23-2/GenericSelectionNotFromMacroWithSideEffects.ql b/c/misra/src/rules/RULE-23-2/GenericSelectionNotFromMacroWithSideEffects.ql index d7fcb13d76..08c438e7ee 100644 --- a/c/misra/src/rules/RULE-23-2/GenericSelectionNotFromMacroWithSideEffects.ql +++ b/c/misra/src/rules/RULE-23-2/GenericSelectionNotFromMacroWithSideEffects.ql @@ -10,6 +10,7 @@ * maintainability * external/misra/c/2012/amendment3 * external/misra/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-23-3/GenericWithoutNonDefaultAssociation.ql b/c/misra/src/rules/RULE-23-3/GenericWithoutNonDefaultAssociation.ql index dc4ab081d3..7240d0a7a6 100644 --- a/c/misra/src/rules/RULE-23-3/GenericWithoutNonDefaultAssociation.ql +++ b/c/misra/src/rules/RULE-23-3/GenericWithoutNonDefaultAssociation.ql @@ -10,6 +10,7 @@ * maintainability * external/misra/c/2012/amendment3 * external/misra/obligation/advisory + * coding-standards/baseline/style */ import cpp diff --git a/c/misra/src/rules/RULE-23-4/GenericAssociationWithUnselectableType.ql b/c/misra/src/rules/RULE-23-4/GenericAssociationWithUnselectableType.ql index 2d707548fa..f29f688687 100644 --- a/c/misra/src/rules/RULE-23-4/GenericAssociationWithUnselectableType.ql +++ b/c/misra/src/rules/RULE-23-4/GenericAssociationWithUnselectableType.ql @@ -10,6 +10,7 @@ * correctness * external/misra/c/2012/amendment3 * external/misra/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-23-5/DangerousDefaultSelectionForPointerInGeneric.ql b/c/misra/src/rules/RULE-23-5/DangerousDefaultSelectionForPointerInGeneric.ql index f2961e2638..7369e95208 100644 --- a/c/misra/src/rules/RULE-23-5/DangerousDefaultSelectionForPointerInGeneric.ql +++ b/c/misra/src/rules/RULE-23-5/DangerousDefaultSelectionForPointerInGeneric.ql @@ -10,6 +10,7 @@ * correctness * external/misra/c/2012/amendment3 * external/misra/obligation/advisory + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-23-7/InvalidGenericMacroArgumentEvaluation.ql b/c/misra/src/rules/RULE-23-7/InvalidGenericMacroArgumentEvaluation.ql index 04952ae960..f5026aa995 100644 --- a/c/misra/src/rules/RULE-23-7/InvalidGenericMacroArgumentEvaluation.ql +++ b/c/misra/src/rules/RULE-23-7/InvalidGenericMacroArgumentEvaluation.ql @@ -11,6 +11,7 @@ * maintainability * external/misra/c/2012/amendment3 * external/misra/obligation/advisory + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-23-8/DefaultGenericSelectionNotFirstOrLast.ql b/c/misra/src/rules/RULE-23-8/DefaultGenericSelectionNotFirstOrLast.ql index 6e443bd162..85b00d647c 100644 --- a/c/misra/src/rules/RULE-23-8/DefaultGenericSelectionNotFirstOrLast.ql +++ b/c/misra/src/rules/RULE-23-8/DefaultGenericSelectionNotFirstOrLast.ql @@ -10,6 +10,7 @@ * maintainability * external/misra/c/2012/amendment3 * external/misra/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/c/misra/src/rules/RULE-3-2/LineSplicingUsedInComments.ql b/c/misra/src/rules/RULE-3-2/LineSplicingUsedInComments.ql index f1fd85b129..e51b6e728d 100644 --- a/c/misra/src/rules/RULE-3-2/LineSplicingUsedInComments.ql +++ b/c/misra/src/rules/RULE-3-2/LineSplicingUsedInComments.ql @@ -12,6 +12,8 @@ * correctness * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/style + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-4-1/OctalAndHexadecimalEscapeSequencesNotTerminated.ql b/c/misra/src/rules/RULE-4-1/OctalAndHexadecimalEscapeSequencesNotTerminated.ql index 0f04a7362b..6193daeadb 100644 --- a/c/misra/src/rules/RULE-4-1/OctalAndHexadecimalEscapeSequencesNotTerminated.ql +++ b/c/misra/src/rules/RULE-4-1/OctalAndHexadecimalEscapeSequencesNotTerminated.ql @@ -12,6 +12,7 @@ * correctness * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/c/misra/src/rules/RULE-5-1/ExternalIdentifiersNotDistinct.ql b/c/misra/src/rules/RULE-5-1/ExternalIdentifiersNotDistinct.ql index 2c2c302bc0..0b1d6be562 100644 --- a/c/misra/src/rules/RULE-5-1/ExternalIdentifiersNotDistinct.ql +++ b/c/misra/src/rules/RULE-5-1/ExternalIdentifiersNotDistinct.ql @@ -11,6 +11,7 @@ * readability * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-5-2/IdentifiersDeclaredInTheSameScopeNotDistinct.ql b/c/misra/src/rules/RULE-5-2/IdentifiersDeclaredInTheSameScopeNotDistinct.ql index eb24d1c094..65329cc896 100644 --- a/c/misra/src/rules/RULE-5-2/IdentifiersDeclaredInTheSameScopeNotDistinct.ql +++ b/c/misra/src/rules/RULE-5-2/IdentifiersDeclaredInTheSameScopeNotDistinct.ql @@ -11,6 +11,7 @@ * readability * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-5-4/MacroIdentifierNotDistinctFromParameter.ql b/c/misra/src/rules/RULE-5-4/MacroIdentifierNotDistinctFromParameter.ql index d8a78cb680..734cbe2e02 100644 --- a/c/misra/src/rules/RULE-5-4/MacroIdentifierNotDistinctFromParameter.ql +++ b/c/misra/src/rules/RULE-5-4/MacroIdentifierNotDistinctFromParameter.ql @@ -10,6 +10,7 @@ * readability * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/c/misra/src/rules/RULE-6-2/SingleBitNamedBitFieldsOfASignedType.ql b/c/misra/src/rules/RULE-6-2/SingleBitNamedBitFieldsOfASignedType.ql index 142a0b542d..b941391c71 100644 --- a/c/misra/src/rules/RULE-6-2/SingleBitNamedBitFieldsOfASignedType.ql +++ b/c/misra/src/rules/RULE-6-2/SingleBitNamedBitFieldsOfASignedType.ql @@ -9,6 +9,7 @@ * @tags external/misra/id/rule-6-2 * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-6-3/BitFieldDeclaredAsMemberOfAUnion.ql b/c/misra/src/rules/RULE-6-3/BitFieldDeclaredAsMemberOfAUnion.ql index 4befbb9dd6..1dbca0094f 100644 --- a/c/misra/src/rules/RULE-6-3/BitFieldDeclaredAsMemberOfAUnion.ql +++ b/c/misra/src/rules/RULE-6-3/BitFieldDeclaredAsMemberOfAUnion.ql @@ -10,6 +10,7 @@ * correctness * external/misra/c/2012/amendment3 * external/misra/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-7-6/UseOfBannedSmallIntegerConstantMacro.ql b/c/misra/src/rules/RULE-7-6/UseOfBannedSmallIntegerConstantMacro.ql index 47e88196d5..0ff64db47a 100644 --- a/c/misra/src/rules/RULE-7-6/UseOfBannedSmallIntegerConstantMacro.ql +++ b/c/misra/src/rules/RULE-7-6/UseOfBannedSmallIntegerConstantMacro.ql @@ -10,6 +10,7 @@ * readability * external/misra/c/2012/amendment3 * external/misra/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/c/misra/src/rules/RULE-8-1/ExplicitlyDeclareTypes.ql b/c/misra/src/rules/RULE-8-1/ExplicitlyDeclareTypes.ql index 6484372f5b..88dbb3cd76 100644 --- a/c/misra/src/rules/RULE-8-1/ExplicitlyDeclareTypes.ql +++ b/c/misra/src/rules/RULE-8-1/ExplicitlyDeclareTypes.ql @@ -10,6 +10,7 @@ * readability * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/c/misra/src/rules/RULE-8-10/InlineFunctionNotDeclaredStaticStorage.ql b/c/misra/src/rules/RULE-8-10/InlineFunctionNotDeclaredStaticStorage.ql index 250c00ca2e..3dd7c41801 100644 --- a/c/misra/src/rules/RULE-8-10/InlineFunctionNotDeclaredStaticStorage.ql +++ b/c/misra/src/rules/RULE-8-10/InlineFunctionNotDeclaredStaticStorage.ql @@ -10,6 +10,8 @@ * correctness * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/safety + * coding-standards/baseline/style */ import cpp diff --git a/c/misra/src/rules/RULE-8-12/ValueImplicitEnumerationConstantNotUnique.ql b/c/misra/src/rules/RULE-8-12/ValueImplicitEnumerationConstantNotUnique.ql index 6ebabc3810..c3488e1e6c 100644 --- a/c/misra/src/rules/RULE-8-12/ValueImplicitEnumerationConstantNotUnique.ql +++ b/c/misra/src/rules/RULE-8-12/ValueImplicitEnumerationConstantNotUnique.ql @@ -11,6 +11,7 @@ * readability * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-8-14/RestrictTypeQualifierUsed.ql b/c/misra/src/rules/RULE-8-14/RestrictTypeQualifierUsed.ql index cff7d0df5c..fb5ccaea50 100644 --- a/c/misra/src/rules/RULE-8-14/RestrictTypeQualifierUsed.ql +++ b/c/misra/src/rules/RULE-8-14/RestrictTypeQualifierUsed.ql @@ -10,6 +10,7 @@ * security * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-8-15/RedeclarationOfObjectWithUnmatchedAlignment.ql b/c/misra/src/rules/RULE-8-15/RedeclarationOfObjectWithUnmatchedAlignment.ql index dc82f63d10..7260dd042b 100644 --- a/c/misra/src/rules/RULE-8-15/RedeclarationOfObjectWithUnmatchedAlignment.ql +++ b/c/misra/src/rules/RULE-8-15/RedeclarationOfObjectWithUnmatchedAlignment.ql @@ -11,6 +11,7 @@ * readability * maintainability * external/misra/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-8-15/RedeclarationOfObjectWithoutAlignment.ql b/c/misra/src/rules/RULE-8-15/RedeclarationOfObjectWithoutAlignment.ql index df9f3f2d1c..fbb81d0464 100644 --- a/c/misra/src/rules/RULE-8-15/RedeclarationOfObjectWithoutAlignment.ql +++ b/c/misra/src/rules/RULE-8-15/RedeclarationOfObjectWithoutAlignment.ql @@ -11,6 +11,8 @@ * readability * maintainability * external/misra/obligation/required + * coding-standards/baseline/safety + * coding-standards/baseline/style */ import cpp diff --git a/c/misra/src/rules/RULE-8-16/AlignmentWithSizeZero.ql b/c/misra/src/rules/RULE-8-16/AlignmentWithSizeZero.ql index 4a0cd9d50b..fb0e39aad4 100644 --- a/c/misra/src/rules/RULE-8-16/AlignmentWithSizeZero.ql +++ b/c/misra/src/rules/RULE-8-16/AlignmentWithSizeZero.ql @@ -10,6 +10,7 @@ * readability * maintainability * external/misra/obligation/advisory + * coding-standards/baseline/style */ import cpp diff --git a/c/misra/src/rules/RULE-8-17/MoreThanOneAlignmentSpecifierOnDeclaration.ql b/c/misra/src/rules/RULE-8-17/MoreThanOneAlignmentSpecifierOnDeclaration.ql index f4e0d93d92..4f70f08a46 100644 --- a/c/misra/src/rules/RULE-8-17/MoreThanOneAlignmentSpecifierOnDeclaration.ql +++ b/c/misra/src/rules/RULE-8-17/MoreThanOneAlignmentSpecifierOnDeclaration.ql @@ -10,6 +10,7 @@ * external/misra/c/2012/amendment3 * readability * external/misra/obligation/advisory + * coding-standards/baseline/style */ import cpp diff --git a/c/misra/src/rules/RULE-8-2/FunctionTypesNotInPrototypeForm.ql b/c/misra/src/rules/RULE-8-2/FunctionTypesNotInPrototypeForm.ql index 1136dd714e..37f5888a78 100644 --- a/c/misra/src/rules/RULE-8-2/FunctionTypesNotInPrototypeForm.ql +++ b/c/misra/src/rules/RULE-8-2/FunctionTypesNotInPrototypeForm.ql @@ -10,6 +10,7 @@ * correctness * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/c/misra/src/rules/RULE-8-8/MissingStaticSpecifierFunctionRedeclarationC.ql b/c/misra/src/rules/RULE-8-8/MissingStaticSpecifierFunctionRedeclarationC.ql index c3a5ce897f..8fabae7f8e 100644 --- a/c/misra/src/rules/RULE-8-8/MissingStaticSpecifierFunctionRedeclarationC.ql +++ b/c/misra/src/rules/RULE-8-8/MissingStaticSpecifierFunctionRedeclarationC.ql @@ -10,6 +10,8 @@ * readability * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/safety + * coding-standards/baseline/style */ import cpp diff --git a/c/misra/src/rules/RULE-8-8/MissingStaticSpecifierObjectRedeclarationC.ql b/c/misra/src/rules/RULE-8-8/MissingStaticSpecifierObjectRedeclarationC.ql index 877ef19d2a..fc397d6d59 100644 --- a/c/misra/src/rules/RULE-8-8/MissingStaticSpecifierObjectRedeclarationC.ql +++ b/c/misra/src/rules/RULE-8-8/MissingStaticSpecifierObjectRedeclarationC.ql @@ -10,6 +10,8 @@ * readability * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/safety + * coding-standards/baseline/style */ import cpp diff --git a/c/misra/src/rules/RULE-9-1/ObjectWithAutoStorageDurationReadBeforeInit.ql b/c/misra/src/rules/RULE-9-1/ObjectWithAutoStorageDurationReadBeforeInit.ql index f3204ef2e3..c78d56ab58 100644 --- a/c/misra/src/rules/RULE-9-1/ObjectWithAutoStorageDurationReadBeforeInit.ql +++ b/c/misra/src/rules/RULE-9-1/ObjectWithAutoStorageDurationReadBeforeInit.ql @@ -10,6 +10,7 @@ * security * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/mandatory + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-9-2/InitializerForAggregateOrUnionNotEnclosedInBraces.ql b/c/misra/src/rules/RULE-9-2/InitializerForAggregateOrUnionNotEnclosedInBraces.ql index c5a9ae4814..5a1d833ad6 100644 --- a/c/misra/src/rules/RULE-9-2/InitializerForAggregateOrUnionNotEnclosedInBraces.ql +++ b/c/misra/src/rules/RULE-9-2/InitializerForAggregateOrUnionNotEnclosedInBraces.ql @@ -11,6 +11,7 @@ * readability * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/c/misra/src/rules/RULE-9-3/PartiallyInitializedArrayWithExplicitInitializers.ql b/c/misra/src/rules/RULE-9-3/PartiallyInitializedArrayWithExplicitInitializers.ql index d10c8315e1..724d5d94c9 100644 --- a/c/misra/src/rules/RULE-9-3/PartiallyInitializedArrayWithExplicitInitializers.ql +++ b/c/misra/src/rules/RULE-9-3/PartiallyInitializedArrayWithExplicitInitializers.ql @@ -11,6 +11,7 @@ * readability * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-9-4/RepeatedInitializationOfAggregateObjectElement.ql b/c/misra/src/rules/RULE-9-4/RepeatedInitializationOfAggregateObjectElement.ql index dfe3fd8fff..873b4d2438 100644 --- a/c/misra/src/rules/RULE-9-4/RepeatedInitializationOfAggregateObjectElement.ql +++ b/c/misra/src/rules/RULE-9-4/RepeatedInitializationOfAggregateObjectElement.ql @@ -12,6 +12,7 @@ * readability * external/misra/c/2012/third-edition-first-revision * external/misra/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/c/misra/src/rules/RULE-9-7/UninitializedAtomicObject.ql b/c/misra/src/rules/RULE-9-7/UninitializedAtomicObject.ql index 5f7fb803d6..9eb3d25e99 100644 --- a/c/misra/src/rules/RULE-9-7/UninitializedAtomicObject.ql +++ b/c/misra/src/rules/RULE-9-7/UninitializedAtomicObject.ql @@ -10,6 +10,7 @@ * concurrency * external/misra/c/2012/amendment4 * external/misra/obligation/mandatory + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/A0-1-1/UselessAssignment.ql b/cpp/autosar/src/rules/A0-1-1/UselessAssignment.ql index a1c6fb1fa8..16ab39817f 100644 --- a/cpp/autosar/src/rules/A0-1-1/UselessAssignment.ql +++ b/cpp/autosar/src/rules/A0-1-1/UselessAssignment.ql @@ -12,6 +12,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/A1-1-1/CStandardLibraryHeadersAreDeprecated.ql b/cpp/autosar/src/rules/A1-1-1/CStandardLibraryHeadersAreDeprecated.ql index 11a3056286..047aba1bc4 100644 --- a/cpp/autosar/src/rules/A1-1-1/CStandardLibraryHeadersAreDeprecated.ql +++ b/cpp/autosar/src/rules/A1-1-1/CStandardLibraryHeadersAreDeprecated.ql @@ -10,6 +10,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/cpp/autosar/src/rules/A10-1-1/ClassDerivedFromMoreThanOneNonInterfaceBaseClass.ql b/cpp/autosar/src/rules/A10-1-1/ClassDerivedFromMoreThanOneNonInterfaceBaseClass.ql index a0a69f4ec8..749c3c5203 100644 --- a/cpp/autosar/src/rules/A10-1-1/ClassDerivedFromMoreThanOneNonInterfaceBaseClass.ql +++ b/cpp/autosar/src/rules/A10-1-1/ClassDerivedFromMoreThanOneNonInterfaceBaseClass.ql @@ -10,6 +10,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/cpp/autosar/src/rules/A10-3-5/UserDefinedAssignmentOperatorVirtual.ql b/cpp/autosar/src/rules/A10-3-5/UserDefinedAssignmentOperatorVirtual.ql index bb51e38a6d..27321c1a27 100644 --- a/cpp/autosar/src/rules/A10-3-5/UserDefinedAssignmentOperatorVirtual.ql +++ b/cpp/autosar/src/rules/A10-3-5/UserDefinedAssignmentOperatorVirtual.ql @@ -11,6 +11,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/A12-1-4/ConstructorWithFundamentalArgMissingExplicit.ql b/cpp/autosar/src/rules/A12-1-4/ConstructorWithFundamentalArgMissingExplicit.ql index 6f0cf190a4..8614341e5b 100644 --- a/cpp/autosar/src/rules/A12-1-4/ConstructorWithFundamentalArgMissingExplicit.ql +++ b/cpp/autosar/src/rules/A12-1-4/ConstructorWithFundamentalArgMissingExplicit.ql @@ -12,6 +12,8 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/style + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/A12-4-1/DestructorOfABaseClassNotPublicVirtual.ql b/cpp/autosar/src/rules/A12-4-1/DestructorOfABaseClassNotPublicVirtual.ql index c534f9e591..1a2e89a648 100644 --- a/cpp/autosar/src/rules/A12-4-1/DestructorOfABaseClassNotPublicVirtual.ql +++ b/cpp/autosar/src/rules/A12-4-1/DestructorOfABaseClassNotPublicVirtual.ql @@ -14,6 +14,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/A12-6-1/ClassDataMembersInitializationCondition.ql b/cpp/autosar/src/rules/A12-6-1/ClassDataMembersInitializationCondition.ql index 71e2fc9a03..a04bb0a8c3 100644 --- a/cpp/autosar/src/rules/A12-6-1/ClassDataMembersInitializationCondition.ql +++ b/cpp/autosar/src/rules/A12-6-1/ClassDataMembersInitializationCondition.ql @@ -10,6 +10,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/cpp/autosar/src/rules/A12-8-4/MoveConstructorUsesCopySemantics.ql b/cpp/autosar/src/rules/A12-8-4/MoveConstructorUsesCopySemantics.ql index a71d49d844..6541f8bcea 100644 --- a/cpp/autosar/src/rules/A12-8-4/MoveConstructorUsesCopySemantics.ql +++ b/cpp/autosar/src/rules/A12-8-4/MoveConstructorUsesCopySemantics.ql @@ -12,6 +12,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/A13-2-1/AssignmentOperatorReturnThis.ql b/cpp/autosar/src/rules/A13-2-1/AssignmentOperatorReturnThis.ql index 4e6b7d6f0c..1ffcfd8b7f 100644 --- a/cpp/autosar/src/rules/A13-2-1/AssignmentOperatorReturnThis.ql +++ b/cpp/autosar/src/rules/A13-2-1/AssignmentOperatorReturnThis.ql @@ -11,6 +11,8 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/style + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/A13-5-2/UserDefinedConversionOperatorsNotDefinedExplicit.ql b/cpp/autosar/src/rules/A13-5-2/UserDefinedConversionOperatorsNotDefinedExplicit.ql index ced94c5bdd..b8441dfc02 100644 --- a/cpp/autosar/src/rules/A13-5-2/UserDefinedConversionOperatorsNotDefinedExplicit.ql +++ b/cpp/autosar/src/rules/A13-5-2/UserDefinedConversionOperatorsNotDefinedExplicit.ql @@ -10,6 +10,8 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety + * coding-standards/baseline/style */ import cpp diff --git a/cpp/autosar/src/rules/A13-5-4/OppositeOperatorsNotDefinedInTermsOfOther.ql b/cpp/autosar/src/rules/A13-5-4/OppositeOperatorsNotDefinedInTermsOfOther.ql index 0f8b571861..f347ad9095 100644 --- a/cpp/autosar/src/rules/A13-5-4/OppositeOperatorsNotDefinedInTermsOfOther.ql +++ b/cpp/autosar/src/rules/A13-5-4/OppositeOperatorsNotDefinedInTermsOfOther.ql @@ -11,6 +11,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/A13-6-1/UseCorrectIntervalForDigitSequencesSeparators.ql b/cpp/autosar/src/rules/A13-6-1/UseCorrectIntervalForDigitSequencesSeparators.ql index b484509e63..24c6a80759 100644 --- a/cpp/autosar/src/rules/A13-6-1/UseCorrectIntervalForDigitSequencesSeparators.ql +++ b/cpp/autosar/src/rules/A13-6-1/UseCorrectIntervalForDigitSequencesSeparators.ql @@ -11,6 +11,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/cpp/autosar/src/rules/A14-5-1/TemplateConstructorOverloadResolution.ql b/cpp/autosar/src/rules/A14-5-1/TemplateConstructorOverloadResolution.ql index 932fceba3a..6ce1f6e3c0 100644 --- a/cpp/autosar/src/rules/A14-5-1/TemplateConstructorOverloadResolution.ql +++ b/cpp/autosar/src/rules/A14-5-1/TemplateConstructorOverloadResolution.ql @@ -12,6 +12,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/cpp/autosar/src/rules/A14-7-2/TemplateSpecializationNotDeclaredInTheSameFile.ql b/cpp/autosar/src/rules/A14-7-2/TemplateSpecializationNotDeclaredInTheSameFile.ql index 94214e8992..62005d0b96 100644 --- a/cpp/autosar/src/rules/A14-7-2/TemplateSpecializationNotDeclaredInTheSameFile.ql +++ b/cpp/autosar/src/rules/A14-7-2/TemplateSpecializationNotDeclaredInTheSameFile.ql @@ -13,6 +13,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/cpp/autosar/src/rules/A15-1-1/OnlyThrowStdExceptionDerivedTypes.ql b/cpp/autosar/src/rules/A15-1-1/OnlyThrowStdExceptionDerivedTypes.ql index c4c457bef7..7e836b845a 100644 --- a/cpp/autosar/src/rules/A15-1-1/OnlyThrowStdExceptionDerivedTypes.ql +++ b/cpp/autosar/src/rules/A15-1-1/OnlyThrowStdExceptionDerivedTypes.ql @@ -11,6 +11,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/advisory + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/A15-1-2/PointerExceptionObject.ql b/cpp/autosar/src/rules/A15-1-2/PointerExceptionObject.ql index b2f101082f..ca7df79d89 100644 --- a/cpp/autosar/src/rules/A15-1-2/PointerExceptionObject.ql +++ b/cpp/autosar/src/rules/A15-1-2/PointerExceptionObject.ql @@ -11,6 +11,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/A15-2-2/ConstructorErrorLeavesObjectInInvalidState.ql b/cpp/autosar/src/rules/A15-2-2/ConstructorErrorLeavesObjectInInvalidState.ql index 1b3a3cfed2..4213b8273d 100644 --- a/cpp/autosar/src/rules/A15-2-2/ConstructorErrorLeavesObjectInInvalidState.ql +++ b/cpp/autosar/src/rules/A15-2-2/ConstructorErrorLeavesObjectInInvalidState.ql @@ -12,6 +12,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/partially-automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/A15-3-3/MissingCatchHandlerInMain.ql b/cpp/autosar/src/rules/A15-3-3/MissingCatchHandlerInMain.ql index ce3a10f31d..78fbfc5305 100644 --- a/cpp/autosar/src/rules/A15-3-3/MissingCatchHandlerInMain.ql +++ b/cpp/autosar/src/rules/A15-3-3/MissingCatchHandlerInMain.ql @@ -13,6 +13,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/partially-automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/A15-3-4/CatchAllEllipsisUsedInNonMain.ql b/cpp/autosar/src/rules/A15-3-4/CatchAllEllipsisUsedInNonMain.ql index 61f520e004..c95a19f5e4 100644 --- a/cpp/autosar/src/rules/A15-3-4/CatchAllEllipsisUsedInNonMain.ql +++ b/cpp/autosar/src/rules/A15-3-4/CatchAllEllipsisUsedInNonMain.ql @@ -13,6 +13,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/non-automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/A15-4-1/UseOfDynamicExceptionSpecification.ql b/cpp/autosar/src/rules/A15-4-1/UseOfDynamicExceptionSpecification.ql index a12602c7ae..a14efc0fef 100644 --- a/cpp/autosar/src/rules/A15-4-1/UseOfDynamicExceptionSpecification.ql +++ b/cpp/autosar/src/rules/A15-4-1/UseOfDynamicExceptionSpecification.ql @@ -10,6 +10,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/cpp/autosar/src/rules/A15-4-3/IncompatibleNoexceptSpecification.ql b/cpp/autosar/src/rules/A15-4-3/IncompatibleNoexceptSpecification.ql index b8ad76cc37..500354aa3b 100644 --- a/cpp/autosar/src/rules/A15-4-3/IncompatibleNoexceptSpecification.ql +++ b/cpp/autosar/src/rules/A15-4-3/IncompatibleNoexceptSpecification.ql @@ -11,6 +11,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/A15-4-3/IncompatibleNoexceptSpecificationForOverriders.ql b/cpp/autosar/src/rules/A15-4-3/IncompatibleNoexceptSpecificationForOverriders.ql index 87f7af2ade..e530653587 100644 --- a/cpp/autosar/src/rules/A15-4-3/IncompatibleNoexceptSpecificationForOverriders.ql +++ b/cpp/autosar/src/rules/A15-4-3/IncompatibleNoexceptSpecificationForOverriders.ql @@ -11,6 +11,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/A15-4-3/InconsistentNoexceptFalseSpecification.ql b/cpp/autosar/src/rules/A15-4-3/InconsistentNoexceptFalseSpecification.ql index 69ffae87e5..95aa75c7d4 100644 --- a/cpp/autosar/src/rules/A15-4-3/InconsistentNoexceptFalseSpecification.ql +++ b/cpp/autosar/src/rules/A15-4-3/InconsistentNoexceptFalseSpecification.ql @@ -11,6 +11,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/A15-4-3/InconsistentNoexceptTrueSpecification.ql b/cpp/autosar/src/rules/A15-4-3/InconsistentNoexceptTrueSpecification.ql index fc4ac468c1..6bb345a0d6 100644 --- a/cpp/autosar/src/rules/A15-4-3/InconsistentNoexceptTrueSpecification.ql +++ b/cpp/autosar/src/rules/A15-4-3/InconsistentNoexceptTrueSpecification.ql @@ -11,6 +11,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/A16-2-1/CharactersOccurInHeaderFileNameOrInIncludeDirective.ql b/cpp/autosar/src/rules/A16-2-1/CharactersOccurInHeaderFileNameOrInIncludeDirective.ql index 18a373e935..25e291335a 100644 --- a/cpp/autosar/src/rules/A16-2-1/CharactersOccurInHeaderFileNameOrInIncludeDirective.ql +++ b/cpp/autosar/src/rules/A16-2-1/CharactersOccurInHeaderFileNameOrInIncludeDirective.ql @@ -11,6 +11,8 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety + * coding-standards/baseline/style */ import cpp diff --git a/cpp/autosar/src/rules/A16-6-1/ErrorDirectiveUsed.ql b/cpp/autosar/src/rules/A16-6-1/ErrorDirectiveUsed.ql index 136de7ceea..300d75825b 100644 --- a/cpp/autosar/src/rules/A16-6-1/ErrorDirectiveUsed.ql +++ b/cpp/autosar/src/rules/A16-6-1/ErrorDirectiveUsed.ql @@ -10,6 +10,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/cpp/autosar/src/rules/A18-0-2/StringNumberConversionMissingErrorCheck.ql b/cpp/autosar/src/rules/A18-0-2/StringNumberConversionMissingErrorCheck.ql index 99d5393171..aafe2eb9a9 100644 --- a/cpp/autosar/src/rules/A18-0-2/StringNumberConversionMissingErrorCheck.ql +++ b/cpp/autosar/src/rules/A18-0-2/StringNumberConversionMissingErrorCheck.ql @@ -11,6 +11,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/A18-0-2/UseOfUnsafeCStringToNumberConversion.ql b/cpp/autosar/src/rules/A18-0-2/UseOfUnsafeCStringToNumberConversion.ql index 9300bb9d1e..561cf2e6e7 100644 --- a/cpp/autosar/src/rules/A18-0-2/UseOfUnsafeCStringToNumberConversion.ql +++ b/cpp/autosar/src/rules/A18-0-2/UseOfUnsafeCStringToNumberConversion.ql @@ -11,6 +11,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/A18-1-2/VectorboolSpecializationUsed.ql b/cpp/autosar/src/rules/A18-1-2/VectorboolSpecializationUsed.ql index 5bbe181927..5c83ee5434 100644 --- a/cpp/autosar/src/rules/A18-1-2/VectorboolSpecializationUsed.ql +++ b/cpp/autosar/src/rules/A18-1-2/VectorboolSpecializationUsed.ql @@ -13,6 +13,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/A18-1-3/AutoPtrTypeUsed.ql b/cpp/autosar/src/rules/A18-1-3/AutoPtrTypeUsed.ql index 4b9d187dc1..0dff356a2a 100644 --- a/cpp/autosar/src/rules/A18-1-3/AutoPtrTypeUsed.ql +++ b/cpp/autosar/src/rules/A18-1-3/AutoPtrTypeUsed.ql @@ -11,6 +11,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/cpp/autosar/src/rules/A18-1-4/PointerToAnElementOfAnArrayPassedToASmartPointer.ql b/cpp/autosar/src/rules/A18-1-4/PointerToAnElementOfAnArrayPassedToASmartPointer.ql index 353c985137..c4ec8d6870 100644 --- a/cpp/autosar/src/rules/A18-1-4/PointerToAnElementOfAnArrayPassedToASmartPointer.ql +++ b/cpp/autosar/src/rules/A18-1-4/PointerToAnElementOfAnArrayPassedToASmartPointer.ql @@ -11,6 +11,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/A18-5-11/OperatorNewAndOperatorDeleteNotDefinedGlobally.ql b/cpp/autosar/src/rules/A18-5-11/OperatorNewAndOperatorDeleteNotDefinedGlobally.ql index 244dfefc5b..1796700246 100644 --- a/cpp/autosar/src/rules/A18-5-11/OperatorNewAndOperatorDeleteNotDefinedGlobally.ql +++ b/cpp/autosar/src/rules/A18-5-11/OperatorNewAndOperatorDeleteNotDefinedGlobally.ql @@ -12,6 +12,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/A18-5-11/OperatorNewAndOperatorDeleteNotDefinedLocally.ql b/cpp/autosar/src/rules/A18-5-11/OperatorNewAndOperatorDeleteNotDefinedLocally.ql index 5d4cd71c79..c8e2d4bfc5 100644 --- a/cpp/autosar/src/rules/A18-5-11/OperatorNewAndOperatorDeleteNotDefinedLocally.ql +++ b/cpp/autosar/src/rules/A18-5-11/OperatorNewAndOperatorDeleteNotDefinedLocally.ql @@ -12,6 +12,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/A18-5-3/NewArrayDeleteMismatch.ql b/cpp/autosar/src/rules/A18-5-3/NewArrayDeleteMismatch.ql index 24be6ef3e7..dfec63f565 100644 --- a/cpp/autosar/src/rules/A18-5-3/NewArrayDeleteMismatch.ql +++ b/cpp/autosar/src/rules/A18-5-3/NewArrayDeleteMismatch.ql @@ -12,6 +12,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/A18-5-3/NewDeleteArrayMismatch.ql b/cpp/autosar/src/rules/A18-5-3/NewDeleteArrayMismatch.ql index cbf956ce16..ac15e59131 100644 --- a/cpp/autosar/src/rules/A18-5-3/NewDeleteArrayMismatch.ql +++ b/cpp/autosar/src/rules/A18-5-3/NewDeleteArrayMismatch.ql @@ -11,6 +11,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/A18-5-8/UnnecessaryUseOfDynamicStorage.ql b/cpp/autosar/src/rules/A18-5-8/UnnecessaryUseOfDynamicStorage.ql index cf83f055bd..6c9689a06c 100644 --- a/cpp/autosar/src/rules/A18-5-8/UnnecessaryUseOfDynamicStorage.ql +++ b/cpp/autosar/src/rules/A18-5-8/UnnecessaryUseOfDynamicStorage.ql @@ -12,6 +12,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/partially-automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/A18-5-9/ThrowingNoThrowOperatorNewDeleteAutosar.ql b/cpp/autosar/src/rules/A18-5-9/ThrowingNoThrowOperatorNewDeleteAutosar.ql index f2cf835a2b..be1ebff146 100644 --- a/cpp/autosar/src/rules/A18-5-9/ThrowingNoThrowOperatorNewDeleteAutosar.ql +++ b/cpp/autosar/src/rules/A18-5-9/ThrowingNoThrowOperatorNewDeleteAutosar.ql @@ -12,6 +12,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/A18-5-9/ThrowingOperatorNewReturnsNullAutosar.ql b/cpp/autosar/src/rules/A18-5-9/ThrowingOperatorNewReturnsNullAutosar.ql index 3d8e14c855..7b73a52c7c 100644 --- a/cpp/autosar/src/rules/A18-5-9/ThrowingOperatorNewReturnsNullAutosar.ql +++ b/cpp/autosar/src/rules/A18-5-9/ThrowingOperatorNewReturnsNullAutosar.ql @@ -11,6 +11,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/A18-5-9/ThrowingOperatorNewThrowsInvalidExceptionAutosar.ql b/cpp/autosar/src/rules/A18-5-9/ThrowingOperatorNewThrowsInvalidExceptionAutosar.ql index c85eba435d..749127565e 100644 --- a/cpp/autosar/src/rules/A18-5-9/ThrowingOperatorNewThrowsInvalidExceptionAutosar.ql +++ b/cpp/autosar/src/rules/A18-5-9/ThrowingOperatorNewThrowsInvalidExceptionAutosar.ql @@ -12,6 +12,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/A18-9-1/BindUsed.ql b/cpp/autosar/src/rules/A18-9-1/BindUsed.ql index 9f594f1ed3..2b5b6379fe 100644 --- a/cpp/autosar/src/rules/A18-9-1/BindUsed.ql +++ b/cpp/autosar/src/rules/A18-9-1/BindUsed.ql @@ -11,6 +11,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/cpp/autosar/src/rules/A18-9-2/ForwardingValuesToOtherFunctions.ql b/cpp/autosar/src/rules/A18-9-2/ForwardingValuesToOtherFunctions.ql index 72de362ebc..d31796983e 100644 --- a/cpp/autosar/src/rules/A18-9-2/ForwardingValuesToOtherFunctions.ql +++ b/cpp/autosar/src/rules/A18-9-2/ForwardingValuesToOtherFunctions.ql @@ -11,6 +11,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/cpp/autosar/src/rules/A18-9-3/MoveUsedOnConstObjects.ql b/cpp/autosar/src/rules/A18-9-3/MoveUsedOnConstObjects.ql index e268ec75d9..18952c4ea5 100644 --- a/cpp/autosar/src/rules/A18-9-3/MoveUsedOnConstObjects.ql +++ b/cpp/autosar/src/rules/A18-9-3/MoveUsedOnConstObjects.ql @@ -10,6 +10,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/A18-9-4/ArgumentToForwardSubsequentlyUsed.ql b/cpp/autosar/src/rules/A18-9-4/ArgumentToForwardSubsequentlyUsed.ql index a3acf916ec..c5a81aad82 100644 --- a/cpp/autosar/src/rules/A18-9-4/ArgumentToForwardSubsequentlyUsed.ql +++ b/cpp/autosar/src/rules/A18-9-4/ArgumentToForwardSubsequentlyUsed.ql @@ -9,6 +9,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/A2-13-1/EscapeSequenceOutsideISO.ql b/cpp/autosar/src/rules/A2-13-1/EscapeSequenceOutsideISO.ql index 0f1d9a3271..545d1880f8 100644 --- a/cpp/autosar/src/rules/A2-13-1/EscapeSequenceOutsideISO.ql +++ b/cpp/autosar/src/rules/A2-13-1/EscapeSequenceOutsideISO.ql @@ -12,6 +12,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/A2-13-4/StringLiteralsAssignedToNonConstantPointers.ql b/cpp/autosar/src/rules/A2-13-4/StringLiteralsAssignedToNonConstantPointers.ql index 1e0f297435..1814f18380 100644 --- a/cpp/autosar/src/rules/A2-13-4/StringLiteralsAssignedToNonConstantPointers.ql +++ b/cpp/autosar/src/rules/A2-13-4/StringLiteralsAssignedToNonConstantPointers.ql @@ -13,6 +13,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/A2-13-6/UniversalCharacterNamesUsedOutsideCharacterOrStringLiterals.ql b/cpp/autosar/src/rules/A2-13-6/UniversalCharacterNamesUsedOutsideCharacterOrStringLiterals.ql index 234a1c917b..61e7a3fd3d 100644 --- a/cpp/autosar/src/rules/A2-13-6/UniversalCharacterNamesUsedOutsideCharacterOrStringLiterals.ql +++ b/cpp/autosar/src/rules/A2-13-6/UniversalCharacterNamesUsedOutsideCharacterOrStringLiterals.ql @@ -14,6 +14,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/cpp/autosar/src/rules/A2-7-1/SingleLineCommentEndsWithSlash.ql b/cpp/autosar/src/rules/A2-7-1/SingleLineCommentEndsWithSlash.ql index cd7d7c42cd..27925c0f82 100644 --- a/cpp/autosar/src/rules/A2-7-1/SingleLineCommentEndsWithSlash.ql +++ b/cpp/autosar/src/rules/A2-7-1/SingleLineCommentEndsWithSlash.ql @@ -13,6 +13,8 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety + * coding-standards/baseline/style */ import cpp diff --git a/cpp/autosar/src/rules/A20-8-2/UniquePtrNotUsedToRepresentExclusiveOwnership.ql b/cpp/autosar/src/rules/A20-8-2/UniquePtrNotUsedToRepresentExclusiveOwnership.ql index aafce46f7a..ea4a1c8e93 100644 --- a/cpp/autosar/src/rules/A20-8-2/UniquePtrNotUsedToRepresentExclusiveOwnership.ql +++ b/cpp/autosar/src/rules/A20-8-2/UniquePtrNotUsedToRepresentExclusiveOwnership.ql @@ -11,6 +11,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/A21-8-1/SignedValPassedToChar.ql b/cpp/autosar/src/rules/A21-8-1/SignedValPassedToChar.ql index 3467ff513d..854fbb1cff 100644 --- a/cpp/autosar/src/rules/A21-8-1/SignedValPassedToChar.ql +++ b/cpp/autosar/src/rules/A21-8-1/SignedValPassedToChar.ql @@ -11,6 +11,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/A23-0-1/IteratorImplicitlyConvertedToConstIterator.ql b/cpp/autosar/src/rules/A23-0-1/IteratorImplicitlyConvertedToConstIterator.ql index d67058868c..a04330488f 100644 --- a/cpp/autosar/src/rules/A23-0-1/IteratorImplicitlyConvertedToConstIterator.ql +++ b/cpp/autosar/src/rules/A23-0-1/IteratorImplicitlyConvertedToConstIterator.ql @@ -9,6 +9,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/A3-1-1/ViolationsOfOneDefinitionRule.ql b/cpp/autosar/src/rules/A3-1-1/ViolationsOfOneDefinitionRule.ql index 4beb91e8f4..cae4b01b56 100644 --- a/cpp/autosar/src/rules/A3-1-1/ViolationsOfOneDefinitionRule.ql +++ b/cpp/autosar/src/rules/A3-1-1/ViolationsOfOneDefinitionRule.ql @@ -16,6 +16,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/A3-1-2/HeaderFileExpectedFileNameExtension.ql b/cpp/autosar/src/rules/A3-1-2/HeaderFileExpectedFileNameExtension.ql index c4032537c0..8a12dae8ef 100644 --- a/cpp/autosar/src/rules/A3-1-2/HeaderFileExpectedFileNameExtension.ql +++ b/cpp/autosar/src/rules/A3-1-2/HeaderFileExpectedFileNameExtension.ql @@ -14,6 +14,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/cpp/autosar/src/rules/A3-1-3/FileNameExtensionCpp.ql b/cpp/autosar/src/rules/A3-1-3/FileNameExtensionCpp.ql index 15847cd908..120254d7f1 100644 --- a/cpp/autosar/src/rules/A3-1-3/FileNameExtensionCpp.ql +++ b/cpp/autosar/src/rules/A3-1-3/FileNameExtensionCpp.ql @@ -14,6 +14,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/advisory + * coding-standards/baseline/style */ import cpp diff --git a/cpp/autosar/src/rules/A3-1-4/ExternalLinkageArrayWithoutExplicitSize.ql b/cpp/autosar/src/rules/A3-1-4/ExternalLinkageArrayWithoutExplicitSize.ql index 3a6f335167..fbe504d56f 100644 --- a/cpp/autosar/src/rules/A3-1-4/ExternalLinkageArrayWithoutExplicitSize.ql +++ b/cpp/autosar/src/rules/A3-1-4/ExternalLinkageArrayWithoutExplicitSize.ql @@ -12,6 +12,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/cpp/autosar/src/rules/A3-1-5/NonTrivialNonTemplateFunctionDefinedInsideClassDefinition.ql b/cpp/autosar/src/rules/A3-1-5/NonTrivialNonTemplateFunctionDefinedInsideClassDefinition.ql index 9b250e487a..e694e92fe4 100644 --- a/cpp/autosar/src/rules/A3-1-5/NonTrivialNonTemplateFunctionDefinedInsideClassDefinition.ql +++ b/cpp/autosar/src/rules/A3-1-5/NonTrivialNonTemplateFunctionDefinedInsideClassDefinition.ql @@ -11,6 +11,7 @@ * external/autosar/allocated-target/design * external/autosar/enforcement/partially-automated * external/autosar/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/cpp/autosar/src/rules/A3-1-6/TrivialAccessorAndMutatorFunctionsNotInlined.ql b/cpp/autosar/src/rules/A3-1-6/TrivialAccessorAndMutatorFunctionsNotInlined.ql index 39971f3981..7b2da0c6e7 100644 --- a/cpp/autosar/src/rules/A3-1-6/TrivialAccessorAndMutatorFunctionsNotInlined.ql +++ b/cpp/autosar/src/rules/A3-1-6/TrivialAccessorAndMutatorFunctionsNotInlined.ql @@ -10,6 +10,7 @@ * external/autosar/allocated-target/design * external/autosar/enforcement/automated * external/autosar/obligation/advisory + * coding-standards/baseline/style */ import cpp diff --git a/cpp/autosar/src/rules/A5-0-3/DeclarationContainLessThanTwoLevelsOfIndirection.ql b/cpp/autosar/src/rules/A5-0-3/DeclarationContainLessThanTwoLevelsOfIndirection.ql index 2e866c9f2d..301949f612 100644 --- a/cpp/autosar/src/rules/A5-0-3/DeclarationContainLessThanTwoLevelsOfIndirection.ql +++ b/cpp/autosar/src/rules/A5-0-3/DeclarationContainLessThanTwoLevelsOfIndirection.ql @@ -13,6 +13,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/A5-1-2/ImplicitLambdaCapture.ql b/cpp/autosar/src/rules/A5-1-2/ImplicitLambdaCapture.ql index 77cf0ba353..8d65e49326 100644 --- a/cpp/autosar/src/rules/A5-1-2/ImplicitLambdaCapture.ql +++ b/cpp/autosar/src/rules/A5-1-2/ImplicitLambdaCapture.ql @@ -11,6 +11,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/cpp/autosar/src/rules/A5-1-3/LambdaExpressionWithoutParameterList.ql b/cpp/autosar/src/rules/A5-1-3/LambdaExpressionWithoutParameterList.ql index 7d3d630d95..1aec8c4ef4 100644 --- a/cpp/autosar/src/rules/A5-1-3/LambdaExpressionWithoutParameterList.ql +++ b/cpp/autosar/src/rules/A5-1-3/LambdaExpressionWithoutParameterList.ql @@ -11,6 +11,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/cpp/autosar/src/rules/A5-1-8/LambdaExpressionInLambdaExpression.ql b/cpp/autosar/src/rules/A5-1-8/LambdaExpressionInLambdaExpression.ql index 26a755eb2a..88a98dbdd8 100644 --- a/cpp/autosar/src/rules/A5-1-8/LambdaExpressionInLambdaExpression.ql +++ b/cpp/autosar/src/rules/A5-1-8/LambdaExpressionInLambdaExpression.ql @@ -11,6 +11,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/advisory + * coding-standards/baseline/style */ import cpp diff --git a/cpp/autosar/src/rules/A5-1-9/IdenticalLambdaExpressions.ql b/cpp/autosar/src/rules/A5-1-9/IdenticalLambdaExpressions.ql index 1520955716..d7ef42c93b 100644 --- a/cpp/autosar/src/rules/A5-1-9/IdenticalLambdaExpressions.ql +++ b/cpp/autosar/src/rules/A5-1-9/IdenticalLambdaExpressions.ql @@ -12,6 +12,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/advisory + * coding-standards/baseline/style */ import cpp diff --git a/cpp/autosar/src/rules/A5-10-1/PointerToMemberVirtualFunctionWithNullPointerConstant.ql b/cpp/autosar/src/rules/A5-10-1/PointerToMemberVirtualFunctionWithNullPointerConstant.ql index 825347754d..93d467a623 100644 --- a/cpp/autosar/src/rules/A5-10-1/PointerToMemberVirtualFunctionWithNullPointerConstant.ql +++ b/cpp/autosar/src/rules/A5-10-1/PointerToMemberVirtualFunctionWithNullPointerConstant.ql @@ -12,6 +12,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/A5-3-2/NullPointersDereferenced.ql b/cpp/autosar/src/rules/A5-3-2/NullPointersDereferenced.ql index e342c53d00..c733655644 100644 --- a/cpp/autosar/src/rules/A5-3-2/NullPointersDereferenced.ql +++ b/cpp/autosar/src/rules/A5-3-2/NullPointersDereferenced.ql @@ -10,6 +10,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/partially-automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/A5-5-1/PointerToMemberAccessNonExistentClassMembers.ql b/cpp/autosar/src/rules/A5-5-1/PointerToMemberAccessNonExistentClassMembers.ql index e3a78ce30c..46f4cd7dde 100644 --- a/cpp/autosar/src/rules/A5-5-1/PointerToMemberAccessNonExistentClassMembers.ql +++ b/cpp/autosar/src/rules/A5-5-1/PointerToMemberAccessNonExistentClassMembers.ql @@ -11,6 +11,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/A5-5-1/UninitializedStaticPointerToMemberUse.ql b/cpp/autosar/src/rules/A5-5-1/UninitializedStaticPointerToMemberUse.ql index b6aa698e65..268ebe30c0 100644 --- a/cpp/autosar/src/rules/A5-5-1/UninitializedStaticPointerToMemberUse.ql +++ b/cpp/autosar/src/rules/A5-5-1/UninitializedStaticPointerToMemberUse.ql @@ -11,6 +11,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/A6-2-2/ExplicitConstructionOfUnnamedTemporary.ql b/cpp/autosar/src/rules/A6-2-2/ExplicitConstructionOfUnnamedTemporary.ql index 8da5de6878..5e1a542593 100644 --- a/cpp/autosar/src/rules/A6-2-2/ExplicitConstructionOfUnnamedTemporary.ql +++ b/cpp/autosar/src/rules/A6-2-2/ExplicitConstructionOfUnnamedTemporary.ql @@ -12,6 +12,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/A6-5-1/UnusedLoopCounterForContainerIteration.ql b/cpp/autosar/src/rules/A6-5-1/UnusedLoopCounterForContainerIteration.ql index 29b660a464..028e2049b8 100644 --- a/cpp/autosar/src/rules/A6-5-1/UnusedLoopCounterForContainerIteration.ql +++ b/cpp/autosar/src/rules/A6-5-1/UnusedLoopCounterForContainerIteration.ql @@ -11,6 +11,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/cpp/autosar/src/rules/A6-6-1/GotoStatementUsed.ql b/cpp/autosar/src/rules/A6-6-1/GotoStatementUsed.ql index 03b891e6db..046a9bb1fa 100644 --- a/cpp/autosar/src/rules/A6-6-1/GotoStatementUsed.ql +++ b/cpp/autosar/src/rules/A6-6-1/GotoStatementUsed.ql @@ -12,6 +12,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/cpp/autosar/src/rules/A7-1-4/RegisterKeywordUsed.ql b/cpp/autosar/src/rules/A7-1-4/RegisterKeywordUsed.ql index 9a5b6abfb4..deea04b155 100644 --- a/cpp/autosar/src/rules/A7-1-4/RegisterKeywordUsed.ql +++ b/cpp/autosar/src/rules/A7-1-4/RegisterKeywordUsed.ql @@ -11,6 +11,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/cpp/autosar/src/rules/A7-1-9/ClassStructEnumDeclaredInDefinition.ql b/cpp/autosar/src/rules/A7-1-9/ClassStructEnumDeclaredInDefinition.ql index b46c445965..108df61dcf 100644 --- a/cpp/autosar/src/rules/A7-1-9/ClassStructEnumDeclaredInDefinition.ql +++ b/cpp/autosar/src/rules/A7-1-9/ClassStructEnumDeclaredInDefinition.ql @@ -11,6 +11,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/cpp/autosar/src/rules/A7-2-3/EnumerationsNotDeclaredAsScopedEnumClasses.ql b/cpp/autosar/src/rules/A7-2-3/EnumerationsNotDeclaredAsScopedEnumClasses.ql index 26e877d75f..2e453999ba 100644 --- a/cpp/autosar/src/rules/A7-2-3/EnumerationsNotDeclaredAsScopedEnumClasses.ql +++ b/cpp/autosar/src/rules/A7-2-3/EnumerationsNotDeclaredAsScopedEnumClasses.ql @@ -12,6 +12,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/cpp/autosar/src/rules/A7-2-4/NoneFirstOrAllEnumeratorsNotInitialized.ql b/cpp/autosar/src/rules/A7-2-4/NoneFirstOrAllEnumeratorsNotInitialized.ql index d8d3ee0240..e439d0f2a6 100644 --- a/cpp/autosar/src/rules/A7-2-4/NoneFirstOrAllEnumeratorsNotInitialized.ql +++ b/cpp/autosar/src/rules/A7-2-4/NoneFirstOrAllEnumeratorsNotInitialized.ql @@ -12,6 +12,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/cpp/autosar/src/rules/A7-2-5/IntegerUsedForEnum.ql b/cpp/autosar/src/rules/A7-2-5/IntegerUsedForEnum.ql index af0d66f22b..eb9f376286 100644 --- a/cpp/autosar/src/rules/A7-2-5/IntegerUsedForEnum.ql +++ b/cpp/autosar/src/rules/A7-2-5/IntegerUsedForEnum.ql @@ -12,6 +12,7 @@ * external/autosar/allocated-target/design * external/autosar/enforcement/non-automated * external/autosar/obligation/advisory + * coding-standards/baseline/style */ import cpp diff --git a/cpp/autosar/src/rules/A7-5-1/InvalidFunctionReturnType.ql b/cpp/autosar/src/rules/A7-5-1/InvalidFunctionReturnType.ql index c36bda6cdd..0eca2915af 100644 --- a/cpp/autosar/src/rules/A7-5-1/InvalidFunctionReturnType.ql +++ b/cpp/autosar/src/rules/A7-5-1/InvalidFunctionReturnType.ql @@ -12,6 +12,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/A8-4-5/MoveFromConsumeParametersRvalRef.ql b/cpp/autosar/src/rules/A8-4-5/MoveFromConsumeParametersRvalRef.ql index 0284b3ba14..472340eb21 100644 --- a/cpp/autosar/src/rules/A8-4-5/MoveFromConsumeParametersRvalRef.ql +++ b/cpp/autosar/src/rules/A8-4-5/MoveFromConsumeParametersRvalRef.ql @@ -10,6 +10,7 @@ * external/autosar/allocated-target/design * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/cpp/autosar/src/rules/A8-4-6/ForwardForwardingReferences.ql b/cpp/autosar/src/rules/A8-4-6/ForwardForwardingReferences.ql index d594d2379e..40aaea446b 100644 --- a/cpp/autosar/src/rules/A8-4-6/ForwardForwardingReferences.ql +++ b/cpp/autosar/src/rules/A8-4-6/ForwardForwardingReferences.ql @@ -10,6 +10,7 @@ * external/autosar/allocated-target/design * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/cpp/autosar/src/rules/A8-5-4/ConfusingUseOfInitializerListConstructors.ql b/cpp/autosar/src/rules/A8-5-4/ConfusingUseOfInitializerListConstructors.ql index 180cbf7224..582a00503b 100644 --- a/cpp/autosar/src/rules/A8-5-4/ConfusingUseOfInitializerListConstructors.ql +++ b/cpp/autosar/src/rules/A8-5-4/ConfusingUseOfInitializerListConstructors.ql @@ -13,6 +13,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/advisory + * coding-standards/baseline/style */ import cpp diff --git a/cpp/autosar/src/rules/M10-1-3/AccessibleBaseClassBothVirtualAndNonVirtualInHierarchy.ql b/cpp/autosar/src/rules/M10-1-3/AccessibleBaseClassBothVirtualAndNonVirtualInHierarchy.ql index c16e5461f0..1315c39235 100644 --- a/cpp/autosar/src/rules/M10-1-3/AccessibleBaseClassBothVirtualAndNonVirtualInHierarchy.ql +++ b/cpp/autosar/src/rules/M10-1-3/AccessibleBaseClassBothVirtualAndNonVirtualInHierarchy.ql @@ -10,6 +10,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/M10-3-3/VirtualFunctionOverriddenByAPureVirtualFunction.ql b/cpp/autosar/src/rules/M10-3-3/VirtualFunctionOverriddenByAPureVirtualFunction.ql index 479d09eb6e..5661aca4b2 100644 --- a/cpp/autosar/src/rules/M10-3-3/VirtualFunctionOverriddenByAPureVirtualFunction.ql +++ b/cpp/autosar/src/rules/M10-3-3/VirtualFunctionOverriddenByAPureVirtualFunction.ql @@ -11,6 +11,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/M12-1-1/DynamicTypeOfThisUsedFromConstructorOrDestructor.ql b/cpp/autosar/src/rules/M12-1-1/DynamicTypeOfThisUsedFromConstructorOrDestructor.ql index 4b6c037aba..40a394ba47 100644 --- a/cpp/autosar/src/rules/M12-1-1/DynamicTypeOfThisUsedFromConstructorOrDestructor.ql +++ b/cpp/autosar/src/rules/M12-1-1/DynamicTypeOfThisUsedFromConstructorOrDestructor.ql @@ -10,6 +10,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/M14-5-3/CopyAssignmentOperatorNotDeclared.ql b/cpp/autosar/src/rules/M14-5-3/CopyAssignmentOperatorNotDeclared.ql index 1b41fe81bc..7a483303b4 100644 --- a/cpp/autosar/src/rules/M14-5-3/CopyAssignmentOperatorNotDeclared.ql +++ b/cpp/autosar/src/rules/M14-5-3/CopyAssignmentOperatorNotDeclared.ql @@ -13,6 +13,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/M15-0-3/GotoToCatchBlock.ql b/cpp/autosar/src/rules/M15-0-3/GotoToCatchBlock.ql index 67fc3944f4..0e57537500 100644 --- a/cpp/autosar/src/rules/M15-0-3/GotoToCatchBlock.ql +++ b/cpp/autosar/src/rules/M15-0-3/GotoToCatchBlock.ql @@ -10,6 +10,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/M15-0-3/SwitchToCatchBlock.ql b/cpp/autosar/src/rules/M15-0-3/SwitchToCatchBlock.ql index 559c436201..454a4c3bcd 100644 --- a/cpp/autosar/src/rules/M15-0-3/SwitchToCatchBlock.ql +++ b/cpp/autosar/src/rules/M15-0-3/SwitchToCatchBlock.ql @@ -10,6 +10,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/M15-1-1/ExceptionThrownDuringThrow.ql b/cpp/autosar/src/rules/M15-1-1/ExceptionThrownDuringThrow.ql index 4a7f626d03..c30fcac30d 100644 --- a/cpp/autosar/src/rules/M15-1-1/ExceptionThrownDuringThrow.ql +++ b/cpp/autosar/src/rules/M15-1-1/ExceptionThrownDuringThrow.ql @@ -11,6 +11,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/M15-1-2/NullThrownExplicitly.ql b/cpp/autosar/src/rules/M15-1-2/NullThrownExplicitly.ql index 7dfed7aad7..5d00981738 100644 --- a/cpp/autosar/src/rules/M15-1-2/NullThrownExplicitly.ql +++ b/cpp/autosar/src/rules/M15-1-2/NullThrownExplicitly.ql @@ -11,6 +11,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/M15-1-3/EmptyThrowOutsideCatch.ql b/cpp/autosar/src/rules/M15-1-3/EmptyThrowOutsideCatch.ql index 9f99e7c356..e9d96f3284 100644 --- a/cpp/autosar/src/rules/M15-1-3/EmptyThrowOutsideCatch.ql +++ b/cpp/autosar/src/rules/M15-1-3/EmptyThrowOutsideCatch.ql @@ -11,6 +11,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/M15-3-1/ExceptionRaisedDuringStartup.ql b/cpp/autosar/src/rules/M15-3-1/ExceptionRaisedDuringStartup.ql index f5ca9c210d..bc06b5f0dc 100644 --- a/cpp/autosar/src/rules/M15-3-1/ExceptionRaisedDuringStartup.ql +++ b/cpp/autosar/src/rules/M15-3-1/ExceptionRaisedDuringStartup.ql @@ -11,6 +11,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/M15-3-1/ExceptionRaisedDuringTermination.ql b/cpp/autosar/src/rules/M15-3-1/ExceptionRaisedDuringTermination.ql index 54a6ba89e1..856b2d3220 100644 --- a/cpp/autosar/src/rules/M15-3-1/ExceptionRaisedDuringTermination.ql +++ b/cpp/autosar/src/rules/M15-3-1/ExceptionRaisedDuringTermination.ql @@ -11,6 +11,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/M15-3-3/DestroyedValueReferencedInDestructorCatchBlock.ql b/cpp/autosar/src/rules/M15-3-3/DestroyedValueReferencedInDestructorCatchBlock.ql index ba0c499add..0d07ca0051 100644 --- a/cpp/autosar/src/rules/M15-3-3/DestroyedValueReferencedInDestructorCatchBlock.ql +++ b/cpp/autosar/src/rules/M15-3-3/DestroyedValueReferencedInDestructorCatchBlock.ql @@ -12,6 +12,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/M15-3-4/CatchAllExplicitlyThrownExceptions.ql b/cpp/autosar/src/rules/M15-3-4/CatchAllExplicitlyThrownExceptions.ql index e324dd128f..d242c4ec61 100644 --- a/cpp/autosar/src/rules/M15-3-4/CatchAllExplicitlyThrownExceptions.ql +++ b/cpp/autosar/src/rules/M15-3-4/CatchAllExplicitlyThrownExceptions.ql @@ -10,6 +10,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/M15-3-7/CatchAllHandlerLast.ql b/cpp/autosar/src/rules/M15-3-7/CatchAllHandlerLast.ql index 23c75bff91..1a69853de9 100644 --- a/cpp/autosar/src/rules/M15-3-7/CatchAllHandlerLast.ql +++ b/cpp/autosar/src/rules/M15-3-7/CatchAllHandlerLast.ql @@ -10,6 +10,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/M16-0-5/FunctionLikeMacroArgsContainHashToken.ql b/cpp/autosar/src/rules/M16-0-5/FunctionLikeMacroArgsContainHashToken.ql index 38312b7b1a..2b3dba0f9e 100644 --- a/cpp/autosar/src/rules/M16-0-5/FunctionLikeMacroArgsContainHashToken.ql +++ b/cpp/autosar/src/rules/M16-0-5/FunctionLikeMacroArgsContainHashToken.ql @@ -12,6 +12,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/M16-1-1/DefinedPreProcessorOperatorGeneratedFromExpansionFound.ql b/cpp/autosar/src/rules/M16-1-1/DefinedPreProcessorOperatorGeneratedFromExpansionFound.ql index 761ef27ebb..f71cf43db6 100644 --- a/cpp/autosar/src/rules/M16-1-1/DefinedPreProcessorOperatorGeneratedFromExpansionFound.ql +++ b/cpp/autosar/src/rules/M16-1-1/DefinedPreProcessorOperatorGeneratedFromExpansionFound.ql @@ -10,6 +10,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/M16-1-1/DefinedPreProcessorOperatorInOneOfTheTwoStandardForms.ql b/cpp/autosar/src/rules/M16-1-1/DefinedPreProcessorOperatorInOneOfTheTwoStandardForms.ql index 2a53875067..a2d10d6cc9 100644 --- a/cpp/autosar/src/rules/M16-1-1/DefinedPreProcessorOperatorInOneOfTheTwoStandardForms.ql +++ b/cpp/autosar/src/rules/M16-1-1/DefinedPreProcessorOperatorInOneOfTheTwoStandardForms.ql @@ -11,6 +11,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/M17-0-5/SetjmpMacroAndTheLongjmpFunctionUsed.ql b/cpp/autosar/src/rules/M17-0-5/SetjmpMacroAndTheLongjmpFunctionUsed.ql index 5e821fc5ff..d6ec60794f 100644 --- a/cpp/autosar/src/rules/M17-0-5/SetjmpMacroAndTheLongjmpFunctionUsed.ql +++ b/cpp/autosar/src/rules/M17-0-5/SetjmpMacroAndTheLongjmpFunctionUsed.ql @@ -11,6 +11,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/M18-0-3/LibraryFunctionsAbortExitGetenvAndSystemFromLibraryCstdlibUsed.ql b/cpp/autosar/src/rules/M18-0-3/LibraryFunctionsAbortExitGetenvAndSystemFromLibraryCstdlibUsed.ql index 8aabeac1e6..a0ee1c2b36 100644 --- a/cpp/autosar/src/rules/M18-0-3/LibraryFunctionsAbortExitGetenvAndSystemFromLibraryCstdlibUsed.ql +++ b/cpp/autosar/src/rules/M18-0-3/LibraryFunctionsAbortExitGetenvAndSystemFromLibraryCstdlibUsed.ql @@ -12,6 +12,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/M18-0-4/TimeHandlingFunctionsOfLibraryCtimeUsed.ql b/cpp/autosar/src/rules/M18-0-4/TimeHandlingFunctionsOfLibraryCtimeUsed.ql index 9ba6ad319e..209d29c05b 100644 --- a/cpp/autosar/src/rules/M18-0-4/TimeHandlingFunctionsOfLibraryCtimeUsed.ql +++ b/cpp/autosar/src/rules/M18-0-4/TimeHandlingFunctionsOfLibraryCtimeUsed.ql @@ -12,6 +12,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/M2-13-2/UseOfNonZeroOctalEscape.ql b/cpp/autosar/src/rules/M2-13-2/UseOfNonZeroOctalEscape.ql index f054b3b25a..6baeebe73a 100644 --- a/cpp/autosar/src/rules/M2-13-2/UseOfNonZeroOctalEscape.ql +++ b/cpp/autosar/src/rules/M2-13-2/UseOfNonZeroOctalEscape.ql @@ -13,6 +13,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/cpp/autosar/src/rules/M2-13-2/UseOfNonZeroOctalLiteral.ql b/cpp/autosar/src/rules/M2-13-2/UseOfNonZeroOctalLiteral.ql index b689edab6b..dabf04ed16 100644 --- a/cpp/autosar/src/rules/M2-13-2/UseOfNonZeroOctalLiteral.ql +++ b/cpp/autosar/src/rules/M2-13-2/UseOfNonZeroOctalLiteral.ql @@ -12,6 +12,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/cpp/autosar/src/rules/M3-1-2/FunctionsDeclaredAtBlockScope.ql b/cpp/autosar/src/rules/M3-1-2/FunctionsDeclaredAtBlockScope.ql index 87d9af147b..541cde7a10 100644 --- a/cpp/autosar/src/rules/M3-1-2/FunctionsDeclaredAtBlockScope.ql +++ b/cpp/autosar/src/rules/M3-1-2/FunctionsDeclaredAtBlockScope.ql @@ -13,6 +13,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/cpp/autosar/src/rules/M3-3-2/MissingStaticSpecifierOnFunctionRedeclaration.ql b/cpp/autosar/src/rules/M3-3-2/MissingStaticSpecifierOnFunctionRedeclaration.ql index e01f2e3343..a20d530ba7 100644 --- a/cpp/autosar/src/rules/M3-3-2/MissingStaticSpecifierOnFunctionRedeclaration.ql +++ b/cpp/autosar/src/rules/M3-3-2/MissingStaticSpecifierOnFunctionRedeclaration.ql @@ -11,6 +11,8 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/style + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/M3-9-3/UnderlyingBitRepresentationsOfFloatingPointValuesUsed.ql b/cpp/autosar/src/rules/M3-9-3/UnderlyingBitRepresentationsOfFloatingPointValuesUsed.ql index 279ad08f3c..40bc612de9 100644 --- a/cpp/autosar/src/rules/M3-9-3/UnderlyingBitRepresentationsOfFloatingPointValuesUsed.ql +++ b/cpp/autosar/src/rules/M3-9-3/UnderlyingBitRepresentationsOfFloatingPointValuesUsed.ql @@ -10,6 +10,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/M4-10-1/NullUsedAsIntegerValue.ql b/cpp/autosar/src/rules/M4-10-1/NullUsedAsIntegerValue.ql index 13b49dc48b..b9febed7dc 100644 --- a/cpp/autosar/src/rules/M4-10-1/NullUsedAsIntegerValue.ql +++ b/cpp/autosar/src/rules/M4-10-1/NullUsedAsIntegerValue.ql @@ -10,6 +10,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/cpp/autosar/src/rules/M4-10-2/LiteralZeroUsedAsNullPointerConstant.ql b/cpp/autosar/src/rules/M4-10-2/LiteralZeroUsedAsNullPointerConstant.ql index 2d5a498656..60741e1f83 100644 --- a/cpp/autosar/src/rules/M4-10-2/LiteralZeroUsedAsNullPointerConstant.ql +++ b/cpp/autosar/src/rules/M4-10-2/LiteralZeroUsedAsNullPointerConstant.ql @@ -10,6 +10,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/cpp/autosar/src/rules/M5-0-16/PointerAndDerivedPointerAccessDifferentArray.ql b/cpp/autosar/src/rules/M5-0-16/PointerAndDerivedPointerAccessDifferentArray.ql index a403c6b533..8b6be58cb8 100644 --- a/cpp/autosar/src/rules/M5-0-16/PointerAndDerivedPointerAccessDifferentArray.ql +++ b/cpp/autosar/src/rules/M5-0-16/PointerAndDerivedPointerAccessDifferentArray.ql @@ -11,6 +11,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/M5-0-17/PointerSubtractionOnDifferentArrays.ql b/cpp/autosar/src/rules/M5-0-17/PointerSubtractionOnDifferentArrays.ql index d6d4f6130a..aed9b58277 100644 --- a/cpp/autosar/src/rules/M5-0-17/PointerSubtractionOnDifferentArrays.ql +++ b/cpp/autosar/src/rules/M5-0-17/PointerSubtractionOnDifferentArrays.ql @@ -11,6 +11,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/M5-18-1/CommaOperatorUsed.ql b/cpp/autosar/src/rules/M5-18-1/CommaOperatorUsed.ql index 2ce4319df1..f0dc70d128 100644 --- a/cpp/autosar/src/rules/M5-18-1/CommaOperatorUsed.ql +++ b/cpp/autosar/src/rules/M5-18-1/CommaOperatorUsed.ql @@ -11,6 +11,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/cpp/autosar/src/rules/M5-19-1/ConstantUnsignedIntegerExpressionsWrapAround.ql b/cpp/autosar/src/rules/M5-19-1/ConstantUnsignedIntegerExpressionsWrapAround.ql index d5d5490fe9..82fcc049d7 100644 --- a/cpp/autosar/src/rules/M5-19-1/ConstantUnsignedIntegerExpressionsWrapAround.ql +++ b/cpp/autosar/src/rules/M5-19-1/ConstantUnsignedIntegerExpressionsWrapAround.ql @@ -17,6 +17,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/M5-2-10/IncrementAndDecrementOperatorsMixedWithOtherOperatorsInExpression.ql b/cpp/autosar/src/rules/M5-2-10/IncrementAndDecrementOperatorsMixedWithOtherOperatorsInExpression.ql index ef9940ff5a..b8ec1eeb67 100644 --- a/cpp/autosar/src/rules/M5-2-10/IncrementAndDecrementOperatorsMixedWithOtherOperatorsInExpression.ql +++ b/cpp/autosar/src/rules/M5-2-10/IncrementAndDecrementOperatorsMixedWithOtherOperatorsInExpression.ql @@ -12,6 +12,8 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/style + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/M5-2-11/CommaOperatorAndOperatorAndTheOperatorOverloaded.ql b/cpp/autosar/src/rules/M5-2-11/CommaOperatorAndOperatorAndTheOperatorOverloaded.ql index ad5d184118..539c71648f 100644 --- a/cpp/autosar/src/rules/M5-2-11/CommaOperatorAndOperatorAndTheOperatorOverloaded.ql +++ b/cpp/autosar/src/rules/M5-2-11/CommaOperatorAndOperatorAndTheOperatorOverloaded.ql @@ -9,6 +9,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/M5-2-2/PointerToAVirtualBaseClassCastToAPointer.ql b/cpp/autosar/src/rules/M5-2-2/PointerToAVirtualBaseClassCastToAPointer.ql index ad49d9e151..8511025404 100644 --- a/cpp/autosar/src/rules/M5-2-2/PointerToAVirtualBaseClassCastToAPointer.ql +++ b/cpp/autosar/src/rules/M5-2-2/PointerToAVirtualBaseClassCastToAPointer.ql @@ -11,6 +11,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/M5-3-2/UnaryMinusOperatorAppliedToAnExpressionWhoseUnderlyingTypeIsUnsigned.ql b/cpp/autosar/src/rules/M5-3-2/UnaryMinusOperatorAppliedToAnExpressionWhoseUnderlyingTypeIsUnsigned.ql index 7017d5e7de..dcbcf163ab 100644 --- a/cpp/autosar/src/rules/M5-3-2/UnaryMinusOperatorAppliedToAnExpressionWhoseUnderlyingTypeIsUnsigned.ql +++ b/cpp/autosar/src/rules/M5-3-2/UnaryMinusOperatorAppliedToAnExpressionWhoseUnderlyingTypeIsUnsigned.ql @@ -10,6 +10,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/M5-3-3/UnaryOperatorOverloaded.ql b/cpp/autosar/src/rules/M5-3-3/UnaryOperatorOverloaded.ql index 94f0bc6062..efa1fc507a 100644 --- a/cpp/autosar/src/rules/M5-3-3/UnaryOperatorOverloaded.ql +++ b/cpp/autosar/src/rules/M5-3-3/UnaryOperatorOverloaded.ql @@ -9,6 +9,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/M6-2-1/AssignmentInSubExpression.ql b/cpp/autosar/src/rules/M6-2-1/AssignmentInSubExpression.ql index fb41c3b6b9..3c5ac437df 100644 --- a/cpp/autosar/src/rules/M6-2-1/AssignmentInSubExpression.ql +++ b/cpp/autosar/src/rules/M6-2-1/AssignmentInSubExpression.ql @@ -11,6 +11,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/cpp/autosar/src/rules/M6-2-2/FloatsTestedForEquality.ql b/cpp/autosar/src/rules/M6-2-2/FloatsTestedForEquality.ql index 2573c57f24..5a442b3f02 100644 --- a/cpp/autosar/src/rules/M6-2-2/FloatsTestedForEquality.ql +++ b/cpp/autosar/src/rules/M6-2-2/FloatsTestedForEquality.ql @@ -13,6 +13,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/partially-automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/M6-3-1/LoopCompoundCondition.ql b/cpp/autosar/src/rules/M6-3-1/LoopCompoundCondition.ql index b3566a1e27..d541d8de3a 100644 --- a/cpp/autosar/src/rules/M6-3-1/LoopCompoundCondition.ql +++ b/cpp/autosar/src/rules/M6-3-1/LoopCompoundCondition.ql @@ -12,6 +12,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/cpp/autosar/src/rules/M6-3-1/SwitchCompoundCondition.ql b/cpp/autosar/src/rules/M6-3-1/SwitchCompoundCondition.ql index f550a456dc..04df5015ec 100644 --- a/cpp/autosar/src/rules/M6-3-1/SwitchCompoundCondition.ql +++ b/cpp/autosar/src/rules/M6-3-1/SwitchCompoundCondition.ql @@ -12,6 +12,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/cpp/autosar/src/rules/M6-4-1/IfCompoundCondition.ql b/cpp/autosar/src/rules/M6-4-1/IfCompoundCondition.ql index 2f0740e18a..10109de975 100644 --- a/cpp/autosar/src/rules/M6-4-1/IfCompoundCondition.ql +++ b/cpp/autosar/src/rules/M6-4-1/IfCompoundCondition.ql @@ -12,6 +12,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/cpp/autosar/src/rules/M6-4-3/SwitchDoesNotStartWithCase.ql b/cpp/autosar/src/rules/M6-4-3/SwitchDoesNotStartWithCase.ql index 07953dd9f1..c19acc7786 100644 --- a/cpp/autosar/src/rules/M6-4-3/SwitchDoesNotStartWithCase.ql +++ b/cpp/autosar/src/rules/M6-4-3/SwitchDoesNotStartWithCase.ql @@ -12,6 +12,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/cpp/autosar/src/rules/M6-4-3/SwitchStatementNotWellFormed.ql b/cpp/autosar/src/rules/M6-4-3/SwitchStatementNotWellFormed.ql index 24ac2298b5..04c1d6b6a5 100644 --- a/cpp/autosar/src/rules/M6-4-3/SwitchStatementNotWellFormed.ql +++ b/cpp/autosar/src/rules/M6-4-3/SwitchStatementNotWellFormed.ql @@ -12,6 +12,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/cpp/autosar/src/rules/M6-4-4/NestedCaseInSwitch.ql b/cpp/autosar/src/rules/M6-4-4/NestedCaseInSwitch.ql index 3b12bf2ef3..77c70a9bfe 100644 --- a/cpp/autosar/src/rules/M6-4-4/NestedCaseInSwitch.ql +++ b/cpp/autosar/src/rules/M6-4-4/NestedCaseInSwitch.ql @@ -11,6 +11,8 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety + * coding-standards/baseline/style */ import cpp diff --git a/cpp/autosar/src/rules/M6-4-5/NonEmptySwitchClauseDoesNotTerminate.ql b/cpp/autosar/src/rules/M6-4-5/NonEmptySwitchClauseDoesNotTerminate.ql index 5dd49dce59..684b9b170a 100644 --- a/cpp/autosar/src/rules/M6-4-5/NonEmptySwitchClauseDoesNotTerminate.ql +++ b/cpp/autosar/src/rules/M6-4-5/NonEmptySwitchClauseDoesNotTerminate.ql @@ -13,6 +13,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/cpp/autosar/src/rules/M6-4-7/BooleanInSwitchCondition.ql b/cpp/autosar/src/rules/M6-4-7/BooleanInSwitchCondition.ql index 0f9540ea21..c253c1eebc 100644 --- a/cpp/autosar/src/rules/M6-4-7/BooleanInSwitchCondition.ql +++ b/cpp/autosar/src/rules/M6-4-7/BooleanInSwitchCondition.ql @@ -11,6 +11,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/cpp/autosar/src/rules/M6-5-2/NotEqualsInLoopCondition.ql b/cpp/autosar/src/rules/M6-5-2/NotEqualsInLoopCondition.ql index 8d20712021..f83662ea4e 100644 --- a/cpp/autosar/src/rules/M6-5-2/NotEqualsInLoopCondition.ql +++ b/cpp/autosar/src/rules/M6-5-2/NotEqualsInLoopCondition.ql @@ -10,6 +10,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/M6-5-3/LoopCounterModifiedWithinCondition.ql b/cpp/autosar/src/rules/M6-5-3/LoopCounterModifiedWithinCondition.ql index f97aba1a4c..ffb032b260 100644 --- a/cpp/autosar/src/rules/M6-5-3/LoopCounterModifiedWithinCondition.ql +++ b/cpp/autosar/src/rules/M6-5-3/LoopCounterModifiedWithinCondition.ql @@ -9,6 +9,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/M6-5-5/LoopControlVariableModifiedInLoopCondition.ql b/cpp/autosar/src/rules/M6-5-5/LoopControlVariableModifiedInLoopCondition.ql index a8676bf9f2..1ee18f2d8b 100644 --- a/cpp/autosar/src/rules/M6-5-5/LoopControlVariableModifiedInLoopCondition.ql +++ b/cpp/autosar/src/rules/M6-5-5/LoopControlVariableModifiedInLoopCondition.ql @@ -10,6 +10,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/M6-5-5/LoopControlVariableModifiedInLoopExpression.ql b/cpp/autosar/src/rules/M6-5-5/LoopControlVariableModifiedInLoopExpression.ql index f837e5de71..11458704fb 100644 --- a/cpp/autosar/src/rules/M6-5-5/LoopControlVariableModifiedInLoopExpression.ql +++ b/cpp/autosar/src/rules/M6-5-5/LoopControlVariableModifiedInLoopExpression.ql @@ -10,6 +10,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/M6-6-1/GotoBlockCondition.ql b/cpp/autosar/src/rules/M6-6-1/GotoBlockCondition.ql index 84f7a00ba9..b308823ec9 100644 --- a/cpp/autosar/src/rules/M6-6-1/GotoBlockCondition.ql +++ b/cpp/autosar/src/rules/M6-6-1/GotoBlockCondition.ql @@ -11,6 +11,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/M6-6-2/GotoStatementJumpCondition.ql b/cpp/autosar/src/rules/M6-6-2/GotoStatementJumpCondition.ql index bde6e8ddee..b937f53b93 100644 --- a/cpp/autosar/src/rules/M6-6-2/GotoStatementJumpCondition.ql +++ b/cpp/autosar/src/rules/M6-6-2/GotoStatementJumpCondition.ql @@ -11,6 +11,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/M7-3-6/UsingDeclarationsUsedInHeaderFiles.ql b/cpp/autosar/src/rules/M7-3-6/UsingDeclarationsUsedInHeaderFiles.ql index 5a2a1e7b30..427d352c78 100644 --- a/cpp/autosar/src/rules/M7-3-6/UsingDeclarationsUsedInHeaderFiles.ql +++ b/cpp/autosar/src/rules/M7-3-6/UsingDeclarationsUsedInHeaderFiles.ql @@ -12,6 +12,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/cpp/autosar/src/rules/M7-5-1/FunctionReturnAutomaticVarCondition.ql b/cpp/autosar/src/rules/M7-5-1/FunctionReturnAutomaticVarCondition.ql index cb5aa9d105..19b00c70ab 100644 --- a/cpp/autosar/src/rules/M7-5-1/FunctionReturnAutomaticVarCondition.ql +++ b/cpp/autosar/src/rules/M7-5-1/FunctionReturnAutomaticVarCondition.ql @@ -12,6 +12,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/non-automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/M7-5-2/AssignmentOfEscapingAutoStorage.ql b/cpp/autosar/src/rules/M7-5-2/AssignmentOfEscapingAutoStorage.ql index 9ebdeb17c8..2e3cbada06 100644 --- a/cpp/autosar/src/rules/M7-5-2/AssignmentOfEscapingAutoStorage.ql +++ b/cpp/autosar/src/rules/M7-5-2/AssignmentOfEscapingAutoStorage.ql @@ -11,6 +11,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/non-automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/autosar/src/rules/M8-3-1/VirtualFunctionParametersUseTheSameDefaultArguments.ql b/cpp/autosar/src/rules/M8-3-1/VirtualFunctionParametersUseTheSameDefaultArguments.ql index a0ef5143e9..796c531bcf 100644 --- a/cpp/autosar/src/rules/M8-3-1/VirtualFunctionParametersUseTheSameDefaultArguments.ql +++ b/cpp/autosar/src/rules/M8-3-1/VirtualFunctionParametersUseTheSameDefaultArguments.ql @@ -12,6 +12,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/style */ import cpp diff --git a/cpp/autosar/src/rules/M9-3-1/ConstMemberFunctionReturnsNonConstPointer.ql b/cpp/autosar/src/rules/M9-3-1/ConstMemberFunctionReturnsNonConstPointer.ql index 559b41527c..4aeec84709 100644 --- a/cpp/autosar/src/rules/M9-3-1/ConstMemberFunctionReturnsNonConstPointer.ql +++ b/cpp/autosar/src/rules/M9-3-1/ConstMemberFunctionReturnsNonConstPointer.ql @@ -14,6 +14,7 @@ * external/autosar/allocated-target/implementation * external/autosar/enforcement/automated * external/autosar/obligation/required + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/baseline_suites/codeql-pack.lock.yml b/cpp/baseline_suites/codeql-pack.lock.yml new file mode 100644 index 0000000000..a45ea8f438 --- /dev/null +++ b/cpp/baseline_suites/codeql-pack.lock.yml @@ -0,0 +1,24 @@ +--- +lockVersion: 1.0.0 +dependencies: + codeql/cpp-all: + version: 4.0.3 + codeql/dataflow: + version: 2.0.3 + codeql/mad: + version: 1.0.19 + codeql/rangeanalysis: + version: 1.0.19 + codeql/ssa: + version: 1.0.19 + codeql/tutorial: + version: 1.0.19 + codeql/typeflow: + version: 1.0.19 + codeql/typetracking: + version: 2.0.3 + codeql/util: + version: 2.0.6 + codeql/xml: + version: 1.0.19 +compiled: false diff --git a/cpp/baseline_suites/codeql-suites/cpp-baseline-default.qls b/cpp/baseline_suites/codeql-suites/cpp-baseline-default.qls new file mode 100644 index 0000000000..ff81bf65e6 --- /dev/null +++ b/cpp/baseline_suites/codeql-suites/cpp-baseline-default.qls @@ -0,0 +1,17 @@ +- description: C++ Baseline Coding Standards Queries +- qlpack: codeql/cert-cpp-coding-standards +- include: + kind: + - problem + - path-problem + tags contain: + - coding-standards/baseline/safety + - coding-standards/baseline/style +- qlpack: codeql/autosar-cpp-coding-standards +- include: + kind: + - problem + - path-problem + tags contain: + - coding-standards/baseline/safety + - coding-standards/baseline/style \ No newline at end of file diff --git a/cpp/baseline_suites/codeql-suites/cpp-baseline-safety.qls b/cpp/baseline_suites/codeql-suites/cpp-baseline-safety.qls new file mode 100644 index 0000000000..b88b28338e --- /dev/null +++ b/cpp/baseline_suites/codeql-suites/cpp-baseline-safety.qls @@ -0,0 +1,15 @@ +- description: C++ Baseline Safety Coding Standards Queries +- qlpack: codeql/cert-cpp-coding-standards +- include: + kind: + - problem + - path-problem + tags contain: + - coding-standards/baseline/safety +- qlpack: codeql/autosar-cpp-coding-standards +- include: + kind: + - problem + - path-problem + tags contain: + - coding-standards/baseline/safety \ No newline at end of file diff --git a/cpp/baseline_suites/codeql-suites/cpp-baseline-style.qls b/cpp/baseline_suites/codeql-suites/cpp-baseline-style.qls new file mode 100644 index 0000000000..2218acb775 --- /dev/null +++ b/cpp/baseline_suites/codeql-suites/cpp-baseline-style.qls @@ -0,0 +1,15 @@ +- description: C++ Baseline Style Coding Standards Queries +- qlpack: codeql/cert-cpp-coding-standards +- include: + kind: + - problem + - path-problem + tags contain: + - coding-standards/baseline/style +- qlpack: codeql/autosar-cpp-coding-standards +- include: + kind: + - problem + - path-problem + tags contain: + - coding-standards/baseline/style \ No newline at end of file diff --git a/cpp/baseline_suites/qlpack.yml b/cpp/baseline_suites/qlpack.yml new file mode 100644 index 0000000000..daa3884176 --- /dev/null +++ b/cpp/baseline_suites/qlpack.yml @@ -0,0 +1,10 @@ +name: advanced-security/coding-standards-cpp-baseline +version: 0.0.1 +description: A set of baseline coding standards for C++ projects, combining hand picked rules from AUTOSAR and CERT C++. +suites: codeql-suites +license: MIT +default-suite-file: codeql-suites/cpp-baseline-default.qls +dependencies: + codeql/misra-cpp-coding-standards: 2.51.0 + codeql/cert-cpp-coding-standards: 2.51.0 + codeql/autosar-cpp-coding-standards: 2.51.0 diff --git a/cpp/cert/src/rules/CON50-CPP/DoNotAllowAMutexToGoOutOfScopeWhileLocked.ql b/cpp/cert/src/rules/CON50-CPP/DoNotAllowAMutexToGoOutOfScopeWhileLocked.ql index 53f362e275..e965612675 100644 --- a/cpp/cert/src/rules/CON50-CPP/DoNotAllowAMutexToGoOutOfScopeWhileLocked.ql +++ b/cpp/cert/src/rules/CON50-CPP/DoNotAllowAMutexToGoOutOfScopeWhileLocked.ql @@ -15,6 +15,7 @@ * external/cert/priority/p4 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/CON50-CPP/DoNotDestroyAMutexWhileItIsLocked.ql b/cpp/cert/src/rules/CON50-CPP/DoNotDestroyAMutexWhileItIsLocked.ql index c15dfca5fc..86e6bdec43 100644 --- a/cpp/cert/src/rules/CON50-CPP/DoNotDestroyAMutexWhileItIsLocked.ql +++ b/cpp/cert/src/rules/CON50-CPP/DoNotDestroyAMutexWhileItIsLocked.ql @@ -14,6 +14,7 @@ * external/cert/priority/p4 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/CON51-CPP/EnsureActivelyHeldLocksAreReleasedOnExceptionalConditions.ql b/cpp/cert/src/rules/CON51-CPP/EnsureActivelyHeldLocksAreReleasedOnExceptionalConditions.ql index 13977e2c1d..63a862e090 100644 --- a/cpp/cert/src/rules/CON51-CPP/EnsureActivelyHeldLocksAreReleasedOnExceptionalConditions.ql +++ b/cpp/cert/src/rules/CON51-CPP/EnsureActivelyHeldLocksAreReleasedOnExceptionalConditions.ql @@ -16,6 +16,7 @@ * external/cert/priority/p6 * external/cert/level/l2 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/CON52-CPP/PreventBitFieldAccessFromMultipleThreads.ql b/cpp/cert/src/rules/CON52-CPP/PreventBitFieldAccessFromMultipleThreads.ql index 9ca1a89525..d94f65bce9 100644 --- a/cpp/cert/src/rules/CON52-CPP/PreventBitFieldAccessFromMultipleThreads.ql +++ b/cpp/cert/src/rules/CON52-CPP/PreventBitFieldAccessFromMultipleThreads.ql @@ -15,6 +15,7 @@ * external/cert/priority/p8 * external/cert/level/l2 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/CON53-CPP/DeadlockByLockingInPredefinedOrder.ql b/cpp/cert/src/rules/CON53-CPP/DeadlockByLockingInPredefinedOrder.ql index d83b3d520b..bb89d0c68f 100644 --- a/cpp/cert/src/rules/CON53-CPP/DeadlockByLockingInPredefinedOrder.ql +++ b/cpp/cert/src/rules/CON53-CPP/DeadlockByLockingInPredefinedOrder.ql @@ -15,6 +15,7 @@ * external/cert/priority/p4 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/CON54-CPP/WrapFunctionsThatCanSpuriouslyWakeUpInLoop.ql b/cpp/cert/src/rules/CON54-CPP/WrapFunctionsThatCanSpuriouslyWakeUpInLoop.ql index 84255dbfc7..a4fa80f525 100644 --- a/cpp/cert/src/rules/CON54-CPP/WrapFunctionsThatCanSpuriouslyWakeUpInLoop.ql +++ b/cpp/cert/src/rules/CON54-CPP/WrapFunctionsThatCanSpuriouslyWakeUpInLoop.ql @@ -15,6 +15,7 @@ * external/cert/priority/p2 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/CON55-CPP/PreserveSafetyWhenUsingConditionVariables.ql b/cpp/cert/src/rules/CON55-CPP/PreserveSafetyWhenUsingConditionVariables.ql index d4f43c7d09..bdb3b997ce 100644 --- a/cpp/cert/src/rules/CON55-CPP/PreserveSafetyWhenUsingConditionVariables.ql +++ b/cpp/cert/src/rules/CON55-CPP/PreserveSafetyWhenUsingConditionVariables.ql @@ -15,6 +15,7 @@ * external/cert/priority/p2 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/CTR51-CPP/UsesValidContainerElementAccess.ql b/cpp/cert/src/rules/CTR51-CPP/UsesValidContainerElementAccess.ql index 0652f065cb..4e8afd6e7d 100644 --- a/cpp/cert/src/rules/CTR51-CPP/UsesValidContainerElementAccess.ql +++ b/cpp/cert/src/rules/CTR51-CPP/UsesValidContainerElementAccess.ql @@ -14,6 +14,7 @@ * external/cert/priority/p6 * external/cert/level/l2 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/CTR52-CPP/GuaranteeGenericCppLibraryFunctionsDoNotOverflow.ql b/cpp/cert/src/rules/CTR52-CPP/GuaranteeGenericCppLibraryFunctionsDoNotOverflow.ql index b022869136..f119e89648 100644 --- a/cpp/cert/src/rules/CTR52-CPP/GuaranteeGenericCppLibraryFunctionsDoNotOverflow.ql +++ b/cpp/cert/src/rules/CTR52-CPP/GuaranteeGenericCppLibraryFunctionsDoNotOverflow.ql @@ -14,6 +14,7 @@ * external/cert/priority/p18 * external/cert/level/l1 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/CTR53-CPP/UseValidIteratorRanges.ql b/cpp/cert/src/rules/CTR53-CPP/UseValidIteratorRanges.ql index 1512a7fd99..cd6a9444b7 100644 --- a/cpp/cert/src/rules/CTR53-CPP/UseValidIteratorRanges.ql +++ b/cpp/cert/src/rules/CTR53-CPP/UseValidIteratorRanges.ql @@ -14,6 +14,7 @@ * external/cert/priority/p6 * external/cert/level/l2 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/CTR54-CPP/DoNotSubtractIteratorsForDifferentContainers.ql b/cpp/cert/src/rules/CTR54-CPP/DoNotSubtractIteratorsForDifferentContainers.ql index 2401bcbf54..2b156b1c6b 100644 --- a/cpp/cert/src/rules/CTR54-CPP/DoNotSubtractIteratorsForDifferentContainers.ql +++ b/cpp/cert/src/rules/CTR54-CPP/DoNotSubtractIteratorsForDifferentContainers.ql @@ -14,6 +14,7 @@ * external/cert/priority/p8 * external/cert/level/l2 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/CTR55-CPP/DoNotUseAnAdditiveOperatorOnAnIterator.ql b/cpp/cert/src/rules/CTR55-CPP/DoNotUseAnAdditiveOperatorOnAnIterator.ql index c6ea2c4518..74f235e883 100644 --- a/cpp/cert/src/rules/CTR55-CPP/DoNotUseAnAdditiveOperatorOnAnIterator.ql +++ b/cpp/cert/src/rules/CTR55-CPP/DoNotUseAnAdditiveOperatorOnAnIterator.ql @@ -14,6 +14,7 @@ * external/cert/priority/p18 * external/cert/level/l1 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/CTR56-CPP/DoNotUsePointerArithmeticOnPolymorphicObjects.ql b/cpp/cert/src/rules/CTR56-CPP/DoNotUsePointerArithmeticOnPolymorphicObjects.ql index b4ac267225..e8db5e6987 100644 --- a/cpp/cert/src/rules/CTR56-CPP/DoNotUsePointerArithmeticOnPolymorphicObjects.ql +++ b/cpp/cert/src/rules/CTR56-CPP/DoNotUsePointerArithmeticOnPolymorphicObjects.ql @@ -14,6 +14,7 @@ * external/cert/priority/p9 * external/cert/level/l2 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/DCL50-CPP/DoNotDefineACStyleVariadicFunction.ql b/cpp/cert/src/rules/DCL50-CPP/DoNotDefineACStyleVariadicFunction.ql index b24988823c..b1e5e4d020 100644 --- a/cpp/cert/src/rules/DCL50-CPP/DoNotDefineACStyleVariadicFunction.ql +++ b/cpp/cert/src/rules/DCL50-CPP/DoNotDefineACStyleVariadicFunction.ql @@ -15,6 +15,7 @@ * external/cert/priority/p12 * external/cert/level/l1 * external/cert/obligation/rule + * coding-standards/baseline/style */ import cpp diff --git a/cpp/cert/src/rules/DCL53-CPP/LocalConstructorInitializedObjectHidesIdentifier.ql b/cpp/cert/src/rules/DCL53-CPP/LocalConstructorInitializedObjectHidesIdentifier.ql index f576144c46..730a8f9f75 100644 --- a/cpp/cert/src/rules/DCL53-CPP/LocalConstructorInitializedObjectHidesIdentifier.ql +++ b/cpp/cert/src/rules/DCL53-CPP/LocalConstructorInitializedObjectHidesIdentifier.ql @@ -15,6 +15,8 @@ * external/cert/priority/p2 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety + * coding-standards/baseline/style */ import cpp diff --git a/cpp/cert/src/rules/DCL53-CPP/LocalFunctionDeclaration.ql b/cpp/cert/src/rules/DCL53-CPP/LocalFunctionDeclaration.ql index 45aa70dc31..c575644bb9 100644 --- a/cpp/cert/src/rules/DCL53-CPP/LocalFunctionDeclaration.ql +++ b/cpp/cert/src/rules/DCL53-CPP/LocalFunctionDeclaration.ql @@ -14,6 +14,7 @@ * external/cert/priority/p2 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/style */ import cpp diff --git a/cpp/cert/src/rules/DCL54-CPP/SingularOverloadOfMemoryFunction.ql b/cpp/cert/src/rules/DCL54-CPP/SingularOverloadOfMemoryFunction.ql index 8f168e90c8..dcb0bd844b 100644 --- a/cpp/cert/src/rules/DCL54-CPP/SingularOverloadOfMemoryFunction.ql +++ b/cpp/cert/src/rules/DCL54-CPP/SingularOverloadOfMemoryFunction.ql @@ -15,6 +15,7 @@ * external/cert/priority/p6 * external/cert/level/l2 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/DCL56-CPP/CyclesDuringStaticObjectInit.ql b/cpp/cert/src/rules/DCL56-CPP/CyclesDuringStaticObjectInit.ql index 4eb94f3d1d..f55a8aa400 100644 --- a/cpp/cert/src/rules/DCL56-CPP/CyclesDuringStaticObjectInit.ql +++ b/cpp/cert/src/rules/DCL56-CPP/CyclesDuringStaticObjectInit.ql @@ -14,6 +14,7 @@ * external/cert/priority/p2 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/DCL57-CPP/DoNotLetExceptionsEscapeFromDestructorsOrDeallocationFunctions.ql b/cpp/cert/src/rules/DCL57-CPP/DoNotLetExceptionsEscapeFromDestructorsOrDeallocationFunctions.ql index 6f625fd308..fbe7c343d2 100644 --- a/cpp/cert/src/rules/DCL57-CPP/DoNotLetExceptionsEscapeFromDestructorsOrDeallocationFunctions.ql +++ b/cpp/cert/src/rules/DCL57-CPP/DoNotLetExceptionsEscapeFromDestructorsOrDeallocationFunctions.ql @@ -14,6 +14,7 @@ * external/cert/priority/p6 * external/cert/level/l2 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/DCL58-CPP/ModificationOfTheStandardNamespaces.ql b/cpp/cert/src/rules/DCL58-CPP/ModificationOfTheStandardNamespaces.ql index 81242bc0f4..7d7a9e3852 100644 --- a/cpp/cert/src/rules/DCL58-CPP/ModificationOfTheStandardNamespaces.ql +++ b/cpp/cert/src/rules/DCL58-CPP/ModificationOfTheStandardNamespaces.ql @@ -15,6 +15,7 @@ * external/cert/priority/p6 * external/cert/level/l2 * external/cert/obligation/rule + * coding-standards/baseline/style */ import cpp diff --git a/cpp/cert/src/rules/DCL59-CPP/UnnamedNamespaceInHeaderFile.ql b/cpp/cert/src/rules/DCL59-CPP/UnnamedNamespaceInHeaderFile.ql index 2b8b364c7d..a84c93cb33 100644 --- a/cpp/cert/src/rules/DCL59-CPP/UnnamedNamespaceInHeaderFile.ql +++ b/cpp/cert/src/rules/DCL59-CPP/UnnamedNamespaceInHeaderFile.ql @@ -16,6 +16,7 @@ * external/cert/priority/p4 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/style */ import cpp diff --git a/cpp/cert/src/rules/ERR50-CPP/ExitHandlerThrowsExceptionCert.ql b/cpp/cert/src/rules/ERR50-CPP/ExitHandlerThrowsExceptionCert.ql index 548b7b4b94..c4e5ff63e5 100644 --- a/cpp/cert/src/rules/ERR50-CPP/ExitHandlerThrowsExceptionCert.ql +++ b/cpp/cert/src/rules/ERR50-CPP/ExitHandlerThrowsExceptionCert.ql @@ -14,6 +14,7 @@ * external/cert/priority/p4 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/ERR50-CPP/ExplicitAbruptTerminationCert.ql b/cpp/cert/src/rules/ERR50-CPP/ExplicitAbruptTerminationCert.ql index 4fe89c634d..1c723fd7a4 100644 --- a/cpp/cert/src/rules/ERR50-CPP/ExplicitAbruptTerminationCert.ql +++ b/cpp/cert/src/rules/ERR50-CPP/ExplicitAbruptTerminationCert.ql @@ -14,6 +14,7 @@ * external/cert/priority/p4 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/ERR50-CPP/RethrowNestedWithoutCaptureCert.ql b/cpp/cert/src/rules/ERR50-CPP/RethrowNestedWithoutCaptureCert.ql index 05d04de99e..ebef7de1cf 100644 --- a/cpp/cert/src/rules/ERR50-CPP/RethrowNestedWithoutCaptureCert.ql +++ b/cpp/cert/src/rules/ERR50-CPP/RethrowNestedWithoutCaptureCert.ql @@ -14,6 +14,7 @@ * external/cert/priority/p4 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/ERR51-CPP/HandleAllExceptions.ql b/cpp/cert/src/rules/ERR51-CPP/HandleAllExceptions.ql index f8447d4af5..b822cfdce3 100644 --- a/cpp/cert/src/rules/ERR51-CPP/HandleAllExceptions.ql +++ b/cpp/cert/src/rules/ERR51-CPP/HandleAllExceptions.ql @@ -14,6 +14,7 @@ * external/cert/priority/p4 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/ERR52-CPP/DoNotUseSetjmpOrLongjmp.ql b/cpp/cert/src/rules/ERR52-CPP/DoNotUseSetjmpOrLongjmp.ql index 6c9cb2e436..3e4430a17e 100644 --- a/cpp/cert/src/rules/ERR52-CPP/DoNotUseSetjmpOrLongjmp.ql +++ b/cpp/cert/src/rules/ERR52-CPP/DoNotUseSetjmpOrLongjmp.ql @@ -14,6 +14,8 @@ * external/cert/priority/p4 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety + * coding-standards/baseline/style */ import cpp diff --git a/cpp/cert/src/rules/ERR53-CPP/DestroyedValueReferencedInConstructorDestructorCatchBlock.ql b/cpp/cert/src/rules/ERR53-CPP/DestroyedValueReferencedInConstructorDestructorCatchBlock.ql index 8587a73c33..b80f9b17ff 100644 --- a/cpp/cert/src/rules/ERR53-CPP/DestroyedValueReferencedInConstructorDestructorCatchBlock.ql +++ b/cpp/cert/src/rules/ERR53-CPP/DestroyedValueReferencedInConstructorDestructorCatchBlock.ql @@ -15,6 +15,7 @@ * external/cert/priority/p2 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/ERR54-CPP/CatchBlockShadowingCert.ql b/cpp/cert/src/rules/ERR54-CPP/CatchBlockShadowingCert.ql index c3e0aeb2f5..143c3b9a64 100644 --- a/cpp/cert/src/rules/ERR54-CPP/CatchBlockShadowingCert.ql +++ b/cpp/cert/src/rules/ERR54-CPP/CatchBlockShadowingCert.ql @@ -14,6 +14,7 @@ * external/cert/priority/p18 * external/cert/level/l1 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/ERR56-CPP/GuaranteeExceptionSafety.ql b/cpp/cert/src/rules/ERR56-CPP/GuaranteeExceptionSafety.ql index 5831a7f404..13208d694d 100644 --- a/cpp/cert/src/rules/ERR56-CPP/GuaranteeExceptionSafety.ql +++ b/cpp/cert/src/rules/ERR56-CPP/GuaranteeExceptionSafety.ql @@ -13,6 +13,7 @@ * external/cert/priority/p9 * external/cert/level/l2 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/ERR57-CPP/DoNotLeakResourcesWhenHandlingExceptions.ql b/cpp/cert/src/rules/ERR57-CPP/DoNotLeakResourcesWhenHandlingExceptions.ql index 6180bf2f83..6cd55e3a81 100644 --- a/cpp/cert/src/rules/ERR57-CPP/DoNotLeakResourcesWhenHandlingExceptions.ql +++ b/cpp/cert/src/rules/ERR57-CPP/DoNotLeakResourcesWhenHandlingExceptions.ql @@ -14,6 +14,7 @@ * external/cert/priority/p2 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/ERR60-CPP/ExceptionObjectsMustBeNothrowCopyConstructible.ql b/cpp/cert/src/rules/ERR60-CPP/ExceptionObjectsMustBeNothrowCopyConstructible.ql index 61a145c7a1..3ab5918dc6 100644 --- a/cpp/cert/src/rules/ERR60-CPP/ExceptionObjectsMustBeNothrowCopyConstructible.ql +++ b/cpp/cert/src/rules/ERR60-CPP/ExceptionObjectsMustBeNothrowCopyConstructible.ql @@ -14,6 +14,7 @@ * external/cert/priority/p4 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/ERR61-CPP/CatchExceptionsByLvalueReference.ql b/cpp/cert/src/rules/ERR61-CPP/CatchExceptionsByLvalueReference.ql index 8cc9c47854..dcff5dc25c 100644 --- a/cpp/cert/src/rules/ERR61-CPP/CatchExceptionsByLvalueReference.ql +++ b/cpp/cert/src/rules/ERR61-CPP/CatchExceptionsByLvalueReference.ql @@ -14,6 +14,8 @@ * external/cert/priority/p3 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety + * coding-standards/baseline/style */ import cpp diff --git a/cpp/cert/src/rules/ERR62-CPP/DetectErrorsWhenConvertingAStringToANumber.ql b/cpp/cert/src/rules/ERR62-CPP/DetectErrorsWhenConvertingAStringToANumber.ql index e5451a0fc4..fdd2e9848f 100644 --- a/cpp/cert/src/rules/ERR62-CPP/DetectErrorsWhenConvertingAStringToANumber.ql +++ b/cpp/cert/src/rules/ERR62-CPP/DetectErrorsWhenConvertingAStringToANumber.ql @@ -14,6 +14,7 @@ * external/cert/priority/p4 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/EXP51-CPP/DoNotDeleteAnArrayThroughAPointerOfTheIncorrectType.ql b/cpp/cert/src/rules/EXP51-CPP/DoNotDeleteAnArrayThroughAPointerOfTheIncorrectType.ql index d0935cc798..417a384cef 100644 --- a/cpp/cert/src/rules/EXP51-CPP/DoNotDeleteAnArrayThroughAPointerOfTheIncorrectType.ql +++ b/cpp/cert/src/rules/EXP51-CPP/DoNotDeleteAnArrayThroughAPointerOfTheIncorrectType.ql @@ -14,6 +14,7 @@ * external/cert/priority/p2 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/EXP53-CPP/DoNotReadUninitializedMemory.ql b/cpp/cert/src/rules/EXP53-CPP/DoNotReadUninitializedMemory.ql index 9839fae0fd..7dfd2b6e74 100644 --- a/cpp/cert/src/rules/EXP53-CPP/DoNotReadUninitializedMemory.ql +++ b/cpp/cert/src/rules/EXP53-CPP/DoNotReadUninitializedMemory.ql @@ -14,6 +14,7 @@ * external/cert/priority/p12 * external/cert/level/l1 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/EXP54-CPP/ObjectAccessedAfterLifetimeCert.ql b/cpp/cert/src/rules/EXP54-CPP/ObjectAccessedAfterLifetimeCert.ql index 534bb83796..9c71c89ad4 100644 --- a/cpp/cert/src/rules/EXP54-CPP/ObjectAccessedAfterLifetimeCert.ql +++ b/cpp/cert/src/rules/EXP54-CPP/ObjectAccessedAfterLifetimeCert.ql @@ -14,6 +14,7 @@ * external/cert/priority/p6 * external/cert/level/l2 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/EXP54-CPP/ObjectAccessedBeforeLifetimeCert.ql b/cpp/cert/src/rules/EXP54-CPP/ObjectAccessedBeforeLifetimeCert.ql index ea2349194b..ebea7372bb 100644 --- a/cpp/cert/src/rules/EXP54-CPP/ObjectAccessedBeforeLifetimeCert.ql +++ b/cpp/cert/src/rules/EXP54-CPP/ObjectAccessedBeforeLifetimeCert.ql @@ -14,6 +14,7 @@ * external/cert/priority/p6 * external/cert/level/l2 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/EXP57-CPP/DeletingPointerToIncompleteClass.ql b/cpp/cert/src/rules/EXP57-CPP/DeletingPointerToIncompleteClass.ql index 935218f78e..9c89c42fd2 100644 --- a/cpp/cert/src/rules/EXP57-CPP/DeletingPointerToIncompleteClass.ql +++ b/cpp/cert/src/rules/EXP57-CPP/DeletingPointerToIncompleteClass.ql @@ -13,6 +13,7 @@ * external/cert/priority/p4 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/EXP58-CPP/PassNonTrivialObjectToVaStart.ql b/cpp/cert/src/rules/EXP58-CPP/PassNonTrivialObjectToVaStart.ql index b537fa34c5..d5ffa6c634 100644 --- a/cpp/cert/src/rules/EXP58-CPP/PassNonTrivialObjectToVaStart.ql +++ b/cpp/cert/src/rules/EXP58-CPP/PassNonTrivialObjectToVaStart.ql @@ -15,6 +15,7 @@ * external/cert/priority/p4 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/EXP58-CPP/PassPromotablePrimitiveTypeToVaStart.ql b/cpp/cert/src/rules/EXP58-CPP/PassPromotablePrimitiveTypeToVaStart.ql index 1d34680261..1f2662c8ca 100644 --- a/cpp/cert/src/rules/EXP58-CPP/PassPromotablePrimitiveTypeToVaStart.ql +++ b/cpp/cert/src/rules/EXP58-CPP/PassPromotablePrimitiveTypeToVaStart.ql @@ -15,6 +15,7 @@ * external/cert/priority/p4 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/EXP58-CPP/PassReferenceTypeToVaStart.ql b/cpp/cert/src/rules/EXP58-CPP/PassReferenceTypeToVaStart.ql index ce340d63c8..c510ce0749 100644 --- a/cpp/cert/src/rules/EXP58-CPP/PassReferenceTypeToVaStart.ql +++ b/cpp/cert/src/rules/EXP58-CPP/PassReferenceTypeToVaStart.ql @@ -15,6 +15,7 @@ * external/cert/priority/p4 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/EXP61-CPP/EscapingLambdaObjectWithCaptureByReference.ql b/cpp/cert/src/rules/EXP61-CPP/EscapingLambdaObjectWithCaptureByReference.ql index 1268d1c82b..b8e7b0de1e 100644 --- a/cpp/cert/src/rules/EXP61-CPP/EscapingLambdaObjectWithCaptureByReference.ql +++ b/cpp/cert/src/rules/EXP61-CPP/EscapingLambdaObjectWithCaptureByReference.ql @@ -16,6 +16,7 @@ * external/cert/priority/p6 * external/cert/level/l2 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/EXP61-CPP/ReturningLambdaObjectWithCaptureByReference.ql b/cpp/cert/src/rules/EXP61-CPP/ReturningLambdaObjectWithCaptureByReference.ql index eb76ba6187..2bf272a733 100644 --- a/cpp/cert/src/rules/EXP61-CPP/ReturningLambdaObjectWithCaptureByReference.ql +++ b/cpp/cert/src/rules/EXP61-CPP/ReturningLambdaObjectWithCaptureByReference.ql @@ -16,6 +16,7 @@ * external/cert/priority/p6 * external/cert/level/l2 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/EXP62-CPP/MemcmpUsedToAccessObjectRepresentation.ql b/cpp/cert/src/rules/EXP62-CPP/MemcmpUsedToAccessObjectRepresentation.ql index 64bfb4673b..695eb7fd17 100644 --- a/cpp/cert/src/rules/EXP62-CPP/MemcmpUsedToAccessObjectRepresentation.ql +++ b/cpp/cert/src/rules/EXP62-CPP/MemcmpUsedToAccessObjectRepresentation.ql @@ -14,6 +14,7 @@ * external/cert/priority/p6 * external/cert/level/l2 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/EXP62-CPP/MemcpyUsedToAccessObjectRepresentation.ql b/cpp/cert/src/rules/EXP62-CPP/MemcpyUsedToAccessObjectRepresentation.ql index 0e8847257c..307e0419c5 100644 --- a/cpp/cert/src/rules/EXP62-CPP/MemcpyUsedToAccessObjectRepresentation.ql +++ b/cpp/cert/src/rules/EXP62-CPP/MemcpyUsedToAccessObjectRepresentation.ql @@ -14,6 +14,7 @@ * external/cert/priority/p6 * external/cert/level/l2 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/EXP62-CPP/MemsetUsedToAccessObjectRepresentation.ql b/cpp/cert/src/rules/EXP62-CPP/MemsetUsedToAccessObjectRepresentation.ql index a4ae635289..20f25909a0 100644 --- a/cpp/cert/src/rules/EXP62-CPP/MemsetUsedToAccessObjectRepresentation.ql +++ b/cpp/cert/src/rules/EXP62-CPP/MemsetUsedToAccessObjectRepresentation.ql @@ -14,6 +14,7 @@ * external/cert/priority/p6 * external/cert/level/l2 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/EXP63-CPP/DoNotRelyOnTheValueOfAMovedFromObject.ql b/cpp/cert/src/rules/EXP63-CPP/DoNotRelyOnTheValueOfAMovedFromObject.ql index 48e534bfbb..7c878528af 100644 --- a/cpp/cert/src/rules/EXP63-CPP/DoNotRelyOnTheValueOfAMovedFromObject.ql +++ b/cpp/cert/src/rules/EXP63-CPP/DoNotRelyOnTheValueOfAMovedFromObject.ql @@ -13,6 +13,7 @@ * external/cert/priority/p8 * external/cert/level/l2 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/FIO50-CPP/InterleavedInputOutputWithoutPosition.ql b/cpp/cert/src/rules/FIO50-CPP/InterleavedInputOutputWithoutPosition.ql index 0333955f72..e645a5630f 100644 --- a/cpp/cert/src/rules/FIO50-CPP/InterleavedInputOutputWithoutPosition.ql +++ b/cpp/cert/src/rules/FIO50-CPP/InterleavedInputOutputWithoutPosition.ql @@ -14,6 +14,7 @@ * external/cert/priority/p6 * external/cert/level/l2 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/FIO51-CPP/CloseFilesWhenTheyAreNoLongerNeeded.ql b/cpp/cert/src/rules/FIO51-CPP/CloseFilesWhenTheyAreNoLongerNeeded.ql index a444692594..0634f376a3 100644 --- a/cpp/cert/src/rules/FIO51-CPP/CloseFilesWhenTheyAreNoLongerNeeded.ql +++ b/cpp/cert/src/rules/FIO51-CPP/CloseFilesWhenTheyAreNoLongerNeeded.ql @@ -14,6 +14,7 @@ * external/cert/priority/p4 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/MEM50-CPP/UseAfterFree.ql b/cpp/cert/src/rules/MEM50-CPP/UseAfterFree.ql index 8c31fc104c..1ff132e762 100644 --- a/cpp/cert/src/rules/MEM50-CPP/UseAfterFree.ql +++ b/cpp/cert/src/rules/MEM50-CPP/UseAfterFree.ql @@ -14,6 +14,7 @@ * external/cert/priority/p18 * external/cert/level/l1 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/MEM51-CPP/ProperlyDeallocateDynamicallyAllocatedResources.ql b/cpp/cert/src/rules/MEM51-CPP/ProperlyDeallocateDynamicallyAllocatedResources.ql index 70fd363c64..356e3d0ff9 100644 --- a/cpp/cert/src/rules/MEM51-CPP/ProperlyDeallocateDynamicallyAllocatedResources.ql +++ b/cpp/cert/src/rules/MEM51-CPP/ProperlyDeallocateDynamicallyAllocatedResources.ql @@ -15,6 +15,7 @@ * external/cert/priority/p18 * external/cert/level/l1 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/MEM52-CPP/DetectAndHandleMemoryAllocationErrors.ql b/cpp/cert/src/rules/MEM52-CPP/DetectAndHandleMemoryAllocationErrors.ql index 90685f1c96..d4c1c188d4 100644 --- a/cpp/cert/src/rules/MEM52-CPP/DetectAndHandleMemoryAllocationErrors.ql +++ b/cpp/cert/src/rules/MEM52-CPP/DetectAndHandleMemoryAllocationErrors.ql @@ -13,6 +13,7 @@ * external/cert/priority/p18 * external/cert/level/l1 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/MEM53-CPP/MissingDestructorCallForManuallyManagedObject.ql b/cpp/cert/src/rules/MEM53-CPP/MissingDestructorCallForManuallyManagedObject.ql index fe6fff2d4f..f0769fc602 100644 --- a/cpp/cert/src/rules/MEM53-CPP/MissingDestructorCallForManuallyManagedObject.ql +++ b/cpp/cert/src/rules/MEM53-CPP/MissingDestructorCallForManuallyManagedObject.ql @@ -13,6 +13,7 @@ * external/cert/priority/p18 * external/cert/level/l1 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/MEM54-CPP/PlacementNewInsufficientStorageCert.ql b/cpp/cert/src/rules/MEM54-CPP/PlacementNewInsufficientStorageCert.ql index fca9190552..706d39179d 100644 --- a/cpp/cert/src/rules/MEM54-CPP/PlacementNewInsufficientStorageCert.ql +++ b/cpp/cert/src/rules/MEM54-CPP/PlacementNewInsufficientStorageCert.ql @@ -16,6 +16,7 @@ * external/cert/priority/p18 * external/cert/level/l1 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/MEM54-CPP/PlacementNewNotProperlyAlignedCert.ql b/cpp/cert/src/rules/MEM54-CPP/PlacementNewNotProperlyAlignedCert.ql index d623e85a50..26ca448a7e 100644 --- a/cpp/cert/src/rules/MEM54-CPP/PlacementNewNotProperlyAlignedCert.ql +++ b/cpp/cert/src/rules/MEM54-CPP/PlacementNewNotProperlyAlignedCert.ql @@ -15,6 +15,7 @@ * external/cert/priority/p18 * external/cert/level/l1 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/MEM55-CPP/OperatorDeleteMissingPartnerCert.ql b/cpp/cert/src/rules/MEM55-CPP/OperatorDeleteMissingPartnerCert.ql index fd8f4f3a04..076c2bd60d 100644 --- a/cpp/cert/src/rules/MEM55-CPP/OperatorDeleteMissingPartnerCert.ql +++ b/cpp/cert/src/rules/MEM55-CPP/OperatorDeleteMissingPartnerCert.ql @@ -15,6 +15,7 @@ * external/cert/priority/p18 * external/cert/level/l1 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/MEM55-CPP/ThrowingNoThrowOperatorNewDeleteCert.ql b/cpp/cert/src/rules/MEM55-CPP/ThrowingNoThrowOperatorNewDeleteCert.ql index 2740498eef..ba8f100b4b 100644 --- a/cpp/cert/src/rules/MEM55-CPP/ThrowingNoThrowOperatorNewDeleteCert.ql +++ b/cpp/cert/src/rules/MEM55-CPP/ThrowingNoThrowOperatorNewDeleteCert.ql @@ -15,6 +15,7 @@ * external/cert/priority/p18 * external/cert/level/l1 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/MEM55-CPP/ThrowingOperatorNewReturnsNullCert.ql b/cpp/cert/src/rules/MEM55-CPP/ThrowingOperatorNewReturnsNullCert.ql index 072c69201f..7f09dc7c89 100644 --- a/cpp/cert/src/rules/MEM55-CPP/ThrowingOperatorNewReturnsNullCert.ql +++ b/cpp/cert/src/rules/MEM55-CPP/ThrowingOperatorNewReturnsNullCert.ql @@ -14,6 +14,7 @@ * external/cert/priority/p18 * external/cert/level/l1 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/MEM55-CPP/ThrowingOperatorNewThrowsInvalidExceptionCert.ql b/cpp/cert/src/rules/MEM55-CPP/ThrowingOperatorNewThrowsInvalidExceptionCert.ql index da4b63200b..401806277e 100644 --- a/cpp/cert/src/rules/MEM55-CPP/ThrowingOperatorNewThrowsInvalidExceptionCert.ql +++ b/cpp/cert/src/rules/MEM55-CPP/ThrowingOperatorNewThrowsInvalidExceptionCert.ql @@ -15,6 +15,7 @@ * external/cert/priority/p18 * external/cert/level/l1 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/MEM57-CPP/UsingDefaultOperatorNewForOverAlignedTypes.ql b/cpp/cert/src/rules/MEM57-CPP/UsingDefaultOperatorNewForOverAlignedTypes.ql index 6c3d18c27f..510f898421 100644 --- a/cpp/cert/src/rules/MEM57-CPP/UsingDefaultOperatorNewForOverAlignedTypes.ql +++ b/cpp/cert/src/rules/MEM57-CPP/UsingDefaultOperatorNewForOverAlignedTypes.ql @@ -15,6 +15,7 @@ * external/cert/priority/p6 * external/cert/level/l2 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/MSC50-CPP/DoNotUseRandForGeneratingPseudorandomNumbers.ql b/cpp/cert/src/rules/MSC50-CPP/DoNotUseRandForGeneratingPseudorandomNumbers.ql index b67cec99f3..eacf228120 100644 --- a/cpp/cert/src/rules/MSC50-CPP/DoNotUseRandForGeneratingPseudorandomNumbers.ql +++ b/cpp/cert/src/rules/MSC50-CPP/DoNotUseRandForGeneratingPseudorandomNumbers.ql @@ -14,6 +14,7 @@ * external/cert/priority/p6 * external/cert/level/l2 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/MSC51-CPP/BadlySeededRandomNumberGenerator.ql b/cpp/cert/src/rules/MSC51-CPP/BadlySeededRandomNumberGenerator.ql index 5322fbbde3..ae8562e59d 100644 --- a/cpp/cert/src/rules/MSC51-CPP/BadlySeededRandomNumberGenerator.ql +++ b/cpp/cert/src/rules/MSC51-CPP/BadlySeededRandomNumberGenerator.ql @@ -15,6 +15,7 @@ * external/cert/priority/p18 * external/cert/level/l1 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/MSC52-CPP/NonVoidFunctionDoesNotReturnCert.ql b/cpp/cert/src/rules/MSC52-CPP/NonVoidFunctionDoesNotReturnCert.ql index dcf42a78f4..ef850a17e2 100644 --- a/cpp/cert/src/rules/MSC52-CPP/NonVoidFunctionDoesNotReturnCert.ql +++ b/cpp/cert/src/rules/MSC52-CPP/NonVoidFunctionDoesNotReturnCert.ql @@ -15,6 +15,7 @@ * external/cert/priority/p8 * external/cert/level/l2 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/MSC53-CPP/FunctionNoReturnAttributeConditionCert.ql b/cpp/cert/src/rules/MSC53-CPP/FunctionNoReturnAttributeConditionCert.ql index 5044b3b421..c4ddcc459f 100644 --- a/cpp/cert/src/rules/MSC53-CPP/FunctionNoReturnAttributeConditionCert.ql +++ b/cpp/cert/src/rules/MSC53-CPP/FunctionNoReturnAttributeConditionCert.ql @@ -14,6 +14,7 @@ * external/cert/priority/p2 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/MSC54-CPP/SignalHandlerMustBeAPlainOldFunction.ql b/cpp/cert/src/rules/MSC54-CPP/SignalHandlerMustBeAPlainOldFunction.ql index 885d8caa0a..d5962ca610 100644 --- a/cpp/cert/src/rules/MSC54-CPP/SignalHandlerMustBeAPlainOldFunction.ql +++ b/cpp/cert/src/rules/MSC54-CPP/SignalHandlerMustBeAPlainOldFunction.ql @@ -13,6 +13,7 @@ * external/cert/priority/p6 * external/cert/level/l2 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/OOP50-CPP/DoNotInvokeVirtualFunctionsFromConstructorsOrDestructors.ql b/cpp/cert/src/rules/OOP50-CPP/DoNotInvokeVirtualFunctionsFromConstructorsOrDestructors.ql index 1c3df97cfa..cfa4b9c334 100644 --- a/cpp/cert/src/rules/OOP50-CPP/DoNotInvokeVirtualFunctionsFromConstructorsOrDestructors.ql +++ b/cpp/cert/src/rules/OOP50-CPP/DoNotInvokeVirtualFunctionsFromConstructorsOrDestructors.ql @@ -13,6 +13,7 @@ * external/cert/priority/p2 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/OOP51-CPP/DoNotSliceDerivedObjects.ql b/cpp/cert/src/rules/OOP51-CPP/DoNotSliceDerivedObjects.ql index 4cb654730b..ace00e5912 100644 --- a/cpp/cert/src/rules/OOP51-CPP/DoNotSliceDerivedObjects.ql +++ b/cpp/cert/src/rules/OOP51-CPP/DoNotSliceDerivedObjects.ql @@ -13,6 +13,7 @@ * external/cert/priority/p4 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/OOP52-CPP/DoNotDeleteAPolymorphicObjectWithoutAVirtualDestructor.ql b/cpp/cert/src/rules/OOP52-CPP/DoNotDeleteAPolymorphicObjectWithoutAVirtualDestructor.ql index 190c4d720d..92597beae5 100644 --- a/cpp/cert/src/rules/OOP52-CPP/DoNotDeleteAPolymorphicObjectWithoutAVirtualDestructor.ql +++ b/cpp/cert/src/rules/OOP52-CPP/DoNotDeleteAPolymorphicObjectWithoutAVirtualDestructor.ql @@ -13,6 +13,7 @@ * external/cert/priority/p9 * external/cert/level/l2 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/OOP53-CPP/UseCanonicalOrderForMemberInit.ql b/cpp/cert/src/rules/OOP53-CPP/UseCanonicalOrderForMemberInit.ql index b42b54ef6c..57eaac45ec 100644 --- a/cpp/cert/src/rules/OOP53-CPP/UseCanonicalOrderForMemberInit.ql +++ b/cpp/cert/src/rules/OOP53-CPP/UseCanonicalOrderForMemberInit.ql @@ -18,6 +18,7 @@ * external/cert/priority/p4 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/style */ import cpp diff --git a/cpp/cert/src/rules/OOP54-CPP/GracefullyHandleSelfCopyAssignment.ql b/cpp/cert/src/rules/OOP54-CPP/GracefullyHandleSelfCopyAssignment.ql index 844d0f54bb..051c397b0f 100644 --- a/cpp/cert/src/rules/OOP54-CPP/GracefullyHandleSelfCopyAssignment.ql +++ b/cpp/cert/src/rules/OOP54-CPP/GracefullyHandleSelfCopyAssignment.ql @@ -15,6 +15,7 @@ * external/cert/priority/p2 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/OOP55-CPP/MemberAccessWithUninitializedStaticPointerToMember.ql b/cpp/cert/src/rules/OOP55-CPP/MemberAccessWithUninitializedStaticPointerToMember.ql index 27c63c2c16..99c7276ba3 100644 --- a/cpp/cert/src/rules/OOP55-CPP/MemberAccessWithUninitializedStaticPointerToMember.ql +++ b/cpp/cert/src/rules/OOP55-CPP/MemberAccessWithUninitializedStaticPointerToMember.ql @@ -14,6 +14,7 @@ * external/cert/priority/p6 * external/cert/level/l2 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/OOP55-CPP/UseOfPointerToMemberToAccessNonexistentMember.ql b/cpp/cert/src/rules/OOP55-CPP/UseOfPointerToMemberToAccessNonexistentMember.ql index 72d640f29b..c9951e5fbc 100644 --- a/cpp/cert/src/rules/OOP55-CPP/UseOfPointerToMemberToAccessNonexistentMember.ql +++ b/cpp/cert/src/rules/OOP55-CPP/UseOfPointerToMemberToAccessNonexistentMember.ql @@ -15,6 +15,7 @@ * external/cert/priority/p6 * external/cert/level/l2 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/OOP55-CPP/UseOfPointerToMemberToAccessUndefinedMember.ql b/cpp/cert/src/rules/OOP55-CPP/UseOfPointerToMemberToAccessUndefinedMember.ql index 202123c11c..049dcf7c17 100644 --- a/cpp/cert/src/rules/OOP55-CPP/UseOfPointerToMemberToAccessUndefinedMember.ql +++ b/cpp/cert/src/rules/OOP55-CPP/UseOfPointerToMemberToAccessUndefinedMember.ql @@ -14,6 +14,7 @@ * external/cert/priority/p6 * external/cert/level/l2 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/OOP56-CPP/HonorNewReplacementHandlerRequirements.ql b/cpp/cert/src/rules/OOP56-CPP/HonorNewReplacementHandlerRequirements.ql index 981bd1ce5b..5f436baf53 100644 --- a/cpp/cert/src/rules/OOP56-CPP/HonorNewReplacementHandlerRequirements.ql +++ b/cpp/cert/src/rules/OOP56-CPP/HonorNewReplacementHandlerRequirements.ql @@ -13,6 +13,7 @@ * external/cert/priority/p2 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/OOP56-CPP/HonorTerminationReplacementHandlerRequirements.ql b/cpp/cert/src/rules/OOP56-CPP/HonorTerminationReplacementHandlerRequirements.ql index 4d59b36b52..c1f83a11a2 100644 --- a/cpp/cert/src/rules/OOP56-CPP/HonorTerminationReplacementHandlerRequirements.ql +++ b/cpp/cert/src/rules/OOP56-CPP/HonorTerminationReplacementHandlerRequirements.ql @@ -14,6 +14,7 @@ * external/cert/priority/p2 * external/cert/level/l3 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/OOP57-CPP/PreferSpecialMemberFunctionsAndOverloadedOperatorsToCStandardLibraryFunctions.ql b/cpp/cert/src/rules/OOP57-CPP/PreferSpecialMemberFunctionsAndOverloadedOperatorsToCStandardLibraryFunctions.ql index 9ac17e84a0..edaeef9b13 100644 --- a/cpp/cert/src/rules/OOP57-CPP/PreferSpecialMemberFunctionsAndOverloadedOperatorsToCStandardLibraryFunctions.ql +++ b/cpp/cert/src/rules/OOP57-CPP/PreferSpecialMemberFunctionsAndOverloadedOperatorsToCStandardLibraryFunctions.ql @@ -14,6 +14,7 @@ * external/cert/priority/p6 * external/cert/level/l2 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/OOP58-CPP/CopyOperationsMustNotMutateTheSourceObject.ql b/cpp/cert/src/rules/OOP58-CPP/CopyOperationsMustNotMutateTheSourceObject.ql index 9ad0593702..454ede1574 100644 --- a/cpp/cert/src/rules/OOP58-CPP/CopyOperationsMustNotMutateTheSourceObject.ql +++ b/cpp/cert/src/rules/OOP58-CPP/CopyOperationsMustNotMutateTheSourceObject.ql @@ -14,6 +14,7 @@ * external/cert/priority/p9 * external/cert/level/l2 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/STR50-CPP/BasicStringMayNotBeNullTerminatedCert.ql b/cpp/cert/src/rules/STR50-CPP/BasicStringMayNotBeNullTerminatedCert.ql index 2cd08be70a..41de6d7ae3 100644 --- a/cpp/cert/src/rules/STR50-CPP/BasicStringMayNotBeNullTerminatedCert.ql +++ b/cpp/cert/src/rules/STR50-CPP/BasicStringMayNotBeNullTerminatedCert.ql @@ -13,6 +13,7 @@ * external/cert/priority/p18 * external/cert/level/l1 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/STR50-CPP/OperationMayNotNullTerminateCStyleStringCert.ql b/cpp/cert/src/rules/STR50-CPP/OperationMayNotNullTerminateCStyleStringCert.ql index 59f56207cd..9c2b4e4c07 100644 --- a/cpp/cert/src/rules/STR50-CPP/OperationMayNotNullTerminateCStyleStringCert.ql +++ b/cpp/cert/src/rules/STR50-CPP/OperationMayNotNullTerminateCStyleStringCert.ql @@ -13,6 +13,7 @@ * external/cert/priority/p18 * external/cert/level/l1 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/STR51-CPP/DoNotAttemptToCreateAStringFromANullPointer.ql b/cpp/cert/src/rules/STR51-CPP/DoNotAttemptToCreateAStringFromANullPointer.ql index a6337e2fcf..9842987794 100644 --- a/cpp/cert/src/rules/STR51-CPP/DoNotAttemptToCreateAStringFromANullPointer.ql +++ b/cpp/cert/src/rules/STR51-CPP/DoNotAttemptToCreateAStringFromANullPointer.ql @@ -13,6 +13,7 @@ * external/cert/priority/p18 * external/cert/level/l1 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/STR52-CPP/UseValidReferencesForElementsOfString.ql b/cpp/cert/src/rules/STR52-CPP/UseValidReferencesForElementsOfString.ql index 21c29f54ef..6805fd9563 100644 --- a/cpp/cert/src/rules/STR52-CPP/UseValidReferencesForElementsOfString.ql +++ b/cpp/cert/src/rules/STR52-CPP/UseValidReferencesForElementsOfString.ql @@ -14,6 +14,7 @@ * external/cert/priority/p6 * external/cert/level/l2 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/cpp/cert/src/rules/STR53-CPP/RangeCheckStringElementAccess.ql b/cpp/cert/src/rules/STR53-CPP/RangeCheckStringElementAccess.ql index c92f2b2316..964adba12a 100644 --- a/cpp/cert/src/rules/STR53-CPP/RangeCheckStringElementAccess.ql +++ b/cpp/cert/src/rules/STR53-CPP/RangeCheckStringElementAccess.ql @@ -15,6 +15,7 @@ * external/cert/priority/p6 * external/cert/level/l2 * external/cert/obligation/rule + * coding-standards/baseline/safety */ import cpp diff --git a/rule_packages/c/Alignment.json b/rule_packages/c/Alignment.json index edf06a09ca..add1b9d362 100644 --- a/rule_packages/c/Alignment.json +++ b/rule_packages/c/Alignment.json @@ -15,7 +15,9 @@ "tags": [ "external/misra/c/2012/amendment3", "readability", - "maintainability" + "maintainability", + "coding-standards/baseline/safety", + "coding-standards/baseline/style" ] }, { @@ -28,7 +30,9 @@ "tags": [ "external/misra/c/2012/amendment3", "readability", - "maintainability" + "maintainability", + "coding-standards/baseline/safety", + "coding-standards/baseline/style" ] } ], @@ -49,7 +53,8 @@ "tags": [ "external/misra/c/2012/amendment3", "readability", - "maintainability" + "maintainability", + "coding-standards/baseline/style" ] } ], @@ -69,7 +74,8 @@ "short_name": "MoreThanOneAlignmentSpecifierOnDeclaration", "tags": [ "external/misra/c/2012/amendment3", - "readability" + "readability", + "coding-standards/baseline/style" ] } ], diff --git a/rule_packages/c/Banned.json b/rule_packages/c/Banned.json index 265a41de51..2088ce704a 100644 --- a/rule_packages/c/Banned.json +++ b/rule_packages/c/Banned.json @@ -41,7 +41,8 @@ "shared_implementation_short_name": "CommaOperatorUsed", "tags": [ "readability", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/style" ] } ], @@ -202,7 +203,8 @@ "short_name": "StandardHeaderFileUsedSetjmph", "tags": [ "correctness", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/safety" ] } ], @@ -264,7 +266,8 @@ "shared_implementation_short_name": "AtofAtoiAtolAndAtollUsed", "tags": [ "correctness", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/safety" ] } ], @@ -385,7 +388,9 @@ "tags": [ "correctness", "security", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/safety", + "coding-standards/baseline/style" ] } ], diff --git a/rule_packages/c/Banned2.json b/rule_packages/c/Banned2.json index 3898125d73..732aa5d39e 100644 --- a/rule_packages/c/Banned2.json +++ b/rule_packages/c/Banned2.json @@ -14,7 +14,8 @@ "short_name": "CallToBannedRandomFunction", "tags": [ "security", - "external/misra/c/2012/amendment3" + "external/misra/c/2012/amendment3", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/c/BitfieldTypes.json b/rule_packages/c/BitfieldTypes.json index 43ed42f174..d1148d5d04 100644 --- a/rule_packages/c/BitfieldTypes.json +++ b/rule_packages/c/BitfieldTypes.json @@ -34,7 +34,8 @@ "short_name": "SingleBitNamedBitFieldsOfASignedType", "shared_implementation_short_name": "NamedBitFieldsWithSignedIntegerType", "tags": [ - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/c/BitfieldTypes2.json b/rule_packages/c/BitfieldTypes2.json index 957e9bb729..553fdbb14f 100644 --- a/rule_packages/c/BitfieldTypes2.json +++ b/rule_packages/c/BitfieldTypes2.json @@ -14,7 +14,8 @@ "short_name": "BitFieldDeclaredAsMemberOfAUnion", "tags": [ "correctness", - "external/misra/c/2012/amendment3" + "external/misra/c/2012/amendment3", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/c/Concurrency1.json b/rule_packages/c/Concurrency1.json index 9daa2a83be..d9a314d147 100644 --- a/rule_packages/c/Concurrency1.json +++ b/rule_packages/c/Concurrency1.json @@ -20,7 +20,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/medium", "external/cert/priority/p8", - "external/cert/level/l2" + "external/cert/level/l2", + "coding-standards/baseline/safety" ] } ], @@ -45,7 +46,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/high", "external/cert/priority/p4", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/c/Concurrency2.json b/rule_packages/c/Concurrency2.json index d9e364d046..f2840ce502 100644 --- a/rule_packages/c/Concurrency2.json +++ b/rule_packages/c/Concurrency2.json @@ -46,7 +46,8 @@ "external/cert/likelihood/unlikely", "external/cert/remediation-cost/medium", "external/cert/priority/p2", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/c/Concurrency3.json b/rule_packages/c/Concurrency3.json index 6328f6b43c..c5eabd25b0 100644 --- a/rule_packages/c/Concurrency3.json +++ b/rule_packages/c/Concurrency3.json @@ -20,7 +20,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/high", "external/cert/priority/p4", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ], "implementation_scope": { "description": "This implementation does not allow for thread synchronization to be performed in subroutines. All synchronization must be performed within the context of the other thread management functions." @@ -41,7 +42,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/high", "external/cert/priority/p4", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ] } ], @@ -67,7 +69,8 @@ "external/cert/likelihood/unlikely", "external/cert/remediation-cost/medium", "external/cert/priority/p2", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ], "implementation_scope": { "description": "This implementation does not attempt to identify unique condition variables and instead advocates for the usage of `cnd_broadcast`." @@ -95,7 +98,8 @@ "external/cert/likelihood/unlikely", "external/cert/remediation-cost/medium", "external/cert/priority/p2", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ], "implementation_scope": { "description": "This implementation does not attempt to identify a relationship between the condition variable and the atomic operation." diff --git a/rule_packages/c/Concurrency4.json b/rule_packages/c/Concurrency4.json index b981ebaa8b..84718629c4 100644 --- a/rule_packages/c/Concurrency4.json +++ b/rule_packages/c/Concurrency4.json @@ -19,7 +19,8 @@ "external/cert/likelihood/unlikely", "external/cert/remediation-cost/medium", "external/cert/priority/p4", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ], "implementation_scope": { "description": "This query does not attempt to ensure that the deallocation function in fact deallocates memory and instead assumes the contract is valid. Additionally, this query requires that all `tss_create` calls are bookended by calls to `tss_delete`, even if a thread is not created." diff --git a/rule_packages/c/Concurrency5.json b/rule_packages/c/Concurrency5.json index d1a685dd34..cccc9c4146 100644 --- a/rule_packages/c/Concurrency5.json +++ b/rule_packages/c/Concurrency5.json @@ -20,7 +20,8 @@ "external/cert/likelihood/likely", "external/cert/remediation-cost/medium", "external/cert/priority/p6", - "external/cert/level/l2" + "external/cert/level/l2", + "coding-standards/baseline/safety" ], "implementation_scope": { "description": "This query considers problematic usages of join and detach irrespective of the execution of the program and other synchronization and interprocess communication mechanisms that may be used." @@ -48,7 +49,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/medium", "external/cert/priority/p8", - "external/cert/level/l2" + "external/cert/level/l2", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/c/Concurrency6.json b/rule_packages/c/Concurrency6.json index cfb793877e..be4662ff95 100644 --- a/rule_packages/c/Concurrency6.json +++ b/rule_packages/c/Concurrency6.json @@ -16,7 +16,8 @@ "tags": [ "external/misra/c/2012/amendment4", "correctness", - "concurrency" + "concurrency", + "coding-standards/baseline/safety" ] } ], @@ -76,7 +77,8 @@ "tags": [ "external/misra/c/2012/amendment4", "correctness", - "concurrency" + "concurrency", + "coding-standards/baseline/safety" ] } ], @@ -119,7 +121,8 @@ "tags": [ "external/misra/c/2012/amendment4", "correctness", - "concurrency" + "concurrency", + "coding-standards/baseline/safety" ], "implementation_scope": { "description": "This query considers problematic usages of join and detach irrespective of the execution of the program and other synchronization and interprocess communication mechanisms that may be used." diff --git a/rule_packages/c/Concurrency7.json b/rule_packages/c/Concurrency7.json index bda8881934..db6937e04e 100644 --- a/rule_packages/c/Concurrency7.json +++ b/rule_packages/c/Concurrency7.json @@ -14,7 +14,8 @@ "short_name": "UninitializedAtomicObject", "tags": [ "concurrency", - "external/misra/c/2012/amendment4" + "external/misra/c/2012/amendment4", + "coding-standards/baseline/safety" ], "implementation_scope": { "description": "This query tracks which functions may start threads, either indirectly or directly (\"thread spawning functions\"), and checks for local atomic variables that are not passed by address into `atomic_init` or other function calls, before such a thread spawning function is called.", @@ -39,7 +40,8 @@ "tags": [ "correctness", "concurrency", - "external/misra/c/2012/amendment4" + "external/misra/c/2012/amendment4", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/c/Concurrency8.json b/rule_packages/c/Concurrency8.json index 2dc5d48042..64a0d0f39d 100644 --- a/rule_packages/c/Concurrency8.json +++ b/rule_packages/c/Concurrency8.json @@ -15,7 +15,8 @@ "tags": [ "correctness", "concurrency", - "external/misra/c/2012/amendment4" + "external/misra/c/2012/amendment4", + "coding-standards/baseline/safety" ] } ], @@ -36,7 +37,8 @@ "tags": [ "correctness", "concurrency", - "external/misra/c/2012/amendment4" + "external/misra/c/2012/amendment4", + "coding-standards/baseline/safety" ] } ], @@ -57,7 +59,8 @@ "tags": [ "correctness", "concurrency", - "external/misra/c/2012/amendment4" + "external/misra/c/2012/amendment4", + "coding-standards/baseline/safety" ] }, { @@ -71,7 +74,8 @@ "readability", "maintainability", "concurrency", - "external/misra/c/2012/amendment4" + "external/misra/c/2012/amendment4", + "coding-standards/baseline/safety" ] }, { @@ -84,7 +88,8 @@ "tags": [ "correctness", "concurrency", - "external/misra/c/2012/amendment4" + "external/misra/c/2012/amendment4", + "coding-standards/baseline/safety" ] } ], @@ -105,7 +110,8 @@ "tags": [ "correctness", "concurrency", - "external/misra/c/2012/amendment4" + "external/misra/c/2012/amendment4", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/c/Concurrency9.json b/rule_packages/c/Concurrency9.json index 6ae1df8173..3967acb85c 100644 --- a/rule_packages/c/Concurrency9.json +++ b/rule_packages/c/Concurrency9.json @@ -36,7 +36,8 @@ "tags": [ "correctness", "concurrency", - "external/misra/c/2012/amendment4" + "external/misra/c/2012/amendment4", + "coding-standards/baseline/safety" ] } ], @@ -57,7 +58,8 @@ "tags": [ "correctness", "concurrency", - "external/misra/c/2012/amendment4" + "external/misra/c/2012/amendment4", + "coding-standards/baseline/safety" ] } ], @@ -78,7 +80,8 @@ "tags": [ "correctness", "concurrency", - "external/misra/c/2012/amendment4" + "external/misra/c/2012/amendment4", + "coding-standards/baseline/safety" ] }, { @@ -92,7 +95,8 @@ "correctness", "concurrency", "external/misra/c/2012/amendment4", - "external/misra/audit" + "external/misra/audit", + "coding-standards/baseline/safety" ] } ], @@ -113,7 +117,8 @@ "tags": [ "correctness", "concurrency", - "external/misra/c/2012/amendment4" + "external/misra/c/2012/amendment4", + "coding-standards/baseline/safety" ] } ], @@ -134,7 +139,8 @@ "tags": [ "correctness", "concurrency", - "external/misra/c/2012/amendment4" + "external/misra/c/2012/amendment4", + "coding-standards/baseline/safety" ] }, { @@ -148,7 +154,8 @@ "readability", "maintainability", "concurrency", - "external/misra/c/2012/amendment4" + "external/misra/c/2012/amendment4", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/c/Contracts.json b/rule_packages/c/Contracts.json index 0d2e0a97bd..b24f8af162 100644 --- a/rule_packages/c/Contracts.json +++ b/rule_packages/c/Contracts.json @@ -18,7 +18,8 @@ "external/cert/likelihood/unlikely", "external/cert/remediation-cost/medium", "external/cert/priority/p2", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ], "implementation_scope": { "description": "This query only considers the constraints related to inline extern functions." diff --git a/rule_packages/c/Contracts1.json b/rule_packages/c/Contracts1.json index 65ffdc5e71..89394618d4 100644 --- a/rule_packages/c/Contracts1.json +++ b/rule_packages/c/Contracts1.json @@ -19,7 +19,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/medium", "external/cert/priority/p4", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ] } ], @@ -43,7 +44,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/medium", "external/cert/priority/p4", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ], "implementation_scope": { "description": "The rule is enforced in the context of a single function." diff --git a/rule_packages/c/Contracts2.json b/rule_packages/c/Contracts2.json index 6c1bf77de2..8de505570b 100644 --- a/rule_packages/c/Contracts2.json +++ b/rule_packages/c/Contracts2.json @@ -18,7 +18,8 @@ "external/cert/likelihood/likely", "external/cert/remediation-cost/medium", "external/cert/priority/p12", - "external/cert/level/l1" + "external/cert/level/l1", + "coding-standards/baseline/safety" ] } ], @@ -43,7 +44,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/medium", "external/cert/priority/p4", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ] }, { @@ -60,7 +62,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/medium", "external/cert/priority/p4", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ] } ], @@ -83,7 +86,8 @@ "shared_implementation_short_name": "ConstLikeReturnValue", "tags": [ "correctness", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/safety" ] } ], @@ -104,7 +108,8 @@ "shared_implementation_short_name": "InvalidatedEnvStringPointers", "tags": [ "correctness", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/safety" ] }, { @@ -117,7 +122,8 @@ "shared_implementation_short_name": "InvalidatedEnvStringPointersWarn", "tags": [ "correctness", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/c/Contracts3.json b/rule_packages/c/Contracts3.json index 0122b858b5..19f882048c 100644 --- a/rule_packages/c/Contracts3.json +++ b/rule_packages/c/Contracts3.json @@ -14,7 +14,8 @@ "short_name": "OnlyTestErrnoRightAfterErrnoSettingFunction", "tags": [ "correctness", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/safety" ] } ], @@ -34,7 +35,8 @@ "short_name": "ErrnoSetToZeroPriorToCall", "tags": [ "correctness", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/safety" ] } ], @@ -54,7 +56,8 @@ "short_name": "ErrnoSetToZeroAfterCall", "tags": [ "correctness", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/c/Contracts4.json b/rule_packages/c/Contracts4.json index a62e9d1762..6554ab8169 100644 --- a/rule_packages/c/Contracts4.json +++ b/rule_packages/c/Contracts4.json @@ -18,7 +18,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/medium", "external/cert/priority/p8", - "external/cert/level/l2" + "external/cert/level/l2", + "coding-standards/baseline/safety" ] }, { @@ -34,7 +35,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/medium", "external/cert/priority/p8", - "external/cert/level/l2" + "external/cert/level/l2", + "coding-standards/baseline/safety" ] }, { @@ -50,7 +52,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/medium", "external/cert/priority/p8", - "external/cert/level/l2" + "external/cert/level/l2", + "coding-standards/baseline/safety" ] }, { @@ -66,7 +69,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/medium", "external/cert/priority/p8", - "external/cert/level/l2" + "external/cert/level/l2", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/c/Contracts5.json b/rule_packages/c/Contracts5.json index d4b38b5756..fc18dab892 100644 --- a/rule_packages/c/Contracts5.json +++ b/rule_packages/c/Contracts5.json @@ -18,7 +18,8 @@ "external/cert/likelihood/unlikely", "external/cert/remediation-cost/low", "external/cert/priority/p3", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ], "implementation_scope": { "description": "The rule is enforced in the context of a single function." diff --git a/rule_packages/c/Contracts6.json b/rule_packages/c/Contracts6.json index d89617d6dc..405cf0c94b 100644 --- a/rule_packages/c/Contracts6.json +++ b/rule_packages/c/Contracts6.json @@ -18,7 +18,8 @@ "external/cert/likelihood/unlikely", "external/cert/remediation-cost/medium", "external/cert/priority/p2", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ], "implementation_scope": { "description": "The implementation does not consider pointer aliasing via multiple indirection." @@ -43,7 +44,8 @@ "short_name": "ArrayFunctionArgumentNumberOfElements", "tags": [ "correctness", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/c/Contracts7.json b/rule_packages/c/Contracts7.json index 95df01ca32..5d97b9d2e3 100644 --- a/rule_packages/c/Contracts7.json +++ b/rule_packages/c/Contracts7.json @@ -19,7 +19,8 @@ "external/cert/likelihood/likely", "external/cert/remediation-cost/low", "external/cert/priority/p27", - "external/cert/level/l1" + "external/cert/level/l1", + "coding-standards/baseline/safety" ] } ], @@ -43,7 +44,8 @@ "external/cert/likelihood/unlikely", "external/cert/remediation-cost/low", "external/cert/priority/p3", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ] } ], @@ -85,7 +87,8 @@ "short_name": "ObjectAssignedToAnOverlappingObject", "tags": [ "correctness", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/safety" ] }, { @@ -97,7 +100,8 @@ "short_name": "ObjectCopiedToAnOverlappingObject", "tags": [ "correctness", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/c/DeadCode.json b/rule_packages/c/DeadCode.json index d8e80d14d1..a2028088be 100644 --- a/rule_packages/c/DeadCode.json +++ b/rule_packages/c/DeadCode.json @@ -15,7 +15,8 @@ "tags": [ "readability", "maintainability", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/style" ], "implementation_scope": { "description": "This query reports basic blocks in the program which are unreachable. For basic blocks within templates, the block is only consider unreachable if it is unreachable in all templates. Code generated by macros is ignored for this query, because it may be the case that basic blocks are reachable only in some expansions." @@ -40,7 +41,8 @@ "tags": [ "readability", "maintainability", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/style" ] } ], @@ -61,7 +63,8 @@ "tags": [ "readability", "maintainability", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/style" ], "shared_implementation_short_name": "UnusedTypeDeclarations" } @@ -104,7 +107,8 @@ "tags": [ "readability", "maintainability", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/style" ] } ], @@ -125,7 +129,8 @@ "tags": [ "readability", "maintainability", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/style" ] } ], diff --git a/rule_packages/c/DeadCode2.json b/rule_packages/c/DeadCode2.json index 8b373c31b6..1ad9082a71 100644 --- a/rule_packages/c/DeadCode2.json +++ b/rule_packages/c/DeadCode2.json @@ -15,7 +15,8 @@ "tags": [ "maintainability", "performance", - "external/misra/c/2012/amendment4" + "external/misra/c/2012/amendment4", + "coding-standards/baseline/style" ] }, { diff --git a/rule_packages/c/Declarations1.json b/rule_packages/c/Declarations1.json index dba6a07eeb..dc10485cbe 100644 --- a/rule_packages/c/Declarations1.json +++ b/rule_packages/c/Declarations1.json @@ -129,7 +129,9 @@ "correctness", "maintainability", "readability", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/safety", + "coding-standards/baseline/style" ], "implementation_scope": { "description": "This query checks the first 63 characters of macro identifiers as significant, as per C99. Distinctness of parameters within the same function like macro are checked by compiler and therefore not checked by this rule.", @@ -146,7 +148,8 @@ "tags": [ "maintainability", "readability", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/style" ] } ], diff --git a/rule_packages/c/Declarations2.json b/rule_packages/c/Declarations2.json index c5b827e682..149c43f188 100644 --- a/rule_packages/c/Declarations2.json +++ b/rule_packages/c/Declarations2.json @@ -20,7 +20,8 @@ "external/cert/likelihood/unlikely", "external/cert/remediation-cost/low", "external/cert/priority/p3", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/style" ] } ], @@ -113,7 +114,8 @@ "external/cert/likelihood/unlikely", "external/cert/remediation-cost/medium", "external/cert/priority/p4", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/style" ] } ], diff --git a/rule_packages/c/Declarations3.json b/rule_packages/c/Declarations3.json index 8c2e0879ff..f209183c91 100644 --- a/rule_packages/c/Declarations3.json +++ b/rule_packages/c/Declarations3.json @@ -104,7 +104,8 @@ "tags": [ "correctness", "readability", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/style" ], "implementation_scope": { "description": "This query does not check for implicitly typed parameters, typedefs or member declarations as this is partially compiler checked.", diff --git a/rule_packages/c/Declarations4.json b/rule_packages/c/Declarations4.json index dedc6a73d4..72fd8ee182 100644 --- a/rule_packages/c/Declarations4.json +++ b/rule_packages/c/Declarations4.json @@ -15,7 +15,8 @@ "shared_implementation_short_name": "FunctionTypesNotInPrototypeFormShared", "tags": [ "correctness", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/style" ], "implementation_scope": { "description": "This query does not check for implicitly typed parameters and checks function declarations and definitions but not function pointer types. This query cannot determine when the keyword void is used in place of no parameter.", diff --git a/rule_packages/c/Declarations5.json b/rule_packages/c/Declarations5.json index 36591e575b..7865071f27 100644 --- a/rule_packages/c/Declarations5.json +++ b/rule_packages/c/Declarations5.json @@ -16,7 +16,8 @@ "correctness", "maintainability", "readability", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/safety" ], "implementation_scope": { "description": "This query considers the first 63 characters of identifiers as significant, as per C99 for nonexternal identifiers and reports the case when names are longer than 63 characters and differ in those characters past the 63 first only. This query does not consider universal or extended source characters.", @@ -61,7 +62,9 @@ "shared_implementation_short_name": "MissingStaticSpecifierFunctionRedeclarationShared", "tags": [ "readability", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/safety", + "coding-standards/baseline/style" ] }, { @@ -74,7 +77,9 @@ "shared_implementation_short_name": "MissingStaticSpecifierObjectRedeclarationShared", "tags": [ "readability", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/safety", + "coding-standards/baseline/style" ] } ], diff --git a/rule_packages/c/Declarations6.json b/rule_packages/c/Declarations6.json index 198b4e8351..b6802c7a2c 100644 --- a/rule_packages/c/Declarations6.json +++ b/rule_packages/c/Declarations6.json @@ -15,7 +15,8 @@ "tags": [ "correctness", "readability", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/safety" ] } ], @@ -35,7 +36,9 @@ "short_name": "FlexibleArrayMembersDeclared", "tags": [ "correctness", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/safety", + "coding-standards/baseline/style" ] } ], @@ -100,7 +103,9 @@ "short_name": "InlineFunctionNotDeclaredStaticStorage", "tags": [ "correctness", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/safety", + "coding-standards/baseline/style" ] } ], @@ -121,7 +126,8 @@ "tags": [ "correctness", "readability", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/style" ] } ], diff --git a/rule_packages/c/Declarations7.json b/rule_packages/c/Declarations7.json index 86818cdcb5..3633b75521 100644 --- a/rule_packages/c/Declarations7.json +++ b/rule_packages/c/Declarations7.json @@ -45,7 +45,9 @@ "tags": [ "correctness", "readability", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/safety", + "coding-standards/baseline/style" ] } ], @@ -67,7 +69,9 @@ "tags": [ "correctness", "readability", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/safety", + "coding-standards/baseline/style" ] } ], diff --git a/rule_packages/c/Declarations8.json b/rule_packages/c/Declarations8.json index 6275e32595..a59a215852 100644 --- a/rule_packages/c/Declarations8.json +++ b/rule_packages/c/Declarations8.json @@ -19,7 +19,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/high", "external/cert/priority/p6", - "external/cert/level/l2" + "external/cert/level/l2", + "coding-standards/baseline/safety" ], "implementation_scope": { "description": "The rule checks specifically for pointers to objects with automatic storage duration that are assigned to static storage duration variables." @@ -38,7 +39,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/high", "external/cert/priority/p6", - "external/cert/level/l2" + "external/cert/level/l2", + "coding-standards/baseline/safety" ], "implementation_scope": { "description": "The rule checks specifically for pointers to objects with automatic storage duration that are returned by functions or assigned to function output parameters." diff --git a/rule_packages/c/Declarations9.json b/rule_packages/c/Declarations9.json index ebfcf7c41f..014fb537a4 100644 --- a/rule_packages/c/Declarations9.json +++ b/rule_packages/c/Declarations9.json @@ -15,7 +15,8 @@ "tags": [ "correctness", "external/misra/c/2012/third-edition-first-revision", - "external/misra/c/2012/amendment4" + "external/misra/c/2012/amendment4", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/c/EssentialTypes.json b/rule_packages/c/EssentialTypes.json index a8ae26e8c6..7490bebe05 100644 --- a/rule_packages/c/EssentialTypes.json +++ b/rule_packages/c/EssentialTypes.json @@ -194,7 +194,8 @@ "tags": [ "maintainability", "correctness", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/safety" ] } ], @@ -215,7 +216,8 @@ "tags": [ "maintainability", "correctness", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/c/EssentialTypes2.json b/rule_packages/c/EssentialTypes2.json index 5292eccdb8..6c53ab4d2a 100644 --- a/rule_packages/c/EssentialTypes2.json +++ b/rule_packages/c/EssentialTypes2.json @@ -37,7 +37,8 @@ "short_name": "TgMathArgumentsWithDifferingStandardType", "tags": [ "correctness", - "external/misra/c/2012/amendment3" + "external/misra/c/2012/amendment3", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/c/Expressions.json b/rule_packages/c/Expressions.json index 9be722b761..c961052e04 100644 --- a/rule_packages/c/Expressions.json +++ b/rule_packages/c/Expressions.json @@ -18,7 +18,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/high", "external/cert/priority/p4", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ], "implementation_scope": { "description": "This query raises a result for a function assigned to a function pointer of an incompatible type even if the function pointer is never eventually called." @@ -37,7 +38,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/high", "external/cert/priority/p4", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ] }, { @@ -54,7 +56,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/high", "external/cert/priority/p4", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ], "implementation_scope": { "description": "The analysis of invalid parameter count passed to POSIX open calls only applies when the value of the flags argument is computed locally." @@ -82,7 +85,8 @@ "external/cert/likelihood/likely", "external/cert/remediation-cost/low", "external/cert/priority/p9", - "external/cert/level/l2" + "external/cert/level/l2", + "coding-standards/baseline/style" ] } ], diff --git a/rule_packages/c/FloatingTypes.json b/rule_packages/c/FloatingTypes.json index 17690574e5..9b5ea9a651 100644 --- a/rule_packages/c/FloatingTypes.json +++ b/rule_packages/c/FloatingTypes.json @@ -94,7 +94,8 @@ "external/cert/likelihood/unlikely", "external/cert/remediation-cost/medium", "external/cert/priority/p2", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/c/Generics.json b/rule_packages/c/Generics.json index 02c7cb2364..7ae337bd2e 100644 --- a/rule_packages/c/Generics.json +++ b/rule_packages/c/Generics.json @@ -14,7 +14,9 @@ "short_name": "GenericSelectionNotExpandedFromAMacro", "tags": [ "maintainability", - "external/misra/c/2012/amendment3" + "external/misra/c/2012/amendment3", + "coding-standards/baseline/safety", + "coding-standards/baseline/style" ] }, { @@ -27,7 +29,9 @@ "tags": [ "correctness", "maintainability", - "external/misra/c/2012/amendment3" + "external/misra/c/2012/amendment3", + "coding-standards/baseline/safety", + "coding-standards/baseline/style" ] } ], @@ -72,7 +76,8 @@ "tags": [ "correctness", "maintainability", - "external/misra/c/2012/amendment3" + "external/misra/c/2012/amendment3", + "coding-standards/baseline/style" ] } ], @@ -92,7 +97,8 @@ "short_name": "GenericAssociationWithUnselectableType", "tags": [ "correctness", - "external/misra/c/2012/amendment3" + "external/misra/c/2012/amendment3", + "coding-standards/baseline/safety" ] } ], @@ -112,7 +118,8 @@ "short_name": "DangerousDefaultSelectionForPointerInGeneric", "tags": [ "correctness", - "external/misra/c/2012/amendment3" + "external/misra/c/2012/amendment3", + "coding-standards/baseline/safety" ] } ], @@ -157,7 +164,8 @@ "tags": [ "correctness", "maintainability", - "external/misra/c/2012/amendment3" + "external/misra/c/2012/amendment3", + "coding-standards/baseline/safety" ] } ], @@ -181,7 +189,8 @@ "short_name": "DefaultGenericSelectionNotFirstOrLast", "tags": [ "maintainability", - "external/misra/c/2012/amendment3" + "external/misra/c/2012/amendment3", + "coding-standards/baseline/style" ] } ], diff --git a/rule_packages/c/IO1.json b/rule_packages/c/IO1.json index 8a42c4e52a..1fe3706590 100644 --- a/rule_packages/c/IO1.json +++ b/rule_packages/c/IO1.json @@ -20,7 +20,8 @@ "external/cert/likelihood/likely", "external/cert/remediation-cost/medium", "external/cert/priority/p18", - "external/cert/level/l1" + "external/cert/level/l1", + "coding-standards/baseline/safety" ] } ], @@ -93,7 +94,8 @@ "external/cert/likelihood/likely", "external/cert/remediation-cost/medium", "external/cert/priority/p6", - "external/cert/level/l2" + "external/cert/level/l2", + "coding-standards/baseline/safety" ], "implementation_scope": { "description": "The rule is enforced in the context of a single function." @@ -150,7 +152,8 @@ "external/cert/likelihood/unlikely", "external/cert/remediation-cost/medium", "external/cert/priority/p4", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ], "implementation_scope": { "description": "The rule is enforced in the context of a single function." @@ -176,7 +179,8 @@ "shared_implementation_short_name": "DoNotAccessAClosedFile", "tags": [ "correctness", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/safety" ], "implementation_scope": { "description": "The rule is enforced in the context of a single function." diff --git a/rule_packages/c/IO2.json b/rule_packages/c/IO2.json index 69c12d7723..fab7ae5bbf 100644 --- a/rule_packages/c/IO2.json +++ b/rule_packages/c/IO2.json @@ -19,7 +19,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/medium", "external/cert/priority/p4", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ] } ], @@ -44,7 +45,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/medium", "external/cert/priority/p4", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ] } ], @@ -68,7 +70,8 @@ "external/cert/likelihood/unlikely", "external/cert/remediation-cost/medium", "external/cert/priority/p2", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/c/IO3.json b/rule_packages/c/IO3.json index af6e9da732..1ae242c495 100644 --- a/rule_packages/c/IO3.json +++ b/rule_packages/c/IO3.json @@ -46,7 +46,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/medium", "external/cert/priority/p12", - "external/cert/level/l1" + "external/cert/level/l1", + "coding-standards/baseline/safety" ], "implementation_scope": { "description": "The rule checks that access to a string returned by fgets() or fgetws() if protected by a guard condition. The rule is enforced in the context of a single function." @@ -71,7 +72,8 @@ "short_name": "FileOpenForReadAndWriteOnDifferentStreams", "tags": [ "correctness", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/safety" ], "implementation_scope": { "description": "The rule is enforced in the context of a single function." @@ -94,7 +96,8 @@ "short_name": "AttemptToWriteToAReadOnlyStream", "tags": [ "correctness", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/safety" ] } ], @@ -114,7 +117,8 @@ "short_name": "PointerToAFileObjectDereferenced", "tags": [ "correctness", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/safety" ] } ], @@ -134,7 +138,8 @@ "short_name": "EofShallBeComparedWithUnmodifiedReturnValues", "tags": [ "correctness", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/c/IO4.json b/rule_packages/c/IO4.json index 8d9c150335..fca7fe37fb 100644 --- a/rule_packages/c/IO4.json +++ b/rule_packages/c/IO4.json @@ -19,7 +19,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/high", "external/cert/priority/p6", - "external/cert/level/l2" + "external/cert/level/l2", + "coding-standards/baseline/safety" ], "implementation_scope": { "description": "The query is limited to the specific class of TOCTOU race conditions that derives from the incorrectuse of `fopen` to check the existence of a file." @@ -47,7 +48,8 @@ "external/cert/likelihood/unlikely", "external/cert/remediation-cost/medium", "external/cert/priority/p6", - "external/cert/level/l2" + "external/cert/level/l2", + "coding-standards/baseline/safety" ] }, { @@ -64,7 +66,8 @@ "external/cert/likelihood/unlikely", "external/cert/remediation-cost/medium", "external/cert/priority/p6", - "external/cert/level/l2" + "external/cert/level/l2", + "coding-standards/baseline/safety" ] }, { @@ -81,7 +84,8 @@ "external/cert/likelihood/unlikely", "external/cert/remediation-cost/medium", "external/cert/priority/p6", - "external/cert/level/l2" + "external/cert/level/l2", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/c/IntegerOverflow.json b/rule_packages/c/IntegerOverflow.json index f528d3d542..60a5827da4 100644 --- a/rule_packages/c/IntegerOverflow.json +++ b/rule_packages/c/IntegerOverflow.json @@ -117,7 +117,8 @@ "external/cert/likelihood/unlikely", "external/cert/remediation-cost/medium", "external/cert/priority/p2", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ] } ], @@ -141,7 +142,8 @@ "tags": [ "correctness", "security", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/c/InvalidMemory1.json b/rule_packages/c/InvalidMemory1.json index 3b0a6bb40c..6c2cbae06a 100644 --- a/rule_packages/c/InvalidMemory1.json +++ b/rule_packages/c/InvalidMemory1.json @@ -70,7 +70,8 @@ "external/cert/likelihood/likely", "external/cert/remediation-cost/medium", "external/cert/priority/p18", - "external/cert/level/l1" + "external/cert/level/l1", + "coding-standards/baseline/safety" ] } ], @@ -94,7 +95,8 @@ "tags": [ "correctness", "security", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/c/InvalidMemory2.json b/rule_packages/c/InvalidMemory2.json index 025a5d246c..eddddfda09 100644 --- a/rule_packages/c/InvalidMemory2.json +++ b/rule_packages/c/InvalidMemory2.json @@ -19,7 +19,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/high", "external/cert/priority/p6", - "external/cert/level/l2" + "external/cert/level/l2", + "coding-standards/baseline/safety" ] } ], @@ -67,7 +68,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/medium", "external/cert/priority/p4", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ], "implementation_scope": { "description": "This implementation also always reports non-modifying accesses of objects with temporary lifetime, which are only compliant in C11." diff --git a/rule_packages/c/InvalidMemory3.json b/rule_packages/c/InvalidMemory3.json index feeb8b2b47..fddeae071d 100644 --- a/rule_packages/c/InvalidMemory3.json +++ b/rule_packages/c/InvalidMemory3.json @@ -15,7 +15,8 @@ "tags": [ "external/misra/c/2012/amendment4", "correctness", - "security" + "security", + "coding-standards/baseline/safety" ] } ], @@ -36,7 +37,8 @@ "tags": [ "external/misra/c/2012/amendment3", "correctness", - "security" + "security", + "coding-standards/baseline/safety" ] }, { @@ -49,7 +51,8 @@ "tags": [ "external/misra/c/2012/amendment3", "correctness", - "security" + "security", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/c/Language4.json b/rule_packages/c/Language4.json index fdc11924f4..30727489b0 100644 --- a/rule_packages/c/Language4.json +++ b/rule_packages/c/Language4.json @@ -15,7 +15,9 @@ "shared_implementation_short_name": "MissingStaticSpecifierFunctionRedeclarationShared", "tags": [ "readability", - "external/misra/c/2012/amendment3" + "external/misra/c/2012/amendment3", + "coding-standards/baseline/safety", + "coding-standards/baseline/style" ] }, { @@ -28,7 +30,9 @@ "shared_implementation_short_name": "MissingStaticSpecifierObjectRedeclarationShared", "tags": [ "readability", - "external/misra/c/2012/amendment3" + "external/misra/c/2012/amendment3", + "coding-standards/baseline/safety", + "coding-standards/baseline/style" ] }, { @@ -41,7 +45,9 @@ "shared_implementation_short_name": "FunctionTypesNotInPrototypeFormShared", "tags": [ "correctness", - "external/misra/c/2012/amendment3" + "external/misra/c/2012/amendment3", + "coding-standards/baseline/safety", + "coding-standards/baseline/style" ], "implementation_scope": { "description": "This query does not check for implicitly typed parameters and checks function declarations and definitions but not function pointer types." @@ -57,7 +63,9 @@ "tags": [ "maintainability", "readability", - "external/misra/c/2012/amendment3" + "external/misra/c/2012/amendment3", + "coding-standards/baseline/safety", + "coding-standards/baseline/style" ] }, { @@ -70,7 +78,9 @@ "tags": [ "maintainability", "readability", - "external/misra/c/2012/amendment3" + "external/misra/c/2012/amendment3", + "coding-standards/baseline/safety", + "coding-standards/baseline/style" ] }, { @@ -83,7 +93,9 @@ "tags": [ "external/misra/c/2012/amendment3", "security", - "maintainability" + "maintainability", + "coding-standards/baseline/safety", + "coding-standards/baseline/style" ] }, { @@ -96,7 +108,9 @@ "tags": [ "external/misra/c/2012/amendment3", "security", - "maintainability" + "maintainability", + "coding-standards/baseline/safety", + "coding-standards/baseline/style" ] }, { @@ -108,7 +122,9 @@ "short_name": "SizeInReallocCallMayBeZero", "tags": [ "correctness", - "external/misra/c/2012/amendment3" + "external/misra/c/2012/amendment3", + "coding-standards/baseline/safety", + "coding-standards/baseline/style" ] }, { @@ -120,7 +136,9 @@ "short_name": "SizeInReallocCallIsZero", "tags": [ "correctness", - "external/misra/c/2012/amendment3" + "external/misra/c/2012/amendment3", + "coding-standards/baseline/safety", + "coding-standards/baseline/style" ] } ], diff --git a/rule_packages/c/Memory1.json b/rule_packages/c/Memory1.json index 8515fe15e1..b9b59a00b8 100644 --- a/rule_packages/c/Memory1.json +++ b/rule_packages/c/Memory1.json @@ -16,7 +16,8 @@ "tags": [ "maintainability", "readability", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/style" ] } ], @@ -37,7 +38,8 @@ "tags": [ "maintainability", "readability", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/safety" ] } ], @@ -59,7 +61,8 @@ "correctness", "maintainability", "readability", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/c/Memory2.json b/rule_packages/c/Memory2.json index 55a7dd2a35..d7014c7c16 100644 --- a/rule_packages/c/Memory2.json +++ b/rule_packages/c/Memory2.json @@ -19,7 +19,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/medium", "external/cert/priority/p8", - "external/cert/level/l2" + "external/cert/level/l2", + "coding-standards/baseline/safety" ] }, { @@ -36,7 +37,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/medium", "external/cert/priority/p8", - "external/cert/level/l2" + "external/cert/level/l2", + "coding-standards/baseline/safety" ] } ], @@ -114,7 +116,8 @@ "external/cert/likelihood/unlikely", "external/cert/remediation-cost/low", "external/cert/priority/p3", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ] }, { @@ -130,7 +133,8 @@ "external/cert/likelihood/unlikely", "external/cert/remediation-cost/low", "external/cert/priority/p3", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ] } ], @@ -181,7 +185,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/high", "external/cert/priority/p2", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ] } ], @@ -205,7 +210,8 @@ "tags": [ "correctness", "security", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/safety" ], "implementation_scope": { "description": "The rule is enforced in the context of a single function." @@ -222,7 +228,8 @@ "tags": [ "correctness", "security", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/safety" ], "implementation_scope": { "description": "The rule is enforced in the context of a single function." @@ -247,7 +254,8 @@ "tags": [ "correctness", "security", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/c/Misc.json b/rule_packages/c/Misc.json index 183c05988b..3664b4265f 100644 --- a/rule_packages/c/Misc.json +++ b/rule_packages/c/Misc.json @@ -19,7 +19,8 @@ "external/cert/likelihood/unlikely", "external/cert/remediation-cost/low", "external/cert/priority/p6", - "external/cert/level/l2" + "external/cert/level/l2", + "coding-standards/baseline/safety" ] } ], @@ -43,7 +44,8 @@ "external/cert/likelihood/likely", "external/cert/remediation-cost/low", "external/cert/priority/p18", - "external/cert/level/l1" + "external/cert/level/l1", + "coding-standards/baseline/safety" ], "implementation_scope": { "description": "This rule will be checked by looking for calls to random that are no preceded by a call to srandom(). We perform a simple check for the argument to srandom() and verify it is not a literal (or a value easily deduced to be a literal)." diff --git a/rule_packages/c/NoReturn.json b/rule_packages/c/NoReturn.json index f485060095..a8d5f37812 100644 --- a/rule_packages/c/NoReturn.json +++ b/rule_packages/c/NoReturn.json @@ -34,7 +34,8 @@ "short_name": "FunctionWithNoReturningBranchShouldBeNoreturn", "tags": [ "correctness", - "external/misra/c/2012/amendment3" + "external/misra/c/2012/amendment3", + "coding-standards/baseline/style" ] } ], @@ -54,7 +55,8 @@ "short_name": "ReturnStatementInNoreturnFunction", "tags": [ "correctness", - "external/misra/c/2012/amendment3" + "external/misra/c/2012/amendment3", + "coding-standards/baseline/safety" ], "shared_implementation_short_name": "FunctionNoReturnAttributeCondition" } diff --git a/rule_packages/c/OutOfBounds.json b/rule_packages/c/OutOfBounds.json index 3354348230..f35d6171c7 100644 --- a/rule_packages/c/OutOfBounds.json +++ b/rule_packages/c/OutOfBounds.json @@ -67,7 +67,8 @@ "tags": [ "correctness", "security", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/safety" ] } ], @@ -88,7 +89,8 @@ "tags": [ "correctness", "security", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/c/Pointers1.json b/rule_packages/c/Pointers1.json index 1b54fc1fb6..3dd31d1b5d 100644 --- a/rule_packages/c/Pointers1.json +++ b/rule_packages/c/Pointers1.json @@ -34,7 +34,8 @@ "short_name": "ConversionBetweenIncompleteTypePointerAndOtherType", "tags": [ "correctness", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/safety" ] } ], @@ -134,7 +135,8 @@ "short_name": "CastBetweenPointerToObjectAndNonIntArithmeticType", "tags": [ "correctness", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/safety" ] } ], @@ -174,7 +176,8 @@ "short_name": "MacroNullNotUsedAsIntegerNullPointerConstant", "tags": [ "readability", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/style" ], "implementation_scope": { "description": "This rule allows two forms of null-pointer constants: a Zero literal created by the NULL macro or a Zero literal cast to a void pointer." @@ -282,7 +285,8 @@ "shared_implementation_short_name": "DoNotUseMoreThanTwoLevelsOfPointerIndirection", "tags": [ "readability", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/style" ] } ], @@ -303,7 +307,8 @@ "shared_implementation_short_name": "DoNotCopyAddressOfAutoStorageObjectToOtherObject", "tags": [ "correctness", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/safety" ] }, { @@ -315,7 +320,8 @@ "short_name": "ThreadLocalObjectAddressCopiedToGlobalObject", "tags": [ "correctness", - "external/misra/c/2012/amendment3" + "external/misra/c/2012/amendment3", + "coding-standards/baseline/safety" ] } ], @@ -361,7 +367,8 @@ "correctness", "maintainability", "readability", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/style" ], "implementation_scope": { "description": "To exclude compliant exceptions, this rule only excludes direct assignments of pointers to non-const-qualified types in the context of a single function and does not cover memory-copying functions. This rule also excludes pointers passed to other functions without conversion." diff --git a/rule_packages/c/Pointers3.json b/rule_packages/c/Pointers3.json index 8a169b71a8..86056f30f4 100644 --- a/rule_packages/c/Pointers3.json +++ b/rule_packages/c/Pointers3.json @@ -18,7 +18,8 @@ "external/cert/likelihood/likely", "external/cert/remediation-cost/medium", "external/cert/priority/p6", - "external/cert/level/l2" + "external/cert/level/l2", + "coding-standards/baseline/safety" ], "implementation_scope": { "description": "In limited cases, this query can raise false-positives for assignment of volatile objects and subsequent accesses of those objects via non-volatile pointers." @@ -94,7 +95,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/high", "external/cert/priority/p4", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ] }, { @@ -110,7 +112,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/high", "external/cert/priority/p4", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/c/Preprocessor1.json b/rule_packages/c/Preprocessor1.json index cf4f023023..f402fa2bfe 100644 --- a/rule_packages/c/Preprocessor1.json +++ b/rule_packages/c/Preprocessor1.json @@ -15,7 +15,8 @@ "shared_implementation_short_name": "PreprocessorIncludesPreceded", "tags": [ "readability", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/style" ] } ], @@ -36,7 +37,8 @@ "shared_implementation_short_name": "HashOperatorsUsed", "tags": [ "correctness", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/style" ] } ], @@ -57,7 +59,8 @@ "shared_implementation_short_name": "PreprocessorIncludesForbiddenHeaderNames", "tags": [ "correctness", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/style" ], "implementation_scope": { "description": "This query identifies the use of the ', \\, /*, // characters in header file names. The query is not able to detect the use of the \" character in header file names.", @@ -83,7 +86,8 @@ "tags": [ "correctness", "readability", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/safety" ], "implementation_scope": { "description": "This query does not detect the case where an undefined character is used but not actually evaluated, for example, as a result of the inclusion of a logical AND operator in the #if expression.", diff --git a/rule_packages/c/Preprocessor2.json b/rule_packages/c/Preprocessor2.json index 62bb0b770a..98c0ac0255 100644 --- a/rule_packages/c/Preprocessor2.json +++ b/rule_packages/c/Preprocessor2.json @@ -15,7 +15,9 @@ "shared_implementation_short_name": "MacroParameterFollowingHash", "tags": [ "correctness", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/safety", + "coding-standards/baseline/style" ], "implementation_scope": { "description": "This query applies to function like macros and not object like macros. This rule strictly disallows the use of # operator followed by a ## and other combinations are permitted.", @@ -41,7 +43,8 @@ "tags": [ "maintainability", "readability", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/style" ] } ], @@ -62,7 +65,8 @@ "tags": [ "maintainability", "readability", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/style" ] } ], @@ -85,7 +89,8 @@ "correctness", "maintainability", "readability", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/style" ], "implementation_scope": { "description": "This query defines header file as any file that is included regardless of file extension. This query does not consider the use of `#pragma once` as a permitted header guard.", diff --git a/rule_packages/c/Preprocessor4.json b/rule_packages/c/Preprocessor4.json index 608a23d974..a785098879 100644 --- a/rule_packages/c/Preprocessor4.json +++ b/rule_packages/c/Preprocessor4.json @@ -16,7 +16,8 @@ "correctness", "readability", "maintainability", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/style" ] } ], @@ -38,7 +39,8 @@ "tags": [ "readability", "correctness", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/style" ] } ], diff --git a/rule_packages/c/Preprocessor5.json b/rule_packages/c/Preprocessor5.json index 60a1752e73..bb3d67acd0 100644 --- a/rule_packages/c/Preprocessor5.json +++ b/rule_packages/c/Preprocessor5.json @@ -48,7 +48,8 @@ "external/cert/likelihood/unlikely", "external/cert/remediation-cost/medium", "external/cert/priority/p2", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ], "implementation_scope": { "description": "This query defines end of function call as the next node in the control flow graph.", diff --git a/rule_packages/c/Preprocessor6.json b/rule_packages/c/Preprocessor6.json index 6d71b8697b..1f5414c16a 100644 --- a/rule_packages/c/Preprocessor6.json +++ b/rule_packages/c/Preprocessor6.json @@ -17,7 +17,8 @@ "external/misra/audit", "maintainability", "readability", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/style" ] } ], diff --git a/rule_packages/c/SideEffects1.json b/rule_packages/c/SideEffects1.json index 4dec3d8bbf..2cb77df050 100644 --- a/rule_packages/c/SideEffects1.json +++ b/rule_packages/c/SideEffects1.json @@ -136,7 +136,8 @@ "short_name": "InitializerListsContainPersistentSideEffects", "tags": [ "correctness", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/safety" ] } ], @@ -158,7 +159,8 @@ "tags": [ "correctness", "readability", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/style" ] } ], @@ -198,7 +200,8 @@ "short_name": "SizeofOperandWithSideEffect", "tags": [ "correctness", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/c/SideEffects3.json b/rule_packages/c/SideEffects3.json index 1ff29ec166..9ff78255f1 100644 --- a/rule_packages/c/SideEffects3.json +++ b/rule_packages/c/SideEffects3.json @@ -14,7 +14,8 @@ "short_name": "UnsequencedSideEffects", "tags": [ "correctness", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/safety" ] }, { diff --git a/rule_packages/c/SideEffects4.json b/rule_packages/c/SideEffects4.json index 5b0c6da3f5..d4c6d60725 100644 --- a/rule_packages/c/SideEffects4.json +++ b/rule_packages/c/SideEffects4.json @@ -18,7 +18,8 @@ "external/cert/likelihood/unlikely", "external/cert/remediation-cost/low", "external/cert/priority/p3", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ], "implementation_scope": { "description": "This implementation only considers ++ and function call side effects. Due to the textual nature of macro expansion it is not always possible to determine accurately whether a side-effect was produced by a particular argument, and this may cause both false positives and false negatives. The query does not consider the case where a macro argument including a side-effect is never evaluated." diff --git a/rule_packages/c/SignalHandlers.json b/rule_packages/c/SignalHandlers.json index ae9045a64d..81eec2f858 100644 --- a/rule_packages/c/SignalHandlers.json +++ b/rule_packages/c/SignalHandlers.json @@ -19,7 +19,8 @@ "external/cert/likelihood/likely", "external/cert/remediation-cost/medium", "external/cert/priority/p18", - "external/cert/level/l1" + "external/cert/level/l1", + "coding-standards/baseline/safety" ] } ], @@ -72,7 +73,8 @@ "external/cert/likelihood/unlikely", "external/cert/remediation-cost/low", "external/cert/priority/p3", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ] } ], @@ -97,7 +99,8 @@ "external/cert/likelihood/unlikely", "external/cert/remediation-cost/high", "external/cert/priority/p1", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/c/StandardLibraryFunctionTypes.json b/rule_packages/c/StandardLibraryFunctionTypes.json index ee0d7f5af1..6254960421 100644 --- a/rule_packages/c/StandardLibraryFunctionTypes.json +++ b/rule_packages/c/StandardLibraryFunctionTypes.json @@ -13,7 +13,8 @@ "severity": "error", "short_name": "CtypeFunctionArgNotUnsignedCharOrEof", "tags": [ - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/safety" ] } ], @@ -32,7 +33,8 @@ "severity": "error", "short_name": "MemcpyMemmoveMemcmpArgNotPointersToCompatibleTypes", "tags": [ - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/c/Statements1.json b/rule_packages/c/Statements1.json index c932a8642d..d48b604d9e 100644 --- a/rule_packages/c/Statements1.json +++ b/rule_packages/c/Statements1.json @@ -16,7 +16,8 @@ "tags": [ "maintainability", "readability", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/style" ] } ], @@ -77,7 +78,8 @@ "severity": "recommendation", "short_name": "DefaultNotFirstOrLastOfSwitch", "tags": [ - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/style" ] } ], diff --git a/rule_packages/c/Statements2.json b/rule_packages/c/Statements2.json index 9cd71b69c9..ab2bf85802 100644 --- a/rule_packages/c/Statements2.json +++ b/rule_packages/c/Statements2.json @@ -16,7 +16,9 @@ "tags": [ "maintainability", "readability", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/safety", + "coding-standards/baseline/style" ] } ], @@ -38,7 +40,8 @@ "tags": [ "maintainability", "readability", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/safety" ] } ], @@ -80,7 +83,8 @@ "tags": [ "maintainability", "readability", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/style" ] } ], diff --git a/rule_packages/c/Statements3.json b/rule_packages/c/Statements3.json index 94206d485f..7e25259c5b 100644 --- a/rule_packages/c/Statements3.json +++ b/rule_packages/c/Statements3.json @@ -15,7 +15,8 @@ "tags": [ "maintainability", "readability", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/style" ] }, { @@ -28,7 +29,8 @@ "tags": [ "maintainability", "readability", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/style" ] }, { @@ -41,7 +43,8 @@ "tags": [ "maintainability", "readability", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/style" ] } ], @@ -85,7 +88,8 @@ "tags": [ "maintainability", "readability", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/style" ] }, { @@ -99,7 +103,8 @@ "tags": [ "maintainability", "readability", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/style" ] } ], diff --git a/rule_packages/c/Statements4.json b/rule_packages/c/Statements4.json index e770fe032a..96799fc7c8 100644 --- a/rule_packages/c/Statements4.json +++ b/rule_packages/c/Statements4.json @@ -20,7 +20,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/low", "external/cert/priority/p6", - "external/cert/level/l2" + "external/cert/level/l2", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/c/Statements5.json b/rule_packages/c/Statements5.json index 03380f4897..2734f36c20 100644 --- a/rule_packages/c/Statements5.json +++ b/rule_packages/c/Statements5.json @@ -16,7 +16,8 @@ "correctness", "maintainability", "readability", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/safety" ] } ], @@ -64,7 +65,9 @@ "correctness", "maintainability", "readability", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/safety", + "coding-standards/baseline/style" ] } ], diff --git a/rule_packages/c/Statements6.json b/rule_packages/c/Statements6.json index c8ab3efe38..be9d2fefe6 100644 --- a/rule_packages/c/Statements6.json +++ b/rule_packages/c/Statements6.json @@ -16,7 +16,8 @@ "tags": [ "correctness", "security", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/style" ] } ], diff --git a/rule_packages/c/Static.json b/rule_packages/c/Static.json index 2af2af402a..941a18edb0 100644 --- a/rule_packages/c/Static.json +++ b/rule_packages/c/Static.json @@ -14,7 +14,8 @@ "short_name": "UseOfArrayStatic", "tags": [ "correctness", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/safety" ], "implementation_scope": { "description": "The static keyword is associated with particular array types in our model. This means we can get false positives when two parameter use the same array type and size, but only one of which uses the `static` keyword." diff --git a/rule_packages/c/Strings1.json b/rule_packages/c/Strings1.json index c4565fc898..227f934a5c 100644 --- a/rule_packages/c/Strings1.json +++ b/rule_packages/c/Strings1.json @@ -19,7 +19,8 @@ "external/cert/likelihood/likely", "external/cert/remediation-cost/low", "external/cert/priority/p9", - "external/cert/level/l2" + "external/cert/level/l2", + "coding-standards/baseline/safety" ] } ], @@ -44,7 +45,8 @@ "external/cert/likelihood/likely", "external/cert/remediation-cost/medium", "external/cert/priority/p18", - "external/cert/level/l1" + "external/cert/level/l1", + "coding-standards/baseline/safety" ], "implementation_scope": { "description": "The enforcement of this rule does not try to approximate the effects of loops and as such may not find cases where a loop operation on a string fails to null terminate a string (or causes an overflow)." diff --git a/rule_packages/c/Strings2.json b/rule_packages/c/Strings2.json index a32b1b4c28..a664caf4fe 100644 --- a/rule_packages/c/Strings2.json +++ b/rule_packages/c/Strings2.json @@ -19,7 +19,8 @@ "external/cert/likelihood/unlikely", "external/cert/remediation-cost/low", "external/cert/priority/p3", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/c/Strings3.json b/rule_packages/c/Strings3.json index c9003f2ff8..5682456d0f 100644 --- a/rule_packages/c/Strings3.json +++ b/rule_packages/c/Strings3.json @@ -45,7 +45,8 @@ "external/cert/likelihood/likely", "external/cert/remediation-cost/low", "external/cert/priority/p27", - "external/cert/level/l1" + "external/cert/level/l1", + "coding-standards/baseline/safety" ], "implementation_scope": { "description": "Wide character types are not handled correctly on the `aarch64le` architecture. This can lead to false negative alerts." diff --git a/rule_packages/c/Syntax.json b/rule_packages/c/Syntax.json index e588c366c0..2b68aee0d7 100644 --- a/rule_packages/c/Syntax.json +++ b/rule_packages/c/Syntax.json @@ -37,7 +37,9 @@ "maintainability", "readability", "correctness", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/safety", + "coding-standards/baseline/style" ] } ], @@ -60,7 +62,8 @@ "maintainability", "readability", "correctness", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/style" ] } ], @@ -83,7 +86,8 @@ "maintainability", "readability", "correctness", - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/style" ] } ], diff --git a/rule_packages/c/Types1.json b/rule_packages/c/Types1.json index bb451eba70..c08f2f24ac 100644 --- a/rule_packages/c/Types1.json +++ b/rule_packages/c/Types1.json @@ -80,7 +80,8 @@ "severity": "error", "short_name": "SizeofOperatorUsedOnArrayTypeParam", "tags": [ - "external/misra/c/2012/third-edition-first-revision" + "external/misra/c/2012/third-edition-first-revision", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/c/Types2.json b/rule_packages/c/Types2.json index 7e4c0827fe..6ab3dde7d7 100644 --- a/rule_packages/c/Types2.json +++ b/rule_packages/c/Types2.json @@ -74,7 +74,8 @@ "short_name": "UseOfBannedSmallIntegerConstantMacro", "tags": [ "readability", - "external/misra/c/2012/amendment3" + "external/misra/c/2012/amendment3", + "coding-standards/baseline/style" ] } ], diff --git a/rule_packages/cpp/Allocations.json b/rule_packages/cpp/Allocations.json index 416cd3b567..d2c1709ba9 100644 --- a/rule_packages/cpp/Allocations.json +++ b/rule_packages/cpp/Allocations.json @@ -115,7 +115,8 @@ "short_name": "UnnecessaryUseOfDynamicStorage", "tags": [ "maintainability", - "readability" + "readability", + "coding-standards/baseline/safety" ] } ], @@ -139,7 +140,8 @@ "short_name": "ThrowingOperatorNewReturnsNullAutosar", "shared_implementation_short_name": "ThrowingOperatorNewReturnsNull", "tags": [ - "correctness" + "correctness", + "coding-standards/baseline/safety" ] }, { @@ -151,7 +153,8 @@ "short_name": "ThrowingOperatorNewThrowsInvalidExceptionAutosar", "shared_implementation_short_name": "ThrowingOperatorNewThrowsInvalidException", "tags": [ - "correctness" + "correctness", + "coding-standards/baseline/safety" ] }, { @@ -163,7 +166,8 @@ "short_name": "ThrowingNoThrowOperatorNewDeleteAutosar", "shared_implementation_short_name": "ThrowingNoThrowOperatorNewDelete", "tags": [ - "correctness" + "correctness", + "coding-standards/baseline/safety" ] }, { @@ -175,7 +179,8 @@ "short_name": "OperatorDeleteMissingPartnerAutosar", "shared_implementation_short_name": "OperatorDeleteMissingPartner", "tags": [ - "correctness" + "correctness", + "coding-standards/baseline/safety" ] } ], @@ -202,7 +207,8 @@ "external/cert/likelihood/likely", "external/cert/remediation-cost/medium", "external/cert/priority/p18", - "external/cert/level/l1" + "external/cert/level/l1", + "coding-standards/baseline/safety" ] } ], @@ -226,7 +232,8 @@ "external/cert/likelihood/likely", "external/cert/remediation-cost/medium", "external/cert/priority/p18", - "external/cert/level/l1" + "external/cert/level/l1", + "coding-standards/baseline/safety" ] } ], @@ -250,7 +257,8 @@ "external/cert/likelihood/likely", "external/cert/remediation-cost/medium", "external/cert/priority/p18", - "external/cert/level/l1" + "external/cert/level/l1", + "coding-standards/baseline/safety" ] }, { @@ -266,7 +274,8 @@ "external/cert/likelihood/likely", "external/cert/remediation-cost/medium", "external/cert/priority/p18", - "external/cert/level/l1" + "external/cert/level/l1", + "coding-standards/baseline/safety" ] } ], @@ -292,7 +301,8 @@ "external/cert/likelihood/likely", "external/cert/remediation-cost/medium", "external/cert/priority/p18", - "external/cert/level/l1" + "external/cert/level/l1", + "coding-standards/baseline/safety" ] }, { @@ -310,7 +320,8 @@ "external/cert/likelihood/likely", "external/cert/remediation-cost/medium", "external/cert/priority/p18", - "external/cert/level/l1" + "external/cert/level/l1", + "coding-standards/baseline/safety" ] } ], @@ -411,7 +422,8 @@ "external/cert/likelihood/unlikely", "external/cert/remediation-cost/low", "external/cert/priority/p6", - "external/cert/level/l2" + "external/cert/level/l2", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/cpp/BannedAPIs.json b/rule_packages/cpp/BannedAPIs.json index 3bb456fdd4..89d22581f2 100644 --- a/rule_packages/cpp/BannedAPIs.json +++ b/rule_packages/cpp/BannedAPIs.json @@ -16,7 +16,8 @@ "tags": [ "scope/single-translation-unit", "maintainability", - "correctness" + "correctness", + "coding-standards/baseline/style" ] } ], @@ -127,7 +128,8 @@ "tags": [ "scope/single-translation-unit", "correctness", - "maintainability" + "maintainability", + "coding-standards/baseline/style" ] } ], diff --git a/rule_packages/cpp/BannedFunctions.json b/rule_packages/cpp/BannedFunctions.json index 6cdb019ace..b85f7fc666 100644 --- a/rule_packages/cpp/BannedFunctions.json +++ b/rule_packages/cpp/BannedFunctions.json @@ -67,7 +67,8 @@ "shared_implementation_short_name": "DoNotUseRandForGeneratingPseudorandomNumbers", "tags": [ "security", - "scope/single-translation-unit" + "scope/single-translation-unit", + "coding-standards/baseline/style" ] } ], @@ -92,7 +93,8 @@ "shared_implementation_short_name": "DoNotUseSetjmpOrLongjmpShared", "tags": [ "correctness", - "scope/single-translation-unit" + "scope/single-translation-unit", + "coding-standards/baseline/safety" ] } ], @@ -117,7 +119,8 @@ "tags": [ "correctness", "security", - "scope/single-translation-unit" + "scope/single-translation-unit", + "coding-standards/baseline/safety" ] } ], @@ -142,7 +145,8 @@ "tags": [ "correctness", "security", - "scope/single-translation-unit" + "scope/single-translation-unit", + "coding-standards/baseline/safety" ] } ], @@ -220,7 +224,9 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/medium", "external/cert/priority/p4", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety", + "coding-standards/baseline/style" ] } ], @@ -246,7 +252,8 @@ "external/cert/likelihood/unlikely", "external/cert/remediation-cost/low", "external/cert/priority/p6", - "external/cert/level/l2" + "external/cert/level/l2", + "coding-standards/baseline/safety" ] } ], @@ -271,7 +278,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/high", "external/cert/priority/p6", - "external/cert/level/l2" + "external/cert/level/l2", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/cpp/BannedSyntax.json b/rule_packages/cpp/BannedSyntax.json index 8f739145f7..2efb798d0d 100644 --- a/rule_packages/cpp/BannedSyntax.json +++ b/rule_packages/cpp/BannedSyntax.json @@ -199,7 +199,8 @@ "tags": [ "correctness", "security", - "scope/single-translation-unit" + "scope/single-translation-unit", + "coding-standards/baseline/style" ] } ], @@ -223,7 +224,8 @@ "short_name": "RegisterKeywordUsed", "tags": [ "correctness", - "scope/single-translation-unit" + "scope/single-translation-unit", + "coding-standards/baseline/style" ] } ], @@ -346,7 +348,8 @@ "shared_implementation_short_name": "CommaOperatorUsed", "tags": [ "correctness", - "scope/single-translation-unit" + "scope/single-translation-unit", + "coding-standards/baseline/style" ] } ], @@ -394,7 +397,8 @@ "short_name": "UsingDeclarationsUsedInHeaderFiles", "tags": [ "correctness", - "scope/single-translation-unit" + "scope/single-translation-unit", + "coding-standards/baseline/style" ] } ], @@ -422,7 +426,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/medium", "external/cert/priority/p12", - "external/cert/level/l1" + "external/cert/level/l1", + "coding-standards/baseline/style" ] } ], diff --git a/rule_packages/cpp/BannedTypes.json b/rule_packages/cpp/BannedTypes.json index e84399b928..a9f241e027 100644 --- a/rule_packages/cpp/BannedTypes.json +++ b/rule_packages/cpp/BannedTypes.json @@ -44,7 +44,8 @@ "shared_implementation_short_name": "VectorShouldNotBeSpecializedWithBool", "tags": [ "correctness", - "scope/single-translation-unit" + "scope/single-translation-unit", + "coding-standards/baseline/safety" ] } ], @@ -68,7 +69,8 @@ "short_name": "AutoPtrTypeUsed", "tags": [ "maintainability", - "scope/single-translation-unit" + "scope/single-translation-unit", + "coding-standards/baseline/style" ] } ], diff --git a/rule_packages/cpp/Classes.json b/rule_packages/cpp/Classes.json index e7c8a10d92..e925ecfc4b 100644 --- a/rule_packages/cpp/Classes.json +++ b/rule_packages/cpp/Classes.json @@ -118,7 +118,9 @@ "precision": "very-high", "severity": "recommendation", "short_name": "ClassDataMembersInitializationCondition", - "tags": [] + "tags": [ + "coding-standards/baseline/style" + ] } ], "title": "All class data members that are initialized by the constructor shall be initialized using member initializers." @@ -186,7 +188,8 @@ "severity": "recommendation", "short_name": "NonTrivialNonTemplateFunctionDefinedInsideClassDefinition", "tags": [ - "external/autosar/audit" + "external/autosar/audit", + "coding-standards/baseline/style" ] } ], diff --git a/rule_packages/cpp/Comments.json b/rule_packages/cpp/Comments.json index 2421bec52f..0001818a49 100644 --- a/rule_packages/cpp/Comments.json +++ b/rule_packages/cpp/Comments.json @@ -20,7 +20,9 @@ "tags": [ "correctness", "readability", - "maintainability" + "maintainability", + "coding-standards/baseline/safety", + "coding-standards/baseline/style" ] } ], diff --git a/rule_packages/cpp/Concurrency.json b/rule_packages/cpp/Concurrency.json index 3bba2f409f..6ca7af9fc4 100644 --- a/rule_packages/cpp/Concurrency.json +++ b/rule_packages/cpp/Concurrency.json @@ -20,7 +20,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/high", "external/cert/priority/p4", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ] }, { @@ -38,7 +39,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/high", "external/cert/priority/p4", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ] } ], @@ -63,7 +65,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/low", "external/cert/priority/p6", - "external/cert/level/l2" + "external/cert/level/l2", + "coding-standards/baseline/safety" ] } ], @@ -89,7 +92,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/medium", "external/cert/priority/p8", - "external/cert/level/l2" + "external/cert/level/l2", + "coding-standards/baseline/safety" ] } ], @@ -115,7 +119,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/medium", "external/cert/priority/p4", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ] } ], @@ -141,7 +146,8 @@ "external/cert/likelihood/unlikely", "external/cert/remediation-cost/medium", "external/cert/priority/p2", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ] } ], @@ -167,7 +173,8 @@ "external/cert/likelihood/unlikely", "external/cert/remediation-cost/medium", "external/cert/priority/p2", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/cpp/Conditionals.json b/rule_packages/cpp/Conditionals.json index 584df19420..f60670c5da 100644 --- a/rule_packages/cpp/Conditionals.json +++ b/rule_packages/cpp/Conditionals.json @@ -81,7 +81,8 @@ "shared_implementation_short_name": "SwitchCompoundCondition", "tags": [ "maintainability", - "readability" + "readability", + "coding-standards/baseline/style" ] }, { @@ -94,7 +95,8 @@ "shared_implementation_short_name": "LoopCompoundCondition", "tags": [ "maintainability", - "readability" + "readability", + "coding-standards/baseline/style" ] } ], @@ -118,7 +120,8 @@ "short_name": "IfCompoundCondition", "tags": [ "maintainability", - "readability" + "readability", + "coding-standards/baseline/style" ] } ], @@ -168,7 +171,8 @@ "shared_implementation_short_name": "SwitchCasePositionCondition", "tags": [ "maintainability", - "readability" + "readability", + "coding-standards/baseline/style" ] }, { @@ -181,7 +185,8 @@ "shared_implementation_short_name": "SwitchNotWellFormed", "tags": [ "maintainability", - "readability" + "readability", + "coding-standards/baseline/style" ] } ], @@ -206,7 +211,9 @@ "shared_implementation_short_name": "NestedLabelInSwitch", "tags": [ "maintainability", - "readability" + "readability", + "coding-standards/baseline/safety", + "coding-standards/baseline/style" ] } ], @@ -230,7 +237,8 @@ "short_name": "NonEmptySwitchClauseDoesNotTerminate", "tags": [ "maintainability", - "readability" + "readability", + "coding-standards/baseline/style" ] } ], @@ -290,7 +298,8 @@ "short_name": "BooleanInSwitchCondition", "tags": [ "maintainability", - "readability" + "readability", + "coding-standards/baseline/style" ] } ], @@ -314,7 +323,8 @@ "short_name": "GotoBlockCondition", "tags": [ "maintainability", - "readability" + "readability", + "coding-standards/baseline/safety" ] } ], @@ -339,7 +349,8 @@ "shared_implementation_short_name": "GotoStatementCondition", "tags": [ "maintainability", - "readability" + "readability", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/cpp/Const.json b/rule_packages/cpp/Const.json index 6f76b7f5b8..00e603b4c6 100644 --- a/rule_packages/cpp/Const.json +++ b/rule_packages/cpp/Const.json @@ -195,7 +195,8 @@ "tags": [ "correctness", "maintainability", - "readability" + "readability", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/cpp/DeadCode.json b/rule_packages/cpp/DeadCode.json index 4746f86dee..7382244824 100644 --- a/rule_packages/cpp/DeadCode.json +++ b/rule_packages/cpp/DeadCode.json @@ -18,7 +18,8 @@ "short_name": "UselessAssignment", "tags": [ "readability", - "maintainability" + "maintainability", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/cpp/Declarations.json b/rule_packages/cpp/Declarations.json index 61d286026a..630c035475 100644 --- a/rule_packages/cpp/Declarations.json +++ b/rule_packages/cpp/Declarations.json @@ -17,7 +17,8 @@ "severity": "error", "short_name": "OperatorNewAndOperatorDeleteNotDefinedLocally", "tags": [ - "correctness" + "correctness", + "coding-standards/baseline/safety" ] }, { @@ -28,7 +29,8 @@ "severity": "error", "short_name": "OperatorNewAndOperatorDeleteNotDefinedGlobally", "tags": [ - "correctness" + "correctness", + "coding-standards/baseline/safety" ] } ], @@ -197,7 +199,8 @@ "severity": "recommendation", "short_name": "ClassStructEnumDeclaredInDefinition", "tags": [ - "readability" + "readability", + "coding-standards/baseline/style" ] } ], @@ -245,7 +248,8 @@ "severity": "recommendation", "short_name": "EnumerationsNotDeclaredAsScopedEnumClasses", "tags": [ - "maintainability" + "maintainability", + "coding-standards/baseline/style" ] } ], @@ -269,7 +273,8 @@ "short_name": "NoneFirstOrAllEnumeratorsNotInitialized", "tags": [ "readability", - "maintainability" + "maintainability", + "coding-standards/baseline/style" ] } ], @@ -293,7 +298,8 @@ "short_name": "FunctionsDeclaredAtBlockScope", "tags": [ "correctness", - "maintainability" + "maintainability", + "coding-standards/baseline/style" ] } ], diff --git a/rule_packages/cpp/ExceptionSafety.json b/rule_packages/cpp/ExceptionSafety.json index 73b84edde4..e29e289046 100644 --- a/rule_packages/cpp/ExceptionSafety.json +++ b/rule_packages/cpp/ExceptionSafety.json @@ -95,7 +95,8 @@ "external/cert/likelihood/likely", "external/cert/remediation-cost/high", "external/cert/priority/p9", - "external/cert/level/l2" + "external/cert/level/l2", + "coding-standards/baseline/safety" ] } ], @@ -121,7 +122,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/high", "external/cert/priority/p2", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/cpp/Exceptions1.json b/rule_packages/cpp/Exceptions1.json index 7c3a2a708a..725fcedaf7 100644 --- a/rule_packages/cpp/Exceptions1.json +++ b/rule_packages/cpp/Exceptions1.json @@ -92,7 +92,8 @@ "short_name": "PointerExceptionObject", "shared_implementation_short_name": "ExceptionObjectHavePointerType", "tags": [ - "correctness" + "correctness", + "coding-standards/baseline/safety" ] } ], @@ -159,7 +160,8 @@ "short_name": "MissingCatchHandlerInMain", "tags": [ "maintainability", - "correctness" + "correctness", + "coding-standards/baseline/safety" ] } ], @@ -181,7 +183,8 @@ "severity": "error", "short_name": "CatchAllEllipsisUsedInNonMain", "tags": [ - "maintainability" + "maintainability", + "coding-standards/baseline/safety" ] } ], @@ -203,7 +206,8 @@ "severity": "warning", "short_name": "UseOfDynamicExceptionSpecification", "tags": [ - "maintainability" + "maintainability", + "coding-standards/baseline/style" ] } ], @@ -355,7 +359,8 @@ "severity": "error", "short_name": "GotoToCatchBlock", "tags": [ - "correctness" + "correctness", + "coding-standards/baseline/safety" ] }, { @@ -365,7 +370,8 @@ "severity": "error", "short_name": "SwitchToCatchBlock", "tags": [ - "correctness" + "correctness", + "coding-standards/baseline/safety" ] } ], @@ -387,7 +393,8 @@ "severity": "warning", "short_name": "ExceptionThrownDuringThrow", "tags": [ - "maintainability" + "maintainability", + "coding-standards/baseline/safety" ] } ], @@ -409,7 +416,8 @@ "severity": "error", "short_name": "NullThrownExplicitly", "tags": [ - "correctness" + "correctness", + "coding-standards/baseline/safety" ] } ], @@ -432,7 +440,8 @@ "short_name": "EmptyThrowOutsideCatch", "shared_implementation_short_name": "EmptyThrowOnlyWithinACatchHandler", "tags": [ - "correctness" + "correctness", + "coding-standards/baseline/safety" ] } ], @@ -455,7 +464,8 @@ "kind": "path-problem", "short_name": "CatchAllExplicitlyThrownExceptions", "tags": [ - "correctness" + "correctness", + "coding-standards/baseline/safety" ] } ], @@ -477,7 +487,8 @@ "severity": "warning", "short_name": "CatchAllHandlerLast", "tags": [ - "maintainability" + "maintainability", + "coding-standards/baseline/safety" ], "implementation_scope": { "description": "Catch all handlers that cause other catch handlers to become unreachable are typically flagged as compiler errors. If you observe alerts for this rule, it is likely that you have passed a compiler flag that converts these errors to warnings - for example the `-fpermissive` flag for g++. Consider removing the permissive flag in addition to addressing the problem." @@ -507,7 +518,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/medium", "external/cert/priority/p4", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ] }, { @@ -523,7 +535,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/medium", "external/cert/priority/p4", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ] }, { @@ -540,7 +553,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/medium", "external/cert/priority/p4", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ] }, { @@ -557,7 +571,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/medium", "external/cert/priority/p4", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ] }, { @@ -574,7 +589,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/medium", "external/cert/priority/p4", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ] } ], @@ -598,7 +614,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/medium", "external/cert/priority/p4", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ] } ], @@ -622,7 +639,8 @@ "external/cert/likelihood/unlikely", "external/cert/remediation-cost/medium", "external/cert/priority/p2", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ] } ], @@ -694,7 +712,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/medium", "external/cert/priority/p4", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ] } ], @@ -718,7 +737,9 @@ "external/cert/likelihood/unlikely", "external/cert/remediation-cost/low", "external/cert/priority/p3", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety", + "coding-standards/baseline/style" ] } ], diff --git a/rule_packages/cpp/Exceptions2.json b/rule_packages/cpp/Exceptions2.json index 2e2f2dfba6..58a8fe2f0a 100644 --- a/rule_packages/cpp/Exceptions2.json +++ b/rule_packages/cpp/Exceptions2.json @@ -17,7 +17,8 @@ "severity": "recommendation", "short_name": "OnlyThrowStdExceptionDerivedTypes", "tags": [ - "maintainability" + "maintainability", + "coding-standards/baseline/safety" ] } ], @@ -40,7 +41,8 @@ "severity": "error", "short_name": "ConstructorErrorLeavesObjectInInvalidState", "tags": [ - "correctness" + "correctness", + "coding-standards/baseline/safety" ] } ], @@ -87,7 +89,8 @@ "severity": "error", "short_name": "IncompatibleNoexceptSpecification", "tags": [ - "correctness" + "correctness", + "coding-standards/baseline/safety" ] }, { @@ -98,7 +101,8 @@ "severity": "error", "short_name": "InconsistentNoexceptFalseSpecification", "tags": [ - "correctness" + "correctness", + "coding-standards/baseline/safety" ] }, { @@ -109,7 +113,8 @@ "severity": "error", "short_name": "InconsistentNoexceptTrueSpecification", "tags": [ - "correctness" + "correctness", + "coding-standards/baseline/safety" ] }, { @@ -120,7 +125,8 @@ "severity": "error", "short_name": "IncompatibleNoexceptSpecificationForOverriders", "tags": [ - "correctness" + "correctness", + "coding-standards/baseline/safety" ] } ], @@ -215,7 +221,8 @@ "shared_implementation_short_name": "HandleAllExceptionsDuringStartup", "short_name": "ExceptionRaisedDuringStartup", "tags": [ - "correctness" + "correctness", + "coding-standards/baseline/safety" ] }, { @@ -226,7 +233,8 @@ "severity": "error", "short_name": "ExceptionRaisedDuringTermination", "tags": [ - "correctness" + "correctness", + "coding-standards/baseline/safety" ] } ], @@ -250,7 +258,8 @@ "shared_implementation_short_name": "DestroyedValueReferencedInDestructorCatchBlock", "short_name": "DestroyedValueReferencedInDestructorCatchBlock", "tags": [ - "correctness" + "correctness", + "coding-standards/baseline/safety" ] } ], @@ -300,7 +309,8 @@ "external/cert/likelihood/likely", "external/cert/remediation-cost/medium", "external/cert/priority/p6", - "external/cert/level/l2" + "external/cert/level/l2", + "coding-standards/baseline/safety" ] } ], @@ -325,7 +335,8 @@ "external/cert/likelihood/likely", "external/cert/remediation-cost/low", "external/cert/priority/p18", - "external/cert/level/l1" + "external/cert/level/l1", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/cpp/Expressions.json b/rule_packages/cpp/Expressions.json index 10f85237de..7ccfd84578 100644 --- a/rule_packages/cpp/Expressions.json +++ b/rule_packages/cpp/Expressions.json @@ -256,7 +256,8 @@ "shared_implementation_short_name": "ConstantUnsignedIntegerExpressionsWrapAround", "tags": [ "correctness", - "security" + "security", + "coding-standards/baseline/safety" ] } ], @@ -302,7 +303,8 @@ "severity": "warning", "short_name": "FloatsTestedForEquality", "tags": [ - "maintainability" + "maintainability", + "coding-standards/baseline/safety" ] } ], @@ -328,7 +330,8 @@ "external/cert/likelihood/unlikely", "external/cert/remediation-cost/medium", "external/cert/priority/p4", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ] }, { diff --git a/rule_packages/cpp/Freed.json b/rule_packages/cpp/Freed.json index 30ab6982b2..096e7ed8f9 100644 --- a/rule_packages/cpp/Freed.json +++ b/rule_packages/cpp/Freed.json @@ -17,7 +17,8 @@ "severity": "warning", "short_name": "NewDeleteArrayMismatch", "tags": [ - "correctness" + "correctness", + "coding-standards/baseline/safety" ] }, { @@ -28,7 +29,8 @@ "severity": "warning", "short_name": "NewArrayDeleteMismatch", "tags": [ - "correctness" + "correctness", + "coding-standards/baseline/safety" ] } ], @@ -90,7 +92,8 @@ "short_name": "AssignmentOfEscapingAutoStorage", "shared_implementation_short_name": "DoNotCopyAddressOfAutoStorageObjectToOtherObject", "tags": [ - "correctness" + "correctness", + "coding-standards/baseline/safety" ] } ], @@ -116,7 +119,8 @@ "external/cert/likelihood/unlikely", "external/cert/remediation-cost/medium", "external/cert/priority/p2", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ] } ], @@ -142,7 +146,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/high", "external/cert/priority/p6", - "external/cert/level/l2" + "external/cert/level/l2", + "coding-standards/baseline/safety" ] }, { @@ -160,7 +165,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/high", "external/cert/priority/p6", - "external/cert/level/l2" + "external/cert/level/l2", + "coding-standards/baseline/safety" ] } ], @@ -186,7 +192,8 @@ "external/cert/likelihood/likely", "external/cert/remediation-cost/medium", "external/cert/priority/p18", - "external/cert/level/l1" + "external/cert/level/l1", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/cpp/Functions.json b/rule_packages/cpp/Functions.json index b650b0937c..b62f4fe9ad 100644 --- a/rule_packages/cpp/Functions.json +++ b/rule_packages/cpp/Functions.json @@ -41,7 +41,8 @@ "severity": "recommendation", "short_name": "TrivialAccessorAndMutatorFunctionsNotInlined", "tags": [ - "readability" + "readability", + "coding-standards/baseline/style" ] } ], @@ -65,7 +66,8 @@ "short_name": "InvalidFunctionReturnType", "tags": [ "correctness", - "security" + "security", + "coding-standards/baseline/safety" ] } ], @@ -236,7 +238,8 @@ "shared_implementation_short_name": "ReturnReferenceOrPointerToAutomaticLocalVariable", "tags": [ "correctness", - "security" + "security", + "coding-standards/baseline/safety" ] } ], @@ -311,7 +314,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/medium", "external/cert/priority/p8", - "external/cert/level/l2" + "external/cert/level/l2", + "coding-standards/baseline/safety" ] } ], @@ -336,7 +340,8 @@ "external/cert/likelihood/unlikely", "external/cert/remediation-cost/low", "external/cert/priority/p2", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/cpp/IO.json b/rule_packages/cpp/IO.json index 3d1012232c..28b37e4211 100644 --- a/rule_packages/cpp/IO.json +++ b/rule_packages/cpp/IO.json @@ -48,7 +48,8 @@ "external/cert/likelihood/likely", "external/cert/remediation-cost/medium", "external/cert/priority/p6", - "external/cert/level/l2" + "external/cert/level/l2", + "coding-standards/baseline/safety" ] } ], @@ -73,7 +74,8 @@ "external/cert/likelihood/unlikely", "external/cert/remediation-cost/medium", "external/cert/priority/p4", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/cpp/ImportMisra23.json b/rule_packages/cpp/ImportMisra23.json index 243fc7cc20..7262cbcbe1 100644 --- a/rule_packages/cpp/ImportMisra23.json +++ b/rule_packages/cpp/ImportMisra23.json @@ -38,7 +38,8 @@ "shared_implementation_short_name": "OneDefinitionRuleViolation", "tags": [ "correctness", - "scope/system" + "scope/system", + "coding-standards/baseline/safety" ] } ], @@ -118,7 +119,8 @@ "shared_implementation_short_name": "RemoveConstOrVolatileQualification", "tags": [ "correctness", - "scope/single-translation-unit" + "scope/single-translation-unit", + "coding-standards/baseline/style" ] } ], @@ -141,7 +143,8 @@ "tags": [ "readability", "maintainability", - "scope/single-translation-unit" + "scope/single-translation-unit", + "coding-standards/baseline/safety" ] } ], @@ -298,7 +301,8 @@ "tags": [ "correctness", "readability", - "scope/single-translation-unit" + "scope/single-translation-unit", + "coding-standards/baseline/safety" ] } ], @@ -516,7 +520,8 @@ "short_name": "CommaOperatorShouldNotBeUsed", "shared_implementation_short_name": "CommaOperatorUsed", "tags": [ - "scope/single-translation-unit" + "scope/single-translation-unit", + "coding-standards/baseline/style" ] } ], @@ -701,7 +706,8 @@ "short_name": "VirtualAndNonVirtualClassInTheHierarchy", "shared_implementation_short_name": "VirtualAndNonVirtualClassInTheHierarchy", "tags": [ - "scope/single-translation-unit" + "scope/single-translation-unit", + "coding-standards/baseline/safety" ] } ], @@ -764,7 +770,8 @@ "short_name": "ObjectsDynamicTypeUsedFromConstructorOrDestructor", "shared_implementation_short_name": "ObjectsDynamicTypeUsedFromConstructorOrDestructor", "tags": [ - "scope/system" + "scope/system", + "coding-standards/baseline/style" ] } ], @@ -785,7 +792,8 @@ "short_name": "InitializeAllVirtualBaseClasses", "shared_implementation_short_name": "InitializeAllVirtualBaseClasses", "tags": [ - "scope/single-translation-unit" + "scope/single-translation-unit", + "coding-standards/baseline/style" ] } ], @@ -806,7 +814,8 @@ "short_name": "InitializerListConstructorIsTheOnlyConstructor", "shared_implementation_short_name": "InitializerListConstructorIsTheOnlyConstructor", "tags": [ - "scope/single-translation-unit" + "scope/single-translation-unit", + "coding-standards/baseline/style" ] } ], @@ -827,7 +836,8 @@ "short_name": "AddressOfOperatorOverloaded", "shared_implementation_short_name": "AddressOfOperatorOverloaded", "tags": [ - "scope/single-translation-unit" + "scope/single-translation-unit", + "coding-standards/baseline/style" ] } ], @@ -911,7 +921,8 @@ "short_name": "NoexceptFunctionShouldNotPropagateToTheCaller", "shared_implementation_short_name": "NoexceptFunctionShouldNotPropagateToTheCaller", "tags": [ - "scope/system" + "scope/system", + "coding-standards/baseline/style" ] } ], @@ -1202,7 +1213,8 @@ "short_name": "BackslashCharacterMisuse", "shared_implementation_short_name": "BackslashCharacterMisuse", "tags": [ - "scope/single-translation-unit" + "scope/single-translation-unit", + "coding-standards/baseline/safety" ] } ], @@ -1223,7 +1235,8 @@ "short_name": "NonTerminatedEscapeSequences", "shared_implementation_short_name": "NonTerminatedEscapeSequences", "tags": [ - "scope/single-translation-unit" + "scope/single-translation-unit", + "coding-standards/baseline/safety" ] } ], @@ -1244,7 +1257,8 @@ "short_name": "OctalConstantsUsed", "shared_implementation_short_name": "UseOfNonZeroOctalLiteral", "tags": [ - "scope/single-translation-unit" + "scope/single-translation-unit", + "coding-standards/baseline/safety" ] } ], @@ -1265,7 +1279,8 @@ "short_name": "UnsignedIntegerLiteralsNotAppropriatelySuffixed", "shared_implementation_short_name": "UnsignedIntegerLiteralsNotAppropriatelySuffixed", "tags": [ - "scope/single-translation-unit" + "scope/single-translation-unit", + "coding-standards/baseline/safety" ] } ], @@ -1286,7 +1301,8 @@ "short_name": "LowercaseLStartsInLiteralSuffix", "shared_implementation_short_name": "LowercaseLStartsInLiteralSuffix", "tags": [ - "scope/single-translation-unit" + "scope/single-translation-unit", + "coding-standards/baseline/safety" ] } ], @@ -1581,7 +1597,8 @@ "short_name": "CastsBetweenAPointerToFunctionAndAnyOtherType", "shared_implementation_short_name": "CastsBetweenAPointerToFunctionAndAnyOtherType", "tags": [ - "scope/single-translation-unit" + "scope/single-translation-unit", + "coding-standards/baseline/style" ] } ], @@ -1602,7 +1619,8 @@ "short_name": "ReinterpretCastShallNotBeUsed", "shared_implementation_short_name": "ReinterpretCastUsed", "tags": [ - "scope/single-translation-unit" + "scope/single-translation-unit", + "coding-standards/baseline/style" ] } ], @@ -1623,7 +1641,8 @@ "short_name": "UnsignedOperationWithConstantOperandsWraps", "shared_implementation_short_name": "UnsignedOperationWithConstantOperandsWraps", "tags": [ - "scope/single-translation-unit" + "scope/single-translation-unit", + "coding-standards/baseline/style" ] } ], @@ -1667,7 +1686,8 @@ "tags": [ "maintainability", "readability", - "scope/single-translation-unit" + "scope/single-translation-unit", + "coding-standards/baseline/safety" ] }, { @@ -1681,7 +1701,8 @@ "tags": [ "maintainability", "readability", - "scope/single-translation-unit" + "scope/single-translation-unit", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/cpp/Includes.json b/rule_packages/cpp/Includes.json index 1d7f97ed04..b098f47ea6 100644 --- a/rule_packages/cpp/Includes.json +++ b/rule_packages/cpp/Includes.json @@ -45,7 +45,8 @@ "tags": [ "correctness", "maintainability", - "readability" + "readability", + "coding-standards/baseline/safety" ] } ], @@ -71,7 +72,8 @@ "short_name": "HeaderFileExpectedFileNameExtension", "tags": [ "maintainability", - "readability" + "readability", + "coding-standards/baseline/style" ] } ], @@ -97,7 +99,8 @@ "short_name": "FileNameExtensionCpp", "tags": [ "maintainability", - "readability" + "readability", + "coding-standards/baseline/style" ] } ], diff --git a/rule_packages/cpp/Inheritance.json b/rule_packages/cpp/Inheritance.json index fc4805fc21..823266407f 100644 --- a/rule_packages/cpp/Inheritance.json +++ b/rule_packages/cpp/Inheritance.json @@ -17,7 +17,9 @@ "precision": "low", "severity": "recommendation", "short_name": "PublicInheritanceNotUsedForIsARelationship", - "tags": [] + "tags": [ + "coding-standards/baseline/style" + ] } ], "title": "Public inheritance shall be used to implement 'is-a' relationship." @@ -146,7 +148,9 @@ "severity": "warning", "short_name": "AccessibleBaseClassBothVirtualAndNonVirtualInHierarchy", "shared_implementation_short_name": "VirtualAndNonVirtualClassInTheHierarchy", - "tags": [] + "tags": [ + "coding-standards/baseline/safety" + ] } ], "title": "An accessible base class shall not be both virtual and non-virtual in the same hierarchy." @@ -189,7 +193,9 @@ "severity": "error", "short_name": "DynamicTypeOfThisUsedFromConstructorOrDestructor", "shared_implementation_short_name": "ObjectsDynamicTypeUsedFromConstructorOrDestructor", - "tags": [] + "tags": [ + "coding-standards/baseline/safety" + ] } ], "title": "An object's dynamic type shall not be used from the body of its constructor or destructor." @@ -234,7 +240,8 @@ "external/cert/likelihood/unlikely", "external/cert/remediation-cost/medium", "external/cert/priority/p2", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ] } ], @@ -257,7 +264,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/medium", "external/cert/priority/p4", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ] } ], @@ -280,7 +288,8 @@ "external/cert/likelihood/likely", "external/cert/remediation-cost/low", "external/cert/priority/p9", - "external/cert/level/l2" + "external/cert/level/l2", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/cpp/Initialization.json b/rule_packages/cpp/Initialization.json index e81160a273..525f70e367 100644 --- a/rule_packages/cpp/Initialization.json +++ b/rule_packages/cpp/Initialization.json @@ -92,7 +92,9 @@ "short_name": "ConstructorWithFundamentalArgMissingExplicit", "tags": [ "readability", - "maintainability" + "maintainability", + "coding-standards/baseline/safety", + "coding-standards/baseline/style" ] } ], @@ -162,7 +164,8 @@ "short_name": "MoveConstructorUsesCopySemantics", "tags": [ "maintainability", - "performance" + "performance", + "coding-standards/baseline/safety" ] } ], @@ -308,7 +311,8 @@ "shared_implementation_short_name": "InitializerListConstructorIsTheOnlyConstructor", "tags": [ "readability", - "maintainability" + "maintainability", + "coding-standards/baseline/style" ] } ], @@ -422,7 +426,8 @@ "external/cert/likelihood/unlikely", "external/cert/remediation-cost/medium", "external/cert/priority/p2", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ] } ], @@ -447,7 +452,8 @@ "external/cert/likelihood/likely", "external/cert/remediation-cost/low", "external/cert/priority/p18", - "external/cert/level/l1" + "external/cert/level/l1", + "coding-standards/baseline/safety" ] } ], @@ -475,7 +481,8 @@ "external/cert/likelihood/unlikely", "external/cert/remediation-cost/medium", "external/cert/priority/p4", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/style" ] } ], diff --git a/rule_packages/cpp/Invariants.json b/rule_packages/cpp/Invariants.json index 215e4edff4..486d71965b 100644 --- a/rule_packages/cpp/Invariants.json +++ b/rule_packages/cpp/Invariants.json @@ -92,7 +92,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/high", "external/cert/priority/p6", - "external/cert/level/l2" + "external/cert/level/l2", + "coding-standards/baseline/safety" ] } ], @@ -116,7 +117,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/high", "external/cert/priority/p2", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ] }, { @@ -132,7 +134,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/high", "external/cert/priority/p2", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/cpp/Iterators.json b/rule_packages/cpp/Iterators.json index c345adb371..48f82ad6c9 100644 --- a/rule_packages/cpp/Iterators.json +++ b/rule_packages/cpp/Iterators.json @@ -16,7 +16,9 @@ "precision": "very-high", "severity": "recommendation", "short_name": "IteratorImplicitlyConvertedToConstIterator", - "tags": [] + "tags": [ + "coding-standards/baseline/safety" + ] } ], "title": "An iterator shall not be implicitly converted to const_iterator." @@ -66,7 +68,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/high", "external/cert/priority/p6", - "external/cert/level/l2" + "external/cert/level/l2", + "coding-standards/baseline/safety" ] } ], @@ -90,7 +93,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/high", "external/cert/priority/p6", - "external/cert/level/l2" + "external/cert/level/l2", + "coding-standards/baseline/safety" ] } ], @@ -114,7 +118,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/medium", "external/cert/priority/p8", - "external/cert/level/l2" + "external/cert/level/l2", + "coding-standards/baseline/safety" ] } ], @@ -138,7 +143,8 @@ "external/cert/likelihood/likely", "external/cert/remediation-cost/medium", "external/cert/priority/p18", - "external/cert/level/l1" + "external/cert/level/l1", + "coding-standards/baseline/safety" ] } ], @@ -163,7 +169,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/high", "external/cert/priority/p6", - "external/cert/level/l2" + "external/cert/level/l2", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/cpp/Lambdas.json b/rule_packages/cpp/Lambdas.json index 8f973c361f..d488ce3917 100644 --- a/rule_packages/cpp/Lambdas.json +++ b/rule_packages/cpp/Lambdas.json @@ -17,7 +17,8 @@ "severity": "warning", "short_name": "ImplicitLambdaCapture", "tags": [ - "readability" + "readability", + "coding-standards/baseline/style" ] } ], @@ -40,7 +41,8 @@ "severity": "warning", "short_name": "LambdaExpressionWithoutParameterList", "tags": [ - "readability" + "readability", + "coding-standards/baseline/style" ] } ], @@ -158,7 +160,8 @@ "severity": "recommendation", "short_name": "LambdaExpressionInLambdaExpression", "tags": [ - "readability" + "readability", + "coding-standards/baseline/style" ] } ], @@ -182,7 +185,8 @@ "short_name": "IdenticalLambdaExpressions", "tags": [ "readability", - "maintainability" + "maintainability", + "coding-standards/baseline/style" ] } ], @@ -228,7 +232,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/high", "external/cert/priority/p6", - "external/cert/level/l2" + "external/cert/level/l2", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/cpp/Literals.json b/rule_packages/cpp/Literals.json index 7721b7dd6a..5dcb35cb3d 100644 --- a/rule_packages/cpp/Literals.json +++ b/rule_packages/cpp/Literals.json @@ -16,7 +16,8 @@ "severity": "recommendation", "short_name": "UseCorrectIntervalForDigitSequencesSeparators", "tags": [ - "readability" + "readability", + "coding-standards/baseline/style" ] } ], @@ -41,7 +42,8 @@ "short_name": "EscapeSequenceOutsideISO", "shared_implementation_short_name": "BackslashCharacterMisuse", "tags": [ - "correctness" + "correctness", + "coding-standards/baseline/safety" ] } ], @@ -146,7 +148,8 @@ "severity": "recommendation", "short_name": "UseOfNonZeroOctalEscape", "tags": [ - "readability" + "readability", + "coding-standards/baseline/style" ] } ], @@ -222,7 +225,8 @@ "severity": "recommendation", "short_name": "NullUsedAsIntegerValue", "tags": [ - "readability" + "readability", + "coding-standards/baseline/style" ] } ], @@ -244,7 +248,8 @@ "severity": "recommendation", "short_name": "LiteralZeroUsedAsNullPointerConstant", "tags": [ - "readability" + "readability", + "coding-standards/baseline/style" ] } ], diff --git a/rule_packages/cpp/Loops.json b/rule_packages/cpp/Loops.json index 39421074b3..1dddf9fee0 100644 --- a/rule_packages/cpp/Loops.json +++ b/rule_packages/cpp/Loops.json @@ -17,7 +17,8 @@ "severity": "recommendation", "short_name": "UnusedLoopCounterForContainerIteration", "tags": [ - "maintainability" + "maintainability", + "coding-standards/baseline/style" ] } ], @@ -126,7 +127,9 @@ "precision": "very-high", "severity": "error", "short_name": "NotEqualsInLoopCondition", - "tags": [] + "tags": [ + "coding-standards/baseline/safety" + ] } ], "title": "If loop-counter is not modified by or ++, then, within condition, the loop-counter shall only be used as an operand to <=, <, > or >=." @@ -147,7 +150,9 @@ "precision": "very-high", "severity": "error", "short_name": "LoopCounterModifiedWithinCondition", - "tags": [] + "tags": [ + "coding-standards/baseline/safety" + ] }, { "description": "The loop-counter shall not be modified within a statement.", @@ -156,7 +161,9 @@ "precision": "very-high", "severity": "error", "short_name": "LoopCounterModifiedWithinStatement", - "tags": [] + "tags": [ + "coding-standards/baseline/safety" + ] } ], "title": "The loop-counter shall not be modified within condition or statement." @@ -177,7 +184,9 @@ "precision": "very-high", "severity": "error", "short_name": "IrregularLoopCounterModification", - "tags": [] + "tags": [ + "coding-standards/baseline/safety" + ] } ], "title": "The loop-counter should be modified by one of: --, ++, -=n, or +=n, where n remains constant for the duration of the loop." @@ -198,7 +207,9 @@ "precision": "very-high", "severity": "error", "short_name": "LoopControlVariableModifiedInLoopCondition", - "tags": [] + "tags": [ + "coding-standards/baseline/safety" + ] }, { "description": "A loop-control-variable other than the loop-counter shall not be modified within an expression.", @@ -207,7 +218,9 @@ "precision": "very-high", "severity": "error", "short_name": "LoopControlVariableModifiedInLoopExpression", - "tags": [] + "tags": [ + "coding-standards/baseline/safety" + ] } ], "title": "A loop-control-variable other than the loop-counter shall not be modified within a condition or an expression." diff --git a/rule_packages/cpp/Macros.json b/rule_packages/cpp/Macros.json index 4ed3cf84b6..5e244b0b3d 100644 --- a/rule_packages/cpp/Macros.json +++ b/rule_packages/cpp/Macros.json @@ -43,7 +43,9 @@ "short_name": "CharactersOccurInHeaderFileNameOrInIncludeDirective", "shared_implementation_short_name": "PreprocessorIncludesForbiddenHeaderNames", "tags": [ - "correctness" + "correctness", + "coding-standards/baseline/safety", + "coding-standards/baseline/style" ], "implementation_scope": { "description": "This query identifies the use of the ', \\, /*, // characters in header file names. The query is not able to detect the use of the \" character in header file names.", @@ -70,7 +72,8 @@ "severity": "warning", "short_name": "ErrorDirectiveUsed", "tags": [ - "readability" + "readability", + "coding-standards/baseline/style" ] } ], @@ -118,7 +121,8 @@ "short_name": "IncludeDirectivesNotPrecededByDirectivesOrComments", "shared_implementation_short_name": "PreprocessorIncludesPreceded", "tags": [ - "readability" + "readability", + "coding-standards/baseline/safety" ] } ], @@ -247,7 +251,8 @@ "severity": "error", "short_name": "DefinedPreProcessorOperatorInOneOfTheTwoStandardForms", "tags": [ - "correctness" + "correctness", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/cpp/MoveForward.json b/rule_packages/cpp/MoveForward.json index 6f071a6f53..5b726560c3 100644 --- a/rule_packages/cpp/MoveForward.json +++ b/rule_packages/cpp/MoveForward.json @@ -42,7 +42,8 @@ "short_name": "ForwardingValuesToOtherFunctions", "shared_implementation_short_name": "ForwardingReferencesAndForwardNotUsedTogether", "tags": [ - "correctness" + "correctness", + "coding-standards/baseline/style" ] } ], @@ -65,7 +66,8 @@ "severity": "error", "short_name": "MoveUsedOnConstObjects", "tags": [ - "correctness" + "correctness", + "coding-standards/baseline/safety" ] } ], @@ -87,7 +89,9 @@ "precision": "very-high", "severity": "error", "short_name": "ArgumentToForwardSubsequentlyUsed", - "tags": [] + "tags": [ + "coding-standards/baseline/safety" + ] } ], "title": "An argument to std::forward shall not be subsequently used." @@ -109,7 +113,8 @@ "severity": "error", "short_name": "MoveFromConsumeParametersRvalRef", "tags": [ - "correctness" + "correctness", + "coding-standards/baseline/style" ] } ], @@ -132,7 +137,8 @@ "severity": "error", "short_name": "ForwardForwardingReferences", "tags": [ - "correctness" + "correctness", + "coding-standards/baseline/style" ] } ], @@ -159,7 +165,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/medium", "external/cert/priority/p8", - "external/cert/level/l2" + "external/cert/level/l2", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/cpp/Naming.json b/rule_packages/cpp/Naming.json index 34a9f2c66e..423819f025 100644 --- a/rule_packages/cpp/Naming.json +++ b/rule_packages/cpp/Naming.json @@ -177,7 +177,8 @@ "short_name": "UniversalCharacterNamesUsedOutsideCharacterOrStringLiterals", "tags": [ "maintainability", - "readability" + "readability", + "coding-standards/baseline/style" ] } ], diff --git a/rule_packages/cpp/Null.json b/rule_packages/cpp/Null.json index 543552660c..cfbd760843 100644 --- a/rule_packages/cpp/Null.json +++ b/rule_packages/cpp/Null.json @@ -18,7 +18,8 @@ "short_name": "NullPointersDereferenced", "shared_implementation_short_name": "DereferenceOfNullPointer", "tags": [ - "correctness" + "correctness", + "coding-standards/baseline/safety" ] } ], @@ -68,7 +69,8 @@ "external/cert/likelihood/likely", "external/cert/remediation-cost/medium", "external/cert/priority/p18", - "external/cert/level/l1" + "external/cert/level/l1", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/cpp/OperatorInvariants.json b/rule_packages/cpp/OperatorInvariants.json index 5eaefd68c8..e8780b1206 100644 --- a/rule_packages/cpp/OperatorInvariants.json +++ b/rule_packages/cpp/OperatorInvariants.json @@ -64,7 +64,9 @@ "severity": "error", "short_name": "AssignmentOperatorReturnThis", "tags": [ - "correctness" + "correctness", + "coding-standards/baseline/safety", + "coding-standards/baseline/style" ] } ], @@ -110,7 +112,8 @@ "severity": "recommendation", "short_name": "OppositeOperatorsNotDefinedInTermsOfOther", "tags": [ - "correctness" + "correctness", + "coding-standards/baseline/safety" ] } ], @@ -182,7 +185,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/high", "external/cert/priority/p2", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ] } ], @@ -206,7 +210,8 @@ "external/cert/likelihood/likely", "external/cert/remediation-cost/low", "external/cert/priority/p9", - "external/cert/level/l2" + "external/cert/level/l2", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/cpp/Operators.json b/rule_packages/cpp/Operators.json index 76be8a732a..5ab17abe4d 100644 --- a/rule_packages/cpp/Operators.json +++ b/rule_packages/cpp/Operators.json @@ -17,7 +17,8 @@ "severity": "error", "short_name": "UserDefinedAssignmentOperatorVirtual", "tags": [ - "correctness" + "correctness", + "coding-standards/baseline/safety" ] } ], @@ -149,7 +150,9 @@ "severity": "error", "short_name": "UserDefinedConversionOperatorsNotDefinedExplicit", "tags": [ - "correctness" + "correctness", + "coding-standards/baseline/safety", + "coding-standards/baseline/style" ] } ], @@ -255,7 +258,9 @@ "precision": "very-high", "severity": "error", "short_name": "CommaOperatorAndOperatorAndTheOperatorOverloaded", - "tags": [] + "tags": [ + "coding-standards/baseline/safety" + ] } ], "title": "The comma operator, && operator and the || operator shall not be overloaded." @@ -298,7 +303,9 @@ "severity": "error", "short_name": "UnaryMinusOperatorAppliedToAnExpressionWhoseUnderlyingTypeIsUnsigned", "shared_implementation_short_name": "BuiltInUnaryOperatorAppliedToUnsignedExpression", - "tags": [] + "tags": [ + "coding-standards/baseline/safety" + ] } ], "title": "The unary minus operator shall not be applied to an expression whose underlying type is unsigned." @@ -320,7 +327,9 @@ "severity": "error", "short_name": "UnaryOperatorOverloaded", "shared_implementation_short_name": "AddressOfOperatorOverloaded", - "tags": [] + "tags": [ + "coding-standards/baseline/safety" + ] } ], "title": "The unary & operator shall not be overloaded." diff --git a/rule_packages/cpp/OrderOfEvaluation.json b/rule_packages/cpp/OrderOfEvaluation.json index 00ec0dbc65..eb49543f5f 100644 --- a/rule_packages/cpp/OrderOfEvaluation.json +++ b/rule_packages/cpp/OrderOfEvaluation.json @@ -64,7 +64,8 @@ "severity": "warning", "short_name": "ExplicitConstructionOfUnnamedTemporary", "tags": [ - "correctness" + "correctness", + "coding-standards/baseline/safety" ] } ], @@ -124,7 +125,9 @@ "short_name": "IncrementAndDecrementOperatorsMixedWithOtherOperatorsInExpression", "tags": [ "readability", - "correctness" + "correctness", + "coding-standards/baseline/safety", + "coding-standards/baseline/style" ] } ], @@ -147,7 +150,8 @@ "severity": "warning", "short_name": "AssignmentInSubExpression", "tags": [ - "correctness" + "correctness", + "coding-standards/baseline/style" ] } ], diff --git a/rule_packages/cpp/OutOfBounds.json b/rule_packages/cpp/OutOfBounds.json index 2a657df95c..9bfdc29bc9 100644 --- a/rule_packages/cpp/OutOfBounds.json +++ b/rule_packages/cpp/OutOfBounds.json @@ -72,7 +72,8 @@ "external/cert/likelihood/likely", "external/cert/remediation-cost/medium", "external/cert/priority/p18", - "external/cert/level/l1" + "external/cert/level/l1", + "coding-standards/baseline/safety" ] } ], @@ -97,7 +98,8 @@ "external/cert/likelihood/unlikely", "external/cert/remediation-cost/medium", "external/cert/priority/p6", - "external/cert/level/l2" + "external/cert/level/l2", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/cpp/Pointers.json b/rule_packages/cpp/Pointers.json index 3815ba521c..5840d8d18f 100644 --- a/rule_packages/cpp/Pointers.json +++ b/rule_packages/cpp/Pointers.json @@ -17,7 +17,8 @@ "severity": "error", "short_name": "PointerToAnElementOfAnArrayPassedToASmartPointer", "tags": [ - "correctness" + "correctness", + "coding-standards/baseline/safety" ] } ], @@ -42,7 +43,8 @@ "shared_implementation_short_name": "DoNotUseMoreThanTwoLevelsOfPointerIndirection", "tags": [ "readability", - "maintainability" + "maintainability", + "coding-standards/baseline/safety" ] } ], @@ -113,7 +115,8 @@ "short_name": "DeletingPointerToIncompleteType", "shared_implementation_short_name": "DeleteOfPointerToIncompleteClass", "tags": [ - "correctness" + "correctness", + "coding-standards/baseline/safety" ] } ], @@ -137,7 +140,8 @@ "short_name": "PointerToMemberAccessNonExistentClassMembers", "shared_implementation_short_name": "AccessOfNonExistingMemberThroughPointerToMember", "tags": [ - "correctness" + "correctness", + "coding-standards/baseline/safety" ] }, { @@ -161,7 +165,8 @@ "short_name": "UninitializedStaticPointerToMemberUse", "shared_implementation_short_name": "AccessOfUndefinedMemberThroughUninitializedStaticPointer", "tags": [ - "correctness" + "correctness", + "coding-standards/baseline/safety" ] } ], @@ -210,7 +215,8 @@ "short_name": "PointerAndDerivedPointerAccessDifferentArray", "shared_implementation_short_name": "DoNotUsePointerArithmeticToAddressDifferentArrays", "tags": [ - "correctness" + "correctness", + "coding-standards/baseline/safety" ] } ], @@ -234,7 +240,8 @@ "short_name": "PointerSubtractionOnDifferentArrays", "shared_implementation_short_name": "DoNotSubtractPointersAddressingDifferentArrays", "tags": [ - "correctness" + "correctness", + "coding-standards/baseline/safety" ] } ], @@ -305,7 +312,8 @@ "severity": "error", "short_name": "PointerToAVirtualBaseClassCastToAPointer", "tags": [ - "correctness" + "correctness", + "coding-standards/baseline/safety" ], "shared_implementation_short_name": "PointerToAVirtualBaseClassCastToAPointer" } @@ -402,7 +410,8 @@ "external/cert/likelihood/likely", "external/cert/remediation-cost/high", "external/cert/priority/p9", - "external/cert/level/l2" + "external/cert/level/l2", + "coding-standards/baseline/safety" ] } ], @@ -427,7 +436,8 @@ "external/cert/likelihood/unlikely", "external/cert/remediation-cost/medium", "external/cert/priority/p4", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ] }, { @@ -468,7 +478,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/high", "external/cert/priority/p6", - "external/cert/level/l2" + "external/cert/level/l2", + "coding-standards/baseline/safety" ] }, { @@ -485,7 +496,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/high", "external/cert/priority/p6", - "external/cert/level/l2" + "external/cert/level/l2", + "coding-standards/baseline/safety" ] }, { @@ -502,7 +514,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/high", "external/cert/priority/p6", - "external/cert/level/l2" + "external/cert/level/l2", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/cpp/Representation.json b/rule_packages/cpp/Representation.json index 813373afb4..bf2eaf1835 100644 --- a/rule_packages/cpp/Representation.json +++ b/rule_packages/cpp/Representation.json @@ -86,7 +86,8 @@ "severity": "error", "short_name": "UnderlyingBitRepresentationsOfFloatingPointValuesUsed", "tags": [ - "correctness" + "correctness", + "coding-standards/baseline/safety" ] } ], @@ -136,7 +137,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/high", "external/cert/priority/p6", - "external/cert/level/l2" + "external/cert/level/l2", + "coding-standards/baseline/safety" ] }, { @@ -153,7 +155,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/high", "external/cert/priority/p6", - "external/cert/level/l2" + "external/cert/level/l2", + "coding-standards/baseline/safety" ] }, { @@ -169,7 +172,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/high", "external/cert/priority/p6", - "external/cert/level/l2" + "external/cert/level/l2", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/cpp/Scope.json b/rule_packages/cpp/Scope.json index 6fc3aa8487..f612072b98 100644 --- a/rule_packages/cpp/Scope.json +++ b/rule_packages/cpp/Scope.json @@ -42,7 +42,8 @@ "severity": "warning", "short_name": "ExternalLinkageArrayWithoutExplicitSize", "tags": [ - "correctness" + "correctness", + "coding-standards/baseline/style" ] } ], @@ -114,7 +115,8 @@ "short_name": "OneDefinitionRuleViolation", "shared_implementation_short_name": "OneDefinitionRuleViolation", "tags": [ - "correctness" + "correctness", + "coding-standards/baseline/style" ] } ], @@ -185,7 +187,8 @@ "short_name": "MissingStaticSpecifierOnFunctionRedeclaration", "shared_implementation_short_name": "MissingStaticSpecifierFunctionRedeclarationShared", "tags": [ - "readability" + "readability", + "coding-standards/baseline/safety" ] } ], @@ -259,7 +262,8 @@ "external/cert/likelihood/unlikely", "external/cert/remediation-cost/medium", "external/cert/priority/p2", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/style" ] }, { @@ -275,7 +279,9 @@ "external/cert/likelihood/unlikely", "external/cert/remediation-cost/medium", "external/cert/priority/p2", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety", + "coding-standards/baseline/style" ] } ], @@ -299,7 +305,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/low", "external/cert/priority/p6", - "external/cert/level/l2" + "external/cert/level/l2", + "coding-standards/baseline/safety" ] } ], @@ -324,7 +331,8 @@ "external/cert/likelihood/unlikely", "external/cert/remediation-cost/medium", "external/cert/priority/p6", - "external/cert/level/l2" + "external/cert/level/l2", + "coding-standards/baseline/style" ] } ], @@ -348,7 +356,8 @@ "external/cert/likelihood/unlikely", "external/cert/remediation-cost/medium", "external/cert/priority/p4", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/style" ] } ], diff --git a/rule_packages/cpp/SmartPointers1.json b/rule_packages/cpp/SmartPointers1.json index ea062b5a7c..ebbde0f156 100644 --- a/rule_packages/cpp/SmartPointers1.json +++ b/rule_packages/cpp/SmartPointers1.json @@ -38,7 +38,10 @@ "precision": "high", "severity": "warning", "short_name": "UniquePtrNotUsedToRepresentExclusiveOwnership", - "tags": ["maintainability"] + "tags": [ + "maintainability", + "coding-standards/baseline/safety" + ] } ], "title": "A std::unique_ptr shall be used to represent exclusive ownership." diff --git a/rule_packages/cpp/Strings.json b/rule_packages/cpp/Strings.json index acccdc7753..18654684c5 100644 --- a/rule_packages/cpp/Strings.json +++ b/rule_packages/cpp/Strings.json @@ -18,7 +18,9 @@ "precision": "very-high", "severity": "warning", "short_name": "StringLiteralsAssignedToNonConstantPointers", - "tags": [] + "tags": [ + "coding-standards/baseline/safety" + ] } ], "title": "String literals shall not be assigned to non-constant pointers." @@ -138,7 +140,8 @@ "external/cert/likelihood/likely", "external/cert/remediation-cost/medium", "external/cert/priority/p18", - "external/cert/level/l1" + "external/cert/level/l1", + "coding-standards/baseline/safety" ] }, { @@ -154,7 +157,8 @@ "external/cert/likelihood/likely", "external/cert/remediation-cost/medium", "external/cert/priority/p18", - "external/cert/level/l1" + "external/cert/level/l1", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/cpp/Templates.json b/rule_packages/cpp/Templates.json index a6520a7780..3c5ae351d9 100644 --- a/rule_packages/cpp/Templates.json +++ b/rule_packages/cpp/Templates.json @@ -43,7 +43,8 @@ "short_name": "TemplateConstructorOverloadResolution", "tags": [ "maintainability", - "readability" + "readability", + "coding-standards/baseline/style" ] } ], @@ -90,7 +91,8 @@ "short_name": "TemplateSpecializationNotDeclaredInTheSameFile", "tags": [ "maintainability", - "readability" + "readability", + "coding-standards/baseline/style" ] } ], @@ -150,7 +152,8 @@ "short_name": "CopyAssignmentOperatorNotDeclared", "tags": [ "maintainability", - "readability" + "readability", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/cpp/Toolchain.json b/rule_packages/cpp/Toolchain.json index 251bd9cf05..8fdc0ff5f1 100644 --- a/rule_packages/cpp/Toolchain.json +++ b/rule_packages/cpp/Toolchain.json @@ -65,7 +65,8 @@ "severity": "warning", "short_name": "IncrementOperatorWithBoolOperandIsDeprecated", "tags": [ - "maintainability" + "maintainability", + "coding-standards/baseline/style" ] }, { @@ -76,7 +77,8 @@ "severity": "warning", "short_name": "RegisterKeywordIsDeprecated", "tags": [ - "maintainability" + "maintainability", + "coding-standards/baseline/style" ] }, { @@ -87,7 +89,8 @@ "severity": "warning", "short_name": "ImplicitCopyConstructorIsDeprecated", "tags": [ - "maintainability" + "maintainability", + "coding-standards/baseline/style" ] }, { @@ -98,7 +101,8 @@ "severity": "warning", "short_name": "ImplicitCopyAssignmentOperatorIsDeprecated", "tags": [ - "maintainability" + "maintainability", + "coding-standards/baseline/style" ] }, { @@ -109,7 +113,8 @@ "severity": "warning", "short_name": "DynamicExceptionsAreDeprecated", "tags": [ - "maintainability" + "maintainability", + "coding-standards/baseline/style" ] }, { @@ -120,7 +125,8 @@ "severity": "warning", "short_name": "CStandardLibraryHeadersAreDeprecated", "tags": [ - "maintainability" + "maintainability", + "coding-standards/baseline/style" ] }, { @@ -131,7 +137,8 @@ "severity": "warning", "short_name": "StrstreamTypesAreDeprecated", "tags": [ - "maintainability" + "maintainability", + "coding-standards/baseline/style" ] } ], diff --git a/rule_packages/cpp/TypeRanges.json b/rule_packages/cpp/TypeRanges.json index 1e8ef914bf..f9ae04efef 100644 --- a/rule_packages/cpp/TypeRanges.json +++ b/rule_packages/cpp/TypeRanges.json @@ -42,7 +42,8 @@ "shared_implementation_short_name": "StringNumberConversionMissingErrorCheck", "short_name": "StringNumberConversionMissingErrorCheck", "tags": [ - "correctness" + "correctness", + "coding-standards/baseline/safety" ] }, { @@ -53,7 +54,8 @@ "severity": "warning", "short_name": "UseOfUnsafeCStringToNumberConversion", "tags": [ - "correctness" + "correctness", + "coding-standards/baseline/safety" ] } ], @@ -76,7 +78,8 @@ "severity": "error", "short_name": "SignedValPassedToChar", "tags": [ - "correctness" + "correctness", + "coding-standards/baseline/safety" ] } ], @@ -162,7 +165,8 @@ "short_name": "IntegerUsedForEnum", "tags": [ "maintainability", - "readability" + "readability", + "coding-standards/baseline/style" ] } ], @@ -189,7 +193,8 @@ "external/cert/likelihood/unlikely", "external/cert/remediation-cost/medium", "external/cert/priority/p4", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/cpp/Uninitialized.json b/rule_packages/cpp/Uninitialized.json index 1432e11603..07edc261c7 100644 --- a/rule_packages/cpp/Uninitialized.json +++ b/rule_packages/cpp/Uninitialized.json @@ -75,7 +75,8 @@ "external/cert/likelihood/probable", "external/cert/remediation-cost/medium", "external/cert/priority/p12", - "external/cert/level/l1" + "external/cert/level/l1", + "coding-standards/baseline/safety" ] } ], diff --git a/rule_packages/cpp/VirtualFunctions.json b/rule_packages/cpp/VirtualFunctions.json index eff4e15beb..d4b523aa04 100644 --- a/rule_packages/cpp/VirtualFunctions.json +++ b/rule_packages/cpp/VirtualFunctions.json @@ -109,7 +109,8 @@ "severity": "warning", "short_name": "DestructorOfABaseClassNotPublicVirtual", "tags": [ - "correctness" + "correctness", + "coding-standards/baseline/safety" ] } ], @@ -155,7 +156,8 @@ "severity": "recommendation", "short_name": "VirtualFunctionOverriddenByAPureVirtualFunction", "tags": [ - "correctness" + "correctness", + "coding-standards/baseline/safety" ] } ], @@ -179,7 +181,8 @@ "short_name": "VirtualFunctionParametersUseTheSameDefaultArguments", "shared_implementation_short_name": "OverridingShallSpecifyDifferentDefaultArguments", "tags": [ - "correctness" + "correctness", + "coding-standards/baseline/style" ] } ], diff --git a/schemas/rule-package.schema.json b/schemas/rule-package.schema.json index fff79fede0..73531cfac3 100644 --- a/schemas/rule-package.schema.json +++ b/schemas/rule-package.schema.json @@ -370,7 +370,9 @@ "external/cert/priority/p27", "external/cert/level/l1", "external/cert/level/l2", - "external/cert/level/l3" + "external/cert/level/l3", + "coding-standards/baseline/safety", + "coding-standards/baseline/style" ] }, "minLength": 1