File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
3.02 Code Size and Complexity Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -12,5 +12,4 @@ import cpp
1212from Function f , int c
1313where c = f .getMetrics ( ) .getCyclomaticComplexity ( ) and
1414 c > 20
15- select f , c as CyclomaticComplexity ,
16- "AV Rule 3: All functions shall have a cyclomatic complexity number of 20 or less."
15+ select f , "AV Rule 3: All functions shall have a cyclomatic complexity number of 20 or less."
Original file line number Diff line number Diff line change 33 * @description The assignment operator shall handle self-assignment correctly.
44 * @kind problem
55 * @id cpp/jsf/av-rule-81
6+ * @precision low
67 * @problem.severity error
78 * @tags correctness
89 * external/jsf
@@ -77,4 +78,4 @@ where hasResource(op.getDeclaringType())
7778 and not exists ( op .getASelfEqualityTest ( ) )
7879 and not exists ( op .getASwapCall ( ) )
7980 and exists ( op .getADeleteExpr ( ) )
80- select op
81+ select op , "AV Rule 81: The assignment operator shall handle self-assignment correctly."
You can’t perform that action at this time.
0 commit comments