47ab1f34a4
Delete old antlr4 package-infos
2020-09-13 11:41:26 +02:00
4732164a45
Merge branch 'pmd/7.0.x' into pr-2753
2020-09-13 11:40:23 +02:00
3caa6dd0ba
Merge branch 'master' into pmd/7.0.x
2020-09-13 11:39:37 +02:00
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
9ef8c151e2
Same for kotlin
2020-08-30 18:59:48 +02:00
2b1d071930
Fix tests due to endColumn changes
2020-08-21 12:38:37 +02:00
ab489832fe
Merge branch 'master' into pmd/7.0.x
2020-08-21 11:51:54 +02:00
d1c49baae1
Fix checkstyle
...
(note, this needs an updated build-tools)
2020-08-20 11:02:55 +02:00
89140d86ce
Merge branch 'master' into pr-2656
2020-08-20 09:47:16 +02:00
c554aceba6
Merge branch 'master' into 7.0.x
2020-08-03 23:06:21 +02:00
acf58f1887
Check for license headers in kotlin source files
2020-07-31 20:26:27 +02:00
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
5b7ed588ea
Make CPD end column exclusive
...
This is to align it with PMD columns,
which in 7.0 are already exclusive.
2020-06-19 02:21:45 +02:00
c49d9e315f
Merge branch 'master' into 7.0.x
2020-06-19 01:32:32 +02:00
50725a95fc
Port ruby tests
...
TODO there's a bug
2020-06-13 22:08:58 +02:00
da764abb1e
Convert kotlin tests
2020-06-13 22:04:33 +02:00
0710877d05
[core] Deprecate AntlrToken#getType() in favor of #getKind()
...
Refs #2371
2020-04-10 18:50:58 +02:00
2ea78db0dc
Checkstyle
2020-03-22 00:56:10 +01:00
16f30c9ece
Make Antlr token manager throw TokenMgrError directly
2020-03-22 00:48:16 +01:00
b51c02f93b
Reorganise antlr files
...
Antlr root nodes need to implement RootNode.
Also, I didn't like the fact that the swift
module didn't use the conventional package
structure (lang.swift.ast) but was rolling
its own convention (lang.swift.antlr4).
I moved base classes for the antlr implementations
into nspmd.lang.ast.impl.antlr4. The fact that a
module is implemented with antlr is an implementation
detail, and it doesn't deserve its own toplevel package
in nspmd.lang.
2019-09-25 03:49:36 +02:00
7ba565f9b4
Merge branch 'kotlin-tokenizer-refactor' of https://github.com/teamraptor/pmd into kotlin-tokenizer-refactor
2019-02-17 20:31:19 -03:00
55c2c00e7a
merge fixes
2019-02-17 20:28:57 -03:00
22aaa70983
Add final modifier
2019-02-16 16:20:03 -03:00
72f2e425b2
KotlinTokenizer refactor
2019-02-16 15:49:03 -03:00
202a184366
Remove unnecessary PMD language module for kotlin
2018-11-26 12:16:04 +01:00
166e17f483
Simplified Kotlin tokenizer.
2018-11-12 14:35:59 +01:00
a7f3f71401
Adjusted Kotlin language module to specify version and correct extension.
2018-11-12 11:32:16 +01:00
b83698a58e
Added test cases for Kotlin support for CPD.
2018-11-12 11:31:49 +01:00
e7fd1d408c
Removed unnecessary import in order to conform to Checkstyle coding standard.
2018-11-07 15:15:57 +01:00
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
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