mirror of
https://github.com/github/codeql.git
synced 2025-12-16 08:43:11 +01:00
Ql4Ql: Add some more quality tag testcases.
This commit is contained in:
@@ -2,3 +2,5 @@
|
||||
| testcases/BadQualityMultipleTopLevel.ql:1:1:11:3 | QueryDoc | This query file has incorrect top-level categorisation. It should have exactly one top-level category, either `@tags maintainability` or `@tags reliability`. |
|
||||
| testcases/BadQualityNoToplevel.ql:1:1:10:3 | QueryDoc | This query file has incorrect top-level categorisation. It should have exactly one top-level category, either `@tags maintainability` or `@tags reliability`. |
|
||||
| testcases/BadQualityReliabilityWrongToplevel.ql:1:1:11:3 | QueryDoc | This query file has a sub-category of maintainability but is missing the `@tags maintainability` tag. |
|
||||
| testcases/GoodQualityMaintainabilityWithCrossSub.ql:1:1:12:3 | QueryDoc | This query file has a sub-category of reliability but is missing the `@tags reliability` tag. |
|
||||
| testcases/GoodQualityReliabilityWithCrossSub.ql:1:1:12:3 | QueryDoc | This query file has a sub-category of maintainability but is missing the `@tags maintainability` tag. |
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* @name Some query
|
||||
* @description Some description
|
||||
* @kind problem
|
||||
* @problem.severity warning
|
||||
* @precision very-high
|
||||
* @id ql/quality-query-test
|
||||
* @tags quality
|
||||
* maintainability
|
||||
* readability
|
||||
* correctness
|
||||
*/
|
||||
|
||||
import ql
|
||||
|
||||
from Class c
|
||||
where none()
|
||||
select c, ""
|
||||
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* @name Some query
|
||||
* @description Some description
|
||||
* @kind problem
|
||||
* @problem.severity warning
|
||||
* @precision very-high
|
||||
* @id ql/quality-query-test
|
||||
* @tags quality
|
||||
* reliability
|
||||
* correctness
|
||||
* readability
|
||||
*/
|
||||
|
||||
import ql
|
||||
|
||||
from Class c
|
||||
where none()
|
||||
select c, ""
|
||||
Reference in New Issue
Block a user