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

@@ -2,7 +2,7 @@
* @name Hub classes
* @description Shows coupling between classes. Large, red, boxes are hub types that depend on many other classes
* and are depended on by many other classes.
* @kind treemap
* @kind table
* @id cpp/architecture/hub-classes
* @treemap.warnOn highValues
* @tags maintainability

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

View File

@@ -1,7 +1,7 @@
/**
* @name AST Sanity Check
* @description Performs sanity checks on the Abstract Syntax Tree. This query should have no results.
* @kind problem
* @kind table
* @id cpp/ast-sanity-check
*/

View File

@@ -1,7 +1,7 @@
/**
* @name IR Sanity Check
* @description Performs sanity checks on the Intermediate Representation. This query should have no results.
* @kind problem
* @kind table
* @id cpp/ir-sanity-check
*/

View File

@@ -1,7 +1,7 @@
/**
* @name Aliased SSA IR Sanity Check
* @description Performs sanity checks on the Intermediate Representation. This query should have no results.
* @kind problem
* @kind table
* @id cpp/aliased-ssa-ir-sanity-check
*/

View File

@@ -1,7 +1,7 @@
/**
* @name Raw IR Sanity Check
* @description Performs sanity checks on the Intermediate Representation. This query should have no results.
* @kind problem
* @kind table
* @id cpp/raw-ir-sanity-check
*/

View File

@@ -1,7 +1,7 @@
/**
* @name SSA IR Sanity Check
* @description Performs sanity checks on the Intermediate Representation. This query should have no results.
* @kind problem
* @kind table
* @id cpp/ssa-ir-sanity-check
*/

View File

@@ -1,7 +1,7 @@
/**
* @name Padding Sanity Check
* @description Performs sanity checks for the padding library. This query should have no results.
* @kind problem
* @kind table
* @id cpp/padding-sanity-check
*/