Skip to content

Commit fa5b2ef

Browse files
Tag remaining high precision quality queries
Excluded queries that are python 2 specific; as well as the cyclic import queries
1 parent 02f8ec3 commit fa5b2ef

20 files changed

+46
-27
lines changed

python/ql/src/Classes/DefineEqualsWhenAddingAttributes.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
* @name `__eq__` not overridden when adding attributes
33
* @description When adding new attributes to instances of a class, equality for that class needs to be defined.
44
* @kind problem
5-
* @tags reliability
5+
* @tags quality
6+
* reliability
67
* correctness
78
* @problem.severity warning
89
* @sub-severity high

python/ql/src/Classes/InconsistentMRO.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
* @name Inconsistent method resolution order
33
* @description Class definition will raise a type error at runtime due to inconsistent method resolution order(MRO)
44
* @kind problem
5-
* @tags reliability
5+
* @tags quality
6+
* reliability
67
* correctness
78
* @problem.severity error
89
* @sub-severity high

python/ql/src/Exceptions/IllegalExceptionHandlerType.ql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
* @name Non-exception in 'except' clause
33
* @description An exception handler specifying a non-exception type will never handle any exception.
44
* @kind problem
5-
* @tags reliability
6-
* correctness
7-
* types
5+
* @tags quality
6+
* reliability
7+
* error-handling
88
* @problem.severity error
99
* @sub-severity low
1010
* @precision very-high

python/ql/src/Expressions/Comparisons/UselessComparisonTest.ql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
* @name Redundant comparison
33
* @description The result of a comparison is implied by a previous comparison.
44
* @kind problem
5-
* @tags useless-code
5+
* @tags quality
6+
* maintainability
7+
* useless-code
68
* external/cwe/cwe-561
79
* external/cwe/cwe-570
810
* external/cwe/cwe-571

python/ql/src/Expressions/Formatting/MixedExplicitImplicitIn3101Format.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
* @description Using implicit and explicit numbering in string formatting operations, such as '"{}: {1}".format(a,b)', will raise a ValueError.
44
* @kind problem
55
* @problem.severity error
6-
* @tags reliability
6+
* @tags quality
7+
* reliability
78
* correctness
89
* @sub-severity low
910
* @precision high

python/ql/src/Expressions/Formatting/UnusedArgumentIn3101Format.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
* @name Unused argument in a formatting call
33
* @description Including surplus arguments in a formatting call makes code more difficult to read and may indicate an error.
44
* @kind problem
5-
* @tags maintainability
5+
* @tags quality
6+
* maintainability
67
* useless-code
78
* @problem.severity warning
89
* @sub-severity high

python/ql/src/Expressions/Formatting/UnusedNamedArgumentIn3101Format.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
* @name Unused named argument in formatting call
33
* @description Including surplus keyword arguments in a formatting call makes code more difficult to read and may indicate an error.
44
* @kind problem
5-
* @tags maintainability
5+
* @tags quality
6+
* maintainability
67
* useless-code
78
* @problem.severity warning
89
* @sub-severity high

python/ql/src/Expressions/Formatting/WrongNameInArgumentsFor3101Format.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
* where the names of format items in the format string differs from the names of the values to be formatted will raise a KeyError.
55
* @kind problem
66
* @problem.severity error
7-
* @tags reliability
7+
* @tags quality
8+
* reliability
89
* correctness
910
* @sub-severity low
1011
* @precision high

python/ql/src/Expressions/Formatting/WrongNumberArgumentsFor3101Format.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
* @description A string formatting operation, such as '"{0}: {1}, {2}".format(a,b)',
44
* where the number of values to be formatted is too few for the format string will raise an IndexError.
55
* @kind problem
6-
* @tags reliability
6+
* @tags quality
7+
* reliability
78
* correctness
89
* @problem.severity error
910
* @sub-severity low

python/ql/src/Expressions/Regex/BackspaceEscape.ql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
* @description Using '\b' to escape the backspace character in a regular expression is confusing
44
* since it could be mistaken for a word boundary assertion.
55
* @kind problem
6-
* @tags maintainability
6+
* @tags quality
7+
* maintainability
8+
* readability
79
* @problem.severity recommendation
810
* @sub-severity high
911
* @precision very-high

0 commit comments

Comments
 (0)