Skip to content

Commit 5c4548d

Browse files
Tag more quality queries.
Excluded for now for uncertainty: incomplete ordering, import deprecated module
1 parent 049c070 commit 5c4548d

21 files changed

+49
-32
lines changed

python/ql/src/Classes/ConflictingAttributesInBaseClasses.ql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
* @name Conflicting attributes in base classes
33
* @description When a class subclasses multiple base classes and more than one base class defines the same attribute, attribute overriding may result in unexpected behavior by instances of this class.
44
* @kind problem
5-
* @tags reliability
6-
* maintainability
7-
* modularity
5+
* @tags quality
6+
* reliability
7+
* correctness
88
* @problem.severity warning
99
* @sub-severity low
1010
* @precision high

python/ql/src/Classes/EqualsOrHash.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
* @name Inconsistent equality and hashing
33
* @description Defining equality for a class without also defining hashability (or vice-versa) violates the object model.
44
* @kind problem
5-
* @tags reliability
5+
* @tags quality
6+
* reliability
67
* correctness
78
* external/cwe/cwe-581
89
* @problem.severity warning

python/ql/src/Classes/MissingCallToDel.ql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
* @name Missing call to `__del__` during object destruction
33
* @description An omitted call to a super-class `__del__` method may lead to class instances not being cleaned up properly.
44
* @kind problem
5-
* @tags efficiency
5+
* @tags quality
6+
* reliability
67
* correctness
8+
* performance
79
* @problem.severity error
810
* @sub-severity low
911
* @precision high

python/ql/src/Classes/MissingCallToInit.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
* @name Missing call to `__init__` during object initialization
33
* @description An omitted call to a super-class `__init__` method may lead to objects of this class not being fully initialized.
44
* @kind problem
5-
* @tags reliability
5+
* @tags quality
6+
* reliability
67
* correctness
78
* @problem.severity error
89
* @sub-severity low

python/ql/src/Classes/MutatingDescriptor.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
* @name Mutation of descriptor in `__get__` or `__set__` method.
33
* @description Descriptor objects can be shared across many instances. Mutating them can cause strange side effects or race conditions.
44
* @kind problem
5-
* @tags reliability
5+
* @tags quality
6+
* reliability
67
* correctness
78
* @problem.severity error
89
* @sub-severity low

python/ql/src/Classes/SubclassShadowing.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
* method, hides the method in the subclass.
55
* @kind problem
66
* @problem.severity error
7-
* @tags maintainability
7+
* @tags quality
8+
* reliability
89
* correctness
910
* @sub-severity low
1011
* @precision high

python/ql/src/Classes/SuperclassDelCalledMultipleTimes.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
* @name Multiple calls to `__del__` during object destruction
33
* @description A duplicated call to a super-class `__del__` method may lead to class instances not be cleaned up properly.
44
* @kind problem
5-
* @tags efficiency
5+
* @tags quality
6+
* reliability
67
* correctness
78
* @problem.severity warning
89
* @sub-severity high

python/ql/src/Classes/SuperclassInitCalledMultipleTimes.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
* @name Multiple calls to `__init__` during object initialization
33
* @description A duplicated call to a super-class `__init__` method may lead to objects of this class not being properly initialized.
44
* @kind problem
5-
* @tags reliability
5+
* @tags quality
6+
* reliability
67
* correctness
78
* @problem.severity warning
89
* @sub-severity high

python/ql/src/Exceptions/IncorrectExceptOrder.ql

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
* @description Handling general exceptions before specific exceptions means that the specific
44
* handlers are never executed.
55
* @kind problem
6-
* @tags reliability
7-
* maintainability
6+
* @tags quality
7+
* reliability
8+
* error-handling
89
* external/cwe/cwe-561
910
* @problem.severity error
1011
* @sub-severity low

python/ql/src/Exceptions/NotImplementedIsNotAnException.ql

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
* @sub-severity high
77
* @precision very-high
88
* @id py/raise-not-implemented
9-
* @tags reliability
10-
* maintainability
9+
* @tags quality
10+
* reliability
11+
* error-handling
1112
*/
1213

1314
import python

0 commit comments

Comments
 (0)