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
This commit is contained in:
Joe Farebrother
2025-06-18 10:04:47 +01:00
parent 5c4548df45
commit 869e33e38c
13 changed files with 30 additions and 17 deletions

View File

@@ -2,7 +2,8 @@
* @name Comparison of constants
* @description Comparison of constants is always constant, but is harder to read than a simple constant.
* @kind problem
* @tags maintainability
* @tags quality
* maintainability
* useless-code
* external/cwe/cwe-570
* external/cwe/cwe-571

View File

@@ -2,10 +2,9 @@
* @name Comparison of identical values
* @description Comparison of identical values, the intent of which is unclear.
* @kind problem
* @tags reliability
* correctness
* @tags quality
* maintainability
* readability
* convention
* external/cwe/cwe-570
* external/cwe/cwe-571
* @problem.severity warning

View File

@@ -2,8 +2,9 @@
* @name Maybe missing 'self' in comparison
* @description Comparison of identical values, the intent of which is unclear.
* @kind problem
* @tags reliability
* maintainability
* @tags quality
* reliability
* correctness
* external/cwe/cwe-570
* external/cwe/cwe-571
* @problem.severity warning

View File

@@ -2,8 +2,9 @@
* @name Testing equality to None
* @description Testing whether an object is 'None' using the == operator is inefficient and potentially incorrect.
* @kind problem
* @tags efficiency
* maintainability
* @tags quality
* reliability
* correctness
* @problem.severity recommendation
* @sub-severity high
* @precision very-high

View File

@@ -2,7 +2,8 @@
* @name Unnecessary lambda
* @description A lambda is used that calls through to a function without modifying any parameters
* @kind problem
* @tags maintainability
* @tags quality
* maintainability
* useless-code
* @problem.severity recommendation
* @sub-severity high