Skip to content

Commit 2515b06

Browse files
committed
Use code-quality-selectors in Go suite
1 parent bb46ca7 commit 2515b06

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

go/ql/src/InconsistentCode/LengthComparisonOffByOne.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* @tags reliability
99
* correctness
1010
* logic
11+
* quality
1112
* external/cwe/cwe-193
1213
* @precision high
1314
*/

go/ql/src/InconsistentCode/MissingErrorCheck.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* @tags reliability
99
* correctness
1010
* logic
11+
* quality
1112
* @precision high
1213
*/
1314

go/ql/src/InconsistentCode/UnhandledCloseWritableHandle.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
* correctness
1212
* call
1313
* defer
14+
* quality
1415
*/
1516

1617
import go

go/ql/src/InconsistentCode/WrappedErrorAlwaysNil.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @tags reliability
88
* correctness
99
* logic
10+
* quality
1011
* @precision high
1112
*/
1213

go/ql/src/RedundantCode/NegativeLengthCheck.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @precision very-high
1010
* @id go/negative-length-check
1111
* @tags correctness
12+
* quality
1213
*/
1314

1415
import go

go/ql/src/RedundantCode/RedundantRecover.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* @id go/redundant-recover
99
* @tags maintainability
1010
* correctness
11+
* quality
1112
* @precision high
1213
*/
1314

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
11
- queries: .
2-
- include:
3-
id:
4-
- go/unhandled-writable-file-close
5-
- go/unexpected-nil-value
6-
- go/negative-length-check
7-
- go/redundant-recover
8-
- go/missing-error-check
9-
- go/index-out-of-bounds
2+
- apply: code-quality-selectors.yml
3+
from: codeql/suite-helpers

0 commit comments

Comments
 (0)