19 Commits

Author SHA1 Message Date
Andreas Dangel
7a1e3caba0 Add deprecations for antlr lexers that will be moved with PMD 7
Refs pmd/pmd#2753
2020-09-13 11:28:07 +02:00
Andreas Dangel
d1c49baae1 Fix checkstyle
(note, this needs an updated build-tools)
2020-08-20 11:02:55 +02:00
Andreas Dangel
89140d86ce Merge branch 'master' into pr-2656 2020-08-20 09:47:16 +02:00
Andreas Dangel
acf58f1887 Check for license headers in kotlin source files 2020-07-31 20:26:27 +02:00
Maikel Steneker
6fb5ac59b9 Ensure CPD uses tab width of 1 for tabs consistently
The columns that are reported by CPD were inconsistent across languages
before. A language like Java (using a JavaCC-based tokenizer) would use
a width of 8 for tabs, whereas a language like C# (using an Antlr-based
tokenizer) would use 1 instead.

This includes unit tests for most languages to ensure a tab character is
counted as 1. The configuration for JavaCC has been adjusted to respect
this as well.
2020-07-20 10:42:21 +02:00
Clément Fournier
50725a95fc Port ruby tests
TODO there's a bug
2020-06-13 22:08:58 +02:00
Clément Fournier
da764abb1e Convert kotlin tests 2020-06-13 22:04:33 +02:00
Andreas Dangel
0710877d05 [core] Deprecate AntlrToken#getType() in favor of #getKind()
Refs #2371
2020-04-10 18:50:58 +02:00
lsoncini
7ba565f9b4 Merge branch 'kotlin-tokenizer-refactor' of https://github.com/teamraptor/pmd into kotlin-tokenizer-refactor 2019-02-17 20:31:19 -03:00
lsoncini
55c2c00e7a merge fixes 2019-02-17 20:28:57 -03:00
Matias Fraga
22aaa70983 Add final modifier 2019-02-16 16:20:03 -03:00
lsoncini
72f2e425b2 KotlinTokenizer refactor 2019-02-16 15:49:03 -03:00
Andreas Dangel
202a184366 Remove unnecessary PMD language module for kotlin 2018-11-26 12:16:04 +01:00
Maikel Steneker
166e17f483 Simplified Kotlin tokenizer. 2018-11-12 14:35:59 +01:00
Maikel Steneker
a7f3f71401 Adjusted Kotlin language module to specify version and correct extension. 2018-11-12 11:32:16 +01:00
Maikel Steneker
b83698a58e Added test cases for Kotlin support for CPD. 2018-11-12 11:31:49 +01:00
Maikel Steneker
e7fd1d408c Removed unnecessary import in order to conform to Checkstyle coding standard. 2018-11-07 15:15:57 +01:00
Dennie Reniers
dc5b18b512 Adjusted Kotlin tokenizer to skip over package and import statements.
This prevents CPD from finding duplications in package and import statements.
2018-11-07 15:00:15 +01:00
Maikel Steneker
ff55a230d5 Added Kotlin support to CPD.
The tokenizer uses the ANTLR4 grammar based on the one at https://github.com/shadrina/kotlin-grammar-antlr4 (via https://github.com/antlr/grammars-v4/).
2018-11-07 14:49:56 +01:00