Merge branch 'master' into pmd/7.0.x

This commit is contained in:
Andreas Dangel
2020-08-21 11:51:54 +02:00
69 changed files with 1728 additions and 494 deletions

View File

@ -40,4 +40,9 @@ public class KotlinTokenizerTest extends CpdTextComparisonTest {
public void testImportsIgnored() {
doTest("imports");
}
@Test
public void testTabWidth() {
doTest("tabWidth");
}
}

View File

@ -0,0 +1,11 @@
/*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
var x = 0
fun increment() {
// CHECKSTYLE:OFF - the tab character is the test...
x += 1
// CHECKSTYLE:ON
}

View File

@ -0,0 +1,19 @@
[Image] or [Truncated image[ Bcol Ecol
L5
[var] 1 3
[x] 5 5
[=] 7 7
[0] 9 9
L7
[fun] 1 3
[increment] 5 13
[(] 14 14
[)] 15 15
[{] 17 17
L9
[x] 2 2
[+=] 4 5
[1] 7 7
L11
[}] 1 1
EOF