Skip to content

Commit c9241cc

Browse files
committed
Exclude .kt files from one stmt in line query
1 parent 0d70b5c commit c9241cc

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

java/ql/src/Advisory/Statements/OneStatementPerLine.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ predicate oneLineStatement(Stmt s, File f, int line, int col) {
3737
from Stmt s, Stmt s2
3838
where
3939
exists(File f, int line, int col, int col2 |
40+
f.isJavaSourceFile() and
4041
oneLineStatement(s, f, line, col) and
4142
oneLineStatement(s2, f, line, col2) and
4243
col < col2 and
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
| Test.kt:5:9:5:23 | return ... | This statement is followed by another on the same line. |

0 commit comments

Comments
 (0)