Tag 'type-checking'-like quality queries

This commit is contained in:
Joe Farebrother
2025-06-18 10:36:06 +01:00
parent 4b1d31c976
commit 02f8ec33f2
15 changed files with 32 additions and 22 deletions

View File

@@ -4,7 +4,8 @@
* parameter of the __init__ method of the class being
* instantiated, will result in a TypeError at runtime.
* @kind problem
* @tags reliability
* @tags quality
* reliability
* correctness
* external/cwe/cwe-628
* @problem.severity error

View File

@@ -3,7 +3,8 @@
* @description Using too many or too few arguments in a call to the `__init__`
* method of a class will result in a TypeError at runtime.
* @kind problem
* @tags reliability
* @tags quality
* reliability
* correctness
* external/cwe/cwe-685
* @problem.severity error

View File

@@ -2,9 +2,9 @@
* @name Illegal raise
* @description Raising a non-exception object or type will result in a TypeError being raised instead.
* @kind problem
* @tags reliability
* correctness
* types
* @tags quality
* reliability
* error-handling
* @problem.severity error
* @sub-severity high
* @precision very-high

View File

@@ -2,7 +2,8 @@
* @name Membership test with a non-container
* @description A membership test, such as 'item in sequence', with a non-container on the right hand side will raise a 'TypeError'.
* @kind problem
* @tags reliability
* @tags quality
* reliability
* correctness
* @problem.severity error
* @sub-severity high

View File

@@ -2,7 +2,8 @@
* @name Formatted object is not a mapping
* @description The formatted object must be a mapping when the format includes a named specifier; otherwise a TypeError will be raised."
* @kind problem
* @tags reliability
* @tags quality
* reliability
* correctness
* @problem.severity error
* @sub-severity low

View File

@@ -2,7 +2,8 @@
* @name Unhashable object hashed
* @description Hashing an object which is not hashable will result in a TypeError at runtime.
* @kind problem
* @tags reliability
* @tags quality
* reliability
* correctness
* @problem.severity error
* @sub-severity low

View File

@@ -2,9 +2,9 @@
* @name Non-callable called
* @description A call to an object which is not a callable will raise a TypeError at runtime.
* @kind problem
* @tags reliability
* @tags quality
* reliability
* correctness
* types
* @problem.severity error
* @sub-severity high
* @precision high

View File

@@ -4,7 +4,8 @@
* parameter of the called function or method, will result in a
* TypeError at runtime.
* @kind problem
* @tags reliability
* @tags quality
* reliability
* correctness
* external/cwe/cwe-628
* @problem.severity error

View File

@@ -2,7 +2,8 @@
* @name Wrong number of arguments in a call
* @description Using too many or too few arguments in a call to a function will result in a TypeError at runtime.
* @kind problem
* @tags reliability
* @tags quality
* reliability
* correctness
* external/cwe/cwe-685
* @problem.severity error

View File

@@ -2,7 +2,8 @@
* @name `__iter__` method returns a non-iterator
* @description The `__iter__` method returns a non-iterator which, if used in a 'for' loop, would raise a 'TypeError'.
* @kind problem
* @tags reliability
* @tags quality
* reliability
* correctness
* @problem.severity error
* @sub-severity low

View File

@@ -2,7 +2,8 @@
* @name Encoding error
* @description Encoding errors cause failures at runtime and prevent analysis of the code.
* @kind problem
* @tags reliability
* @tags quality
* reliability
* correctness
* @problem.severity error
* @sub-severity low

View File

@@ -2,7 +2,8 @@
* @name Syntax error
* @description Syntax errors cause failures at runtime and prevent analysis of the code.
* @kind problem
* @tags reliability
* @tags quality
* reliability
* correctness
* @problem.severity error
* @sub-severity high

View File

@@ -2,9 +2,9 @@
* @name Iterable can be either a string or a sequence
* @description Iteration over either a string or a sequence in the same loop can cause errors that are hard to find.
* @kind problem
* @tags reliability
* maintainability
* non-local
* @tags quality
* reliability
* correctness
* @problem.severity error
* @sub-severity low
* @precision high

View File

@@ -3,9 +3,9 @@
* @description Assigning multiple variables without ensuring that you define a
* value for each variable causes an exception at runtime.
* @kind problem
* @tags reliability
* @tags quality
* reliability
* correctness
* types
* @problem.severity error
* @sub-severity low
* @precision very-high

View File

@@ -2,9 +2,9 @@
* @name Non-iterable used in for loop
* @description Using a non-iterable as the object in a 'for' loop causes a TypeError.
* @kind problem
* @tags reliability
* @tags quality
* reliability
* correctness
* types
* @problem.severity error
* @sub-severity low
* @precision high