Merge pull request #1190 from Semmle/rc/1.20

Merge 1.20 into master
This commit is contained in:
Jonas Jensen
2019-04-02 15:29:12 +02:00
committed by GitHub
27 changed files with 28 additions and 28 deletions

View File

@@ -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."

View File

@@ -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."