Skip to content

Commit 52fc2da

Browse files
committed
QL: Add camel case tests
1 parent db85679 commit 52fc2da

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
| Test.qll:2:1:2:27 | ClasslessPredicate isXML | Acronyms should be PascalCase/camelCase |
2+
| Test.qll:8:1:10:15 | NewType TXMLElements | Acronyms should be PascalCase/camelCase |
3+
| Test.qll:10:3:10:15 | NewTypeBranch TXMLElement | Acronyms should be PascalCase/camelCase |
4+
| Test.qll:13:1:14:16 | NewType TIRFunction | Acronyms should be PascalCase/camelCase |
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
queries/style/AcronymsShouldBeCamelCase.ql
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// BAD
2+
predicate isXML() { any() }
3+
4+
// GOOD [ AES is exceptional ]
5+
predicate isAES() { any() }
6+
7+
// BAD
8+
newtype TXMLElements =
9+
TXmlElement() or // GOOD
10+
TXMLElement() // BAD
11+
12+
// GOOD [ FALSE POSITIVE ]
13+
newtype TIRFunction =
14+
MkIRFunction()

0 commit comments

Comments
 (0)