Skip to content

Commit b7e6f9a

Browse files
authored
Merge pull request github#1183 from aibaars/fix-query-metadata
Fix queries with inconsistent `@kind` and `select` statements
2 parents 52d8ca0 + 5eb58f3 commit b7e6f9a

File tree

27 files changed

+28
-28
lines changed

27 files changed

+28
-28
lines changed

cpp/ql/src/Architecture/General Class-Level Information/HubClasses.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @name Hub classes
33
* @description Shows coupling between classes. Large, red, boxes are hub types that depend on many other classes
44
* and are depended on by many other classes.
5-
* @kind treemap
5+
* @kind table
66
* @id cpp/architecture/hub-classes
77
* @treemap.warnOn highValues
88
* @tags maintainability

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

cpp/ql/src/semmle/code/cpp/ASTSanity.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @name AST Sanity Check
33
* @description Performs sanity checks on the Abstract Syntax Tree. This query should have no results.
4-
* @kind problem
4+
* @kind table
55
* @id cpp/ast-sanity-check
66
*/
77

cpp/ql/src/semmle/code/cpp/ir/IRSanity.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @name IR Sanity Check
33
* @description Performs sanity checks on the Intermediate Representation. This query should have no results.
4-
* @kind problem
4+
* @kind table
55
* @id cpp/ir-sanity-check
66
*/
77

cpp/ql/src/semmle/code/cpp/ir/implementation/aliased_ssa/IRSanity.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @name Aliased SSA IR Sanity Check
33
* @description Performs sanity checks on the Intermediate Representation. This query should have no results.
4-
* @kind problem
4+
* @kind table
55
* @id cpp/aliased-ssa-ir-sanity-check
66
*/
77

cpp/ql/src/semmle/code/cpp/ir/implementation/raw/IRSanity.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @name Raw IR Sanity Check
33
* @description Performs sanity checks on the Intermediate Representation. This query should have no results.
4-
* @kind problem
4+
* @kind table
55
* @id cpp/raw-ir-sanity-check
66
*/
77

cpp/ql/src/semmle/code/cpp/ir/implementation/unaliased_ssa/IRSanity.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @name SSA IR Sanity Check
33
* @description Performs sanity checks on the Intermediate Representation. This query should have no results.
4-
* @kind problem
4+
* @kind table
55
* @id cpp/ssa-ir-sanity-check
66
*/
77

cpp/ql/src/semmle/code/cpp/padding/SanityCheck.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @name Padding Sanity Check
33
* @description Performs sanity checks for the padding library. This query should have no results.
4-
* @kind problem
4+
* @kind table
55
* @id cpp/padding-sanity-check
66
*/
77

python/ql/test/2/library-tests/locations/general/AllLocations.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @name All must have locations
33
* @description
4-
* @kind problem
4+
* @kind table
55
* @problem.severity error
66
*/
77

0 commit comments

Comments
 (0)