Update tags for high precision quality queries

This commit is contained in:
Owen Mansel-Chan
2025-06-13 16:53:47 +01:00
parent 76786798df
commit a2ff045a7a
22 changed files with 66 additions and 37 deletions

View File

@@ -5,7 +5,10 @@
* @kind problem
* @problem.severity warning
* @id go/constant-length-comparison
* @tags correctness
* @tags quality
* reliability
* correctness
* external/cwe/cwe-129
* @precision high
*/

View File

@@ -8,7 +8,9 @@
* @kind problem
* @problem.severity error
* @id go/inconsistent-loop-direction
* @tags correctness
* @tags quality
* reliability
* correctness
* external/cwe/cwe-835
* @precision very-high
*/

View File

@@ -5,10 +5,9 @@
* @kind problem
* @problem.severity error
* @id go/index-out-of-bounds
* @tags reliability
* @tags quality
* reliability
* correctness
* logic
* quality
* external/cwe/cwe-193
* @precision high
*/

View File

@@ -5,10 +5,10 @@
* @kind problem
* @problem.severity warning
* @id go/missing-error-check
* @tags reliability
* correctness
* logic
* quality
* @tags quality
* reliability
* error-handling
* external/cwe/cwe-252
* @precision high
*/

View File

@@ -4,7 +4,10 @@
* @kind problem
* @problem.severity warning
* @id go/mistyped-exponentiation
* @tags correctness
* @tags quality
* reliability
* correctness
* external/cwe/cwe-480
* @precision high
*/

View File

@@ -7,11 +7,10 @@
* @problem.severity warning
* @precision high
* @id go/unhandled-writable-file-close
* @tags maintainability
* correctness
* call
* defer
* quality
* @tags quality
* reliability
* error-handling
* external/cwe/cwe-252
*/
import go

View File

@@ -1,11 +1,12 @@
/**
* @name Whitespace contradicts operator precedence
* @description Nested expressions where the formatting contradicts the grouping enforced by operator precedence
* are difficult to read and may even indicate a bug.
* are difficult to read and may indicate a bug.
* @kind problem
* @problem.severity warning
* @id go/whitespace-contradicts-precedence
* @tags maintainability
* @tags quality
* reliability
* correctness
* external/cwe/cwe-783
* @precision very-high

View File

@@ -4,10 +4,9 @@
* @kind problem
* @problem.severity warning
* @id go/unexpected-nil-value
* @tags reliability
* correctness
* logic
* quality
* @tags quality
* reliability
* error-handling
* @precision high
*/

View File

@@ -5,7 +5,9 @@
* @kind problem
* @problem.severity warning
* @id go/comparison-of-identical-expressions
* @tags correctness
* @tags quality
* reliability
* correctness
* external/cwe/cwe-570
* external/cwe/cwe-571
* @precision very-high

View File

@@ -4,7 +4,9 @@
* @kind problem
* @problem.severity warning
* @id go/useless-assignment-to-field
* @tags maintainability
* @tags quality
* maintainability
* useless-code
* external/cwe/cwe-563
* @precision very-high
*/

View File

@@ -5,7 +5,9 @@
* @kind problem
* @problem.severity warning
* @id go/useless-assignment-to-local
* @tags maintainability
* @tags quality
* maintainability
* useless-code
* external/cwe/cwe-563
* @precision very-high
*/

View File

@@ -6,7 +6,8 @@
* @problem.severity warning
* @precision very-high
* @id go/duplicate-branches
* @tags maintainability
* @tags quality
* reliability
* correctness
* external/cwe/cwe-561
*/

View File

@@ -5,7 +5,8 @@
* @kind problem
* @problem.severity error
* @id go/duplicate-condition
* @tags maintainability
* @tags quality
* reliability
* correctness
* external/cwe/cwe-561
* @precision very-high

View File

@@ -5,7 +5,8 @@
* @kind problem
* @problem.severity error
* @id go/duplicate-switch-case
* @tags maintainability
* @tags quality
* reliability
* correctness
* external/cwe/cwe-561
* @precision very-high

View File

@@ -5,7 +5,8 @@
* @kind problem
* @problem.severity warning
* @id go/useless-expression
* @tags maintainability
* @tags quality
* reliability
* correctness
* external/cwe/cwe-480
* external/cwe/cwe-561

View File

@@ -4,7 +4,10 @@
* @kind problem
* @problem.severity warning
* @id go/impossible-interface-nil-check
* @tags correctness
* @tags quality
* reliability
* correctness
* external/cwe/cwe-570
* @precision high
*/

View File

@@ -8,8 +8,10 @@
* @problem.severity warning
* @precision very-high
* @id go/negative-length-check
* @tags correctness
* quality
* @tags quality
* reliability
* correctness
* external/cwe/cwe-571
*/
import go

View File

@@ -6,7 +6,9 @@
* @kind problem
* @problem.severity warning
* @id go/redundant-operation
* @tags correctness
* @tags quality
* reliability
* correctness
* external/cwe/cwe-480
* external/cwe/cwe-561
* @precision very-high

View File

@@ -6,9 +6,10 @@
* @kind problem
* @problem.severity warning
* @id go/redundant-recover
* @tags maintainability
* @tags quality
* reliability
* correctness
* quality
* external/cwe/cwe-248
* @precision high
*/

View File

@@ -4,7 +4,9 @@
* @kind problem
* @problem.severity warning
* @id go/redundant-assignment
* @tags correctness
* @tags quality
* reliability
* correctness
* external/cwe/cwe-480
* external/cwe/cwe-561
* @precision high

View File

@@ -6,7 +6,9 @@
* @problem.severity warning
* @id go/shift-out-of-range
* @precision very-high
* @tags correctness
* @tags quality
* reliability
* correctness
* external/cwe/cwe-197
*/

View File

@@ -5,7 +5,8 @@
* @kind problem
* @problem.severity warning
* @id go/unreachable-statement
* @tags maintainability
* @tags quality
* reliability
* correctness
* external/cwe/cwe-561
* @precision very-high