mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Ql4Ql: Add some quality tag testcases.
This commit is contained in:
@@ -0,0 +1,17 @@
|
|||||||
|
/**
|
||||||
|
* @name Some query
|
||||||
|
* @description Some description
|
||||||
|
* @kind problem
|
||||||
|
* @problem.severity warning
|
||||||
|
* @precision very-high
|
||||||
|
* @id ql/quality-query-test
|
||||||
|
* @tags quality
|
||||||
|
* maintainability
|
||||||
|
* error-handling
|
||||||
|
*/
|
||||||
|
|
||||||
|
import ql
|
||||||
|
|
||||||
|
from Class c
|
||||||
|
where none()
|
||||||
|
select c, ""
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
/**
|
||||||
|
* @name Some query
|
||||||
|
* @description Some description
|
||||||
|
* @kind problem
|
||||||
|
* @problem.severity warning
|
||||||
|
* @precision very-high
|
||||||
|
* @id ql/quality-query-test
|
||||||
|
* @tags quality
|
||||||
|
* maintainability
|
||||||
|
* reliability
|
||||||
|
*/
|
||||||
|
|
||||||
|
import ql
|
||||||
|
|
||||||
|
from Class c
|
||||||
|
where none()
|
||||||
|
select c, ""
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
/**
|
||||||
|
* @name Some query
|
||||||
|
* @description Some description
|
||||||
|
* @kind problem
|
||||||
|
* @problem.severity warning
|
||||||
|
* @precision very-high
|
||||||
|
* @id ql/quality-query-test
|
||||||
|
* @tags quality
|
||||||
|
* someothertag
|
||||||
|
*/
|
||||||
|
|
||||||
|
import ql
|
||||||
|
|
||||||
|
from Class c
|
||||||
|
where none()
|
||||||
|
select c, ""
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
/**
|
||||||
|
* @name Some query
|
||||||
|
* @description Some description
|
||||||
|
* @kind problem
|
||||||
|
* @problem.severity warning
|
||||||
|
* @precision very-high
|
||||||
|
* @id ql/quality-query-test
|
||||||
|
* @tags quality
|
||||||
|
* reliability
|
||||||
|
* readability
|
||||||
|
*/
|
||||||
|
|
||||||
|
import ql
|
||||||
|
|
||||||
|
from Class c
|
||||||
|
where none()
|
||||||
|
select c, ""
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
/**
|
||||||
|
* @name Some query
|
||||||
|
* @description Some description
|
||||||
|
* @kind problem
|
||||||
|
* @problem.severity warning
|
||||||
|
* @security-severity 10.0
|
||||||
|
* @precision very-high
|
||||||
|
* @id ql/quality-query-test
|
||||||
|
* @tags security
|
||||||
|
*/
|
||||||
|
|
||||||
|
import ql
|
||||||
|
|
||||||
|
from Class c
|
||||||
|
where none()
|
||||||
|
select c, ""
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
/**
|
||||||
|
* @name Some query
|
||||||
|
* @description Some description
|
||||||
|
* @kind problem
|
||||||
|
* @problem.severity warning
|
||||||
|
* @security-severity 10.0
|
||||||
|
* @precision very-high
|
||||||
|
* @id ql/quality-query-test
|
||||||
|
* @tags quality
|
||||||
|
* maintainability
|
||||||
|
*/
|
||||||
|
|
||||||
|
import ql
|
||||||
|
|
||||||
|
from Class c
|
||||||
|
where none()
|
||||||
|
select c, ""
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
/**
|
||||||
|
* @name Some query
|
||||||
|
* @description Some description
|
||||||
|
* @kind problem
|
||||||
|
* @problem.severity warning
|
||||||
|
* @precision very-high
|
||||||
|
* @id ql/quality-query-test
|
||||||
|
* @tags quality
|
||||||
|
* maintainability
|
||||||
|
* readability
|
||||||
|
*/
|
||||||
|
|
||||||
|
import ql
|
||||||
|
|
||||||
|
from Class c
|
||||||
|
where none()
|
||||||
|
select c, ""
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
/**
|
||||||
|
* @name Some query
|
||||||
|
* @description Some description
|
||||||
|
* @kind problem
|
||||||
|
* @problem.severity warning
|
||||||
|
* @precision very-high
|
||||||
|
* @id ql/quality-query-test
|
||||||
|
* @tags quality
|
||||||
|
* reliability
|
||||||
|
*/
|
||||||
|
|
||||||
|
import ql
|
||||||
|
|
||||||
|
from Class c
|
||||||
|
where none()
|
||||||
|
select c, ""
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
/**
|
||||||
|
* @name Some query
|
||||||
|
* @description Some description
|
||||||
|
* @kind problem
|
||||||
|
* @problem.severity warning
|
||||||
|
* @precision very-high
|
||||||
|
* @id ql/quality-query-test
|
||||||
|
* @tags quality
|
||||||
|
* reliability
|
||||||
|
* correctness
|
||||||
|
*/
|
||||||
|
|
||||||
|
import ql
|
||||||
|
|
||||||
|
from Class c
|
||||||
|
where none()
|
||||||
|
select c, ""
|
||||||
Reference in New Issue
Block a user