Skip to content

Commit 4b95fbb

Browse files
committed
C++ Fix select statements of AV 3 and 81
1 parent ba7fddd commit 4b95fbb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cpp/ql/src/jsf/3.02 Code Size and Complexity/AV Rule 3.ql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,4 @@ import cpp
1212
from Function f, int c
1313
where 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."

cpp/ql/src/jsf/4.10 Classes/AV Rule 81.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
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."

0 commit comments

Comments
 (0)