Skip to content

Commit 869e33e

Browse files
Tag 'linter-like' quality queries that use pointto
Excluded for now: unnecassary-delete; since the pattern is often intentional to break reference cycles, which the query doesn't account for; so uncertain about its claim of high precision
1 parent 5c4548d commit 869e33e

13 files changed

+30
-17
lines changed

python/ql/src/Expressions/CompareConstants.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
* @name Comparison of constants
33
* @description Comparison of constants is always constant, but is harder to read than a simple constant.
44
* @kind problem
5-
* @tags maintainability
5+
* @tags quality
6+
* maintainability
67
* useless-code
78
* external/cwe/cwe-570
89
* external/cwe/cwe-571

python/ql/src/Expressions/CompareIdenticalValues.ql

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22
* @name Comparison of identical values
33
* @description Comparison of identical values, the intent of which is unclear.
44
* @kind problem
5-
* @tags reliability
6-
* correctness
5+
* @tags quality
6+
* maintainability
77
* readability
8-
* convention
98
* external/cwe/cwe-570
109
* external/cwe/cwe-571
1110
* @problem.severity warning

python/ql/src/Expressions/CompareIdenticalValuesMissingSelf.ql

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
* @name Maybe missing 'self' in comparison
33
* @description Comparison of identical values, the intent of which is unclear.
44
* @kind problem
5-
* @tags reliability
6-
* maintainability
5+
* @tags quality
6+
* reliability
7+
* correctness
78
* external/cwe/cwe-570
89
* external/cwe/cwe-571
910
* @problem.severity warning

python/ql/src/Expressions/EqualsNone.ql

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
* @name Testing equality to None
33
* @description Testing whether an object is 'None' using the == operator is inefficient and potentially incorrect.
44
* @kind problem
5-
* @tags efficiency
6-
* maintainability
5+
* @tags quality
6+
* reliability
7+
* correctness
78
* @problem.severity recommendation
89
* @sub-severity high
910
* @precision very-high

python/ql/src/Expressions/UnnecessaryLambda.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
* @name Unnecessary lambda
33
* @description A lambda is used that calls through to a function without modifying any parameters
44
* @kind problem
5-
* @tags maintainability
5+
* @tags quality
6+
* maintainability
67
* useless-code
78
* @problem.severity recommendation
89
* @sub-severity high

python/ql/src/Functions/ExplicitReturnInInit.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
* @name `__init__` method returns a value
33
* @description Explicitly returning a value from an `__init__` method will raise a TypeError.
44
* @kind problem
5-
* @tags reliability
5+
* @tags quality
6+
* reliability
67
* correctness
78
* @problem.severity error
89
* @sub-severity low

python/ql/src/Functions/UseImplicitNoneReturnValue.ql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
* @name Use of the return value of a procedure
33
* @description The return value of a procedure (a function that does not return a value) is used. This is confusing to the reader as the value (None) has no meaning.
44
* @kind problem
5-
* @tags maintainability
5+
* @tags quality
6+
* maintainability
7+
* readability
68
* @problem.severity warning
79
* @sub-severity low
810
* @precision high

python/ql/src/Statements/StatementNoEffect.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
* @name Statement has no effect
33
* @description A statement has no effect
44
* @kind problem
5-
* @tags maintainability
5+
* @tags quality
6+
* maintainability
67
* useless-code
78
* external/cwe/cwe-561
89
* @problem.severity recommendation

python/ql/src/Statements/UnreachableCode.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
* @name Unreachable code
33
* @description Code is unreachable
44
* @kind problem
5-
* @tags maintainability
5+
* @tags quality
6+
* maintainability
67
* useless-code
78
* external/cwe/cwe-561
89
* @problem.severity warning

python/ql/src/Statements/UseOfExit.ql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
* @name Use of exit() or quit()
33
* @description exit() or quit() may fail if the interpreter is run with the -S option.
44
* @kind problem
5-
* @tags maintainability
5+
* @tags quality
6+
* reliability
7+
* correctness
68
* @problem.severity warning
79
* @sub-severity low
810
* @precision very-high

0 commit comments

Comments
 (0)