Skip to content

Commit 879a6f2

Browse files
committed
A3-1-5: Downgrade to an "audit" query
This rule talks about developer intention in a way that is not possible to determine fully automatically with any confidence. We therefore downgrade this rule to an "audit" query.
1 parent 1963eed commit 879a6f2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

cpp/autosar/src/rules/A3-1-5/NonTrivialNonTemplateFunctionDefinedInsideClassDefinition.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @precision very-high
88
* @problem.severity recommendation
99
* @tags external/autosar/id/a3-1-5
10+
* external/autosar/audit
1011
* external/autosar/allocated-target/design
1112
* external/autosar/enforcement/partially-automated
1213
* external/autosar/obligation/required

rule_packages/cpp/Classes.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,9 @@
185185
"precision": "very-high",
186186
"severity": "recommendation",
187187
"short_name": "NonTrivialNonTemplateFunctionDefinedInsideClassDefinition",
188-
"tags": []
188+
"tags": [
189+
"external/autosar/audit"
190+
]
189191
}
190192
],
191193
"title": "A function definition shall only be placed in a class definition if (1) the function is intended to be inlined (2) it is a member function template (3) it is a member function of a class template."

0 commit comments

Comments
 (0)