mirror of
https://github.com/github/codeql.git
synced 2026-04-24 00:05:14 +02:00
QL: add test
This commit is contained in:
13
ql/ql/test/queries/style/NonDocBlock/Foo.qll
Normal file
13
ql/ql/test/queries/style/NonDocBlock/Foo.qll
Normal 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" }
|
||||
}
|
||||
@@ -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 |
|
||||
1
ql/ql/test/queries/style/NonDocBlock/NonDocBlock.qlref
Normal file
1
ql/ql/test/queries/style/NonDocBlock/NonDocBlock.qlref
Normal file
@@ -0,0 +1 @@
|
||||
queries/style/NonDocBlock.ql
|
||||
Reference in New Issue
Block a user