mirror of
https://github.com/github/codeql.git
synced 2025-12-18 09:43:15 +01:00
@@ -12,5 +12,4 @@ import cpp
|
||||
from Function f, int c
|
||||
where c = f.getMetrics().getCyclomaticComplexity() and
|
||||
c > 20
|
||||
select f, c as CyclomaticComplexity,
|
||||
"AV Rule 3: All functions shall have a cyclomatic complexity number of 20 or less."
|
||||
select f, "AV Rule 3: All functions shall have a cyclomatic complexity number of 20 or less."
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
* @description The assignment operator shall handle self-assignment correctly.
|
||||
* @kind problem
|
||||
* @id cpp/jsf/av-rule-81
|
||||
* @precision low
|
||||
* @problem.severity error
|
||||
* @tags correctness
|
||||
* external/jsf
|
||||
@@ -77,4 +78,4 @@ where hasResource(op.getDeclaringType())
|
||||
and not exists(op.getASelfEqualityTest())
|
||||
and not exists(op.getASwapCall())
|
||||
and exists(op.getADeleteExpr())
|
||||
select op
|
||||
select op, "AV Rule 81: The assignment operator shall handle self-assignment correctly."
|
||||
|
||||
Reference in New Issue
Block a user