Skip to content

Commit a375e18

Browse files
committed
Third pass
1 parent 3693185 commit a375e18

67 files changed

Lines changed: 130 additions & 73 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
Likely Bugs/Arithmetic/ConstantExpAppearsNonConstant.ql
1+
query: Likely Bugs/Arithmetic/ConstantExpAppearsNonConstant.ql
2+
postprocess: utils/test/InlineExpectationsTestQuery.ql
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
Violations of Best Practice/Implementation Hiding/AbstractToConcreteCollection.ql
1+
query: Violations of Best Practice/Implementation Hiding/AbstractToConcreteCollection.ql
2+
postprocess: utils/test/InlineExpectationsTestQuery.ql
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
Violations of Best Practice/legacy/AutoBoxing.ql
1+
query: Violations of Best Practice/legacy/AutoBoxing.ql
2+
postprocess: utils/test/InlineExpectationsTestQuery.ql
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
Likely Bugs/Resource Leaks/CloseReader.ql
1+
query: Likely Bugs/Resource Leaks/CloseReader.ql
2+
postprocess: utils/test/InlineExpectationsTestQuery.ql
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
Likely Bugs/Resource Leaks/CloseWriter.ql
1+
query: Likely Bugs/Resource Leaks/CloseWriter.ql
2+
postprocess: utils/test/InlineExpectationsTestQuery.ql
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
Violations of Best Practice/Naming Conventions/ConfusingOverloading.ql
1+
query: Violations of Best Practice/Naming Conventions/ConfusingOverloading.ql
2+
postprocess: utils/test/InlineExpectationsTestQuery.ql

java/ql/test-kotlin1/query-tests/ConstantLoopCondition/A.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@ fun fn0(f: Function0<Unit>) = f()
22

33
fun fn1() {
44
var c = true
5-
while (c) { // TODO: false positive
5+
while (c) { // $ SPURIOUS: Alert // TODO: false positive
66
fn0 {
77
c = false
88
}
99
}
1010

1111
var d = true
12-
while (d) {
12+
while (d) { // $ Alert
1313
fn0 {
1414
println(d)
1515
}
1616
}
1717

1818
val e = true
19-
while (e) {
19+
while (e) { // $ Alert
2020
fn0 {
2121
println(e)
2222
}
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
Likely Bugs/Termination/ConstantLoopCondition.ql
1+
query: Likely Bugs/Termination/ConstantLoopCondition.ql
2+
postprocess: utils/test/InlineExpectationsTestQuery.ql
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
DeadCode/DeadClass.ql
1+
query: DeadCode/DeadClass.ql
2+
postprocess: utils/test/InlineExpectationsTestQuery.ql
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
DeadCode/DeadMethod.ql
1+
query: DeadCode/DeadMethod.ql
2+
postprocess: utils/test/InlineExpectationsTestQuery.ql

0 commit comments

Comments
 (0)