QL: add test

This commit is contained in:
erik-krogh
2022-11-16 12:51:38 +01:00
parent f71359c81d
commit f2222d32db
3 changed files with 16 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
/*
* This should be QLDoc.
*/
/**
* this is fine
*/
predicate foo() { any() }
/* Note: this is bad. */
class Foo extends string {
Foo() { this = "FOo" }
}

View File

@@ -0,0 +1,2 @@
| Foo.qll:1:1:3:3 | BlockComment | Block comment could be QLDoc for $@. | Foo.qll:1:1:13:2 | TopLevel | the file |
| Foo.qll:10:1:10:24 | BlockComment | Block comment could be QLDoc for $@. | Foo.qll:11:7:11:9 | Class Foo | the below code |

View File

@@ -0,0 +1 @@
queries/style/NonDocBlock.ql