Ql4Ql: Add some quality tag testcases.

This commit is contained in:
Michael Nebel
2025-06-30 16:20:50 +02:00
parent cce17743bb
commit c46b528c05
18 changed files with 150 additions and 0 deletions

View File

@@ -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, ""

View File

@@ -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, ""

View File

@@ -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, ""

View File

@@ -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, ""

View File

@@ -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, ""

View File

@@ -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, ""

View File

@@ -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, ""

View File

@@ -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, ""

View File

@@ -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, ""