Skip to content

Commit e6e0fe0

Browse files
committed
Kotlin: Tweak custom_plugin/diagnostics test
1 parent b251078 commit e6e0fe0

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
| CodeQL Kotlin extractor | 2 | | IrProperty without a getter | d.kt:0:0:0:0 | d.kt:0:0:0:0 |
2-
| CodeQL Kotlin extractor | 2 | | Not rewriting trap file for: Boolean -1.0-0- -1.0-0-null test-db/trap/java/classes/kotlin/Boolean.members.trap.gz | file://:0:0:0:0 | file://:0:0:0:0 |
2+
| CodeQL Kotlin extractor | 2 | | Not rewriting trap file for test-db/trap/java/classes/java/lang/Boolean.members<VERSION>-<MODIFIED>-kotlin.trap.gz as it exists | file://:0:0:0:0 | file://:0:0:0:0 |
3+
| CodeQL Kotlin extractor | 2 | | Not rewriting trap file for test-db/trap/java/classes/kotlin/Boolean.members<VERSION>-<MODIFIED>-null.trap.gz as it exists | file://:0:0:0:0 | file://:0:0:0:0 |
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import java
22

3-
from string genBy, int severity, string tag, string msg, Location l
3+
from string genBy, int severity, string tag, string msg, string msg2, Location l
44
where
55
diagnostics(_, genBy, severity, tag, msg, _, l) and
66
(
77
// Different installations get different sets of these messages,
88
// so we filter out all but one that happens everywhere.
9-
msg.matches("Not rewriting trap file for: %")
9+
msg.matches("Not rewriting trap file for %")
1010
implies
11-
msg.matches("Not rewriting trap file for: Boolean %")
12-
)
13-
select genBy, severity, tag, msg, l
11+
msg.matches("Not rewriting trap file for %Boolean.members%")
12+
) and
13+
msg2 = msg.regexpReplaceAll("#-?[0-9]+\\.-?[0-9]+--?[0-9]+-", "<VERSION>-<MODIFIED>-")
14+
select genBy, severity, tag, msg2, l

0 commit comments

Comments
 (0)