Skip to content

Commit 02f8ec3

Browse files
Tag 'type-checking'-like quality queries
1 parent 4b1d31c commit 02f8ec3

15 files changed

+32
-22
lines changed

python/ql/src/Classes/WrongNameForArgumentInClassInstantiation.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
* parameter of the __init__ method of the class being
55
* instantiated, will result in a TypeError at runtime.
66
* @kind problem
7-
* @tags reliability
7+
* @tags quality
8+
* reliability
89
* correctness
910
* external/cwe/cwe-628
1011
* @problem.severity error

python/ql/src/Classes/WrongNumberArgumentsInClassInstantiation.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
* @description Using too many or too few arguments in a call to the `__init__`
44
* method of a class will result in a TypeError at runtime.
55
* @kind problem
6-
* @tags reliability
6+
* @tags quality
7+
* reliability
78
* correctness
89
* external/cwe/cwe-685
910
* @problem.severity error

python/ql/src/Exceptions/IllegalRaise.ql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
* @name Illegal raise
33
* @description Raising a non-exception object or type will result in a TypeError being raised instead.
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 high
1010
* @precision very-high

python/ql/src/Expressions/ContainsNonContainer.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
* @name Membership test with a non-container
33
* @description A membership test, such as 'item in sequence', with a non-container on the right hand side will raise a 'TypeError'.
44
* @kind problem
5-
* @tags reliability
5+
* @tags quality
6+
* reliability
67
* correctness
78
* @problem.severity error
89
* @sub-severity high

python/ql/src/Expressions/ExpectedMappingForFormatString.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
* @name Formatted object is not a mapping
33
* @description The formatted object must be a mapping when the format includes a named specifier; otherwise a TypeError will be raised."
44
* @kind problem
5-
* @tags reliability
5+
* @tags quality
6+
* reliability
67
* correctness
78
* @problem.severity error
89
* @sub-severity low

python/ql/src/Expressions/HashedButNoHash.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
* @name Unhashable object hashed
33
* @description Hashing an object which is not hashable will result in a TypeError at runtime.
44
* @kind problem
5-
* @tags reliability
5+
* @tags quality
6+
* reliability
67
* correctness
78
* @problem.severity error
89
* @sub-severity low

python/ql/src/Expressions/NonCallableCalled.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
* @name Non-callable called
33
* @description A call to an object which is not a callable will raise a TypeError at runtime.
44
* @kind problem
5-
* @tags reliability
5+
* @tags quality
6+
* reliability
67
* correctness
7-
* types
88
* @problem.severity error
99
* @sub-severity high
1010
* @precision high

python/ql/src/Expressions/WrongNameForArgumentInCall.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
* parameter of the called function or method, will result in a
55
* TypeError at runtime.
66
* @kind problem
7-
* @tags reliability
7+
* @tags quality
8+
* reliability
89
* correctness
910
* external/cwe/cwe-628
1011
* @problem.severity error

python/ql/src/Expressions/WrongNumberArgumentsInCall.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
* @name Wrong number of arguments in a call
33
* @description Using too many or too few arguments in a call to a function will result in a TypeError at runtime.
44
* @kind problem
5-
* @tags reliability
5+
* @tags quality
6+
* reliability
67
* correctness
78
* external/cwe/cwe-685
89
* @problem.severity error

python/ql/src/Functions/IterReturnsNonIterator.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
* @name `__iter__` method returns a non-iterator
33
* @description The `__iter__` method returns a non-iterator which, if used in a 'for' loop, would raise a 'TypeError'.
44
* @kind problem
5-
* @tags reliability
5+
* @tags quality
6+
* reliability
67
* correctness
78
* @problem.severity error
89
* @sub-severity low

0 commit comments

Comments
 (0)