57 Commits

Author SHA1 Message Date
80e9f48ed9 Add a hook for nodes to callback if the visitor is incorrect 2020-08-26 19:10:32 +02:00
37bd0db6b0 Merge branch 'remove-old-stuff' into 7.0.x 2020-08-23 17:59:27 +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
89140d86ce Merge branch 'master' into pr-2656 2020-08-20 09:47:16 +02:00
cbef6a8b7e Merge branch '7.0.x' into remove-old-stuff 2020-08-03 23:25:42 +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
3d4f709009 Merge branch '7.0.x' into remove-old-stuff 2020-07-31 16:02:34 +02:00
384dd20319 Merge branch 'master' into pmd/7.0.x 2020-07-30 11:51:53 +02:00
5bff6ac52e Merge branch 'pr-2657'
[lang-test] Upgrade kotlintest to Kotest #2657
2020-07-30 10:31:43 +02:00
4c11082574 Cleanup report 2020-07-29 18:04:56 +02:00
49ab75aeb7 [maven-release-plugin] prepare for next development iteration 2020-07-25 13:45:36 +02:00
a9632e2a06 [maven-release-plugin] prepare release pmd_releases/6.26.0 2020-07-25 13:45:27 +02:00
6d73eaf3c7 Fix custom parser spec
Add kotest-runner-junit5-jvm as a dependency,
in pmd-java. This makes kotest discoverable
as Junit tests, which IDEs can pick up on (at
least IntelliJ does).

Update kotlin version to latest stable (1.3.72)
2020-07-20 16:33:29 +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
68ae318f02 Update to kotest 2020-07-20 00:12:40 +02:00
a9996ab45c Merge branch 'pr-2589' into pmd/7.0.x
[core] Add generic visitor interface in pmd-core #2589
2020-07-19 18:07:55 +02:00
dcaa8a1167 Merge branch 'master' into pmd/7.0.x 2020-07-17 16:13:02 +02:00
7b3d31246e Merge branch 'master' into pr-2624 2020-07-17 15:16:24 +02:00
7ae424a35b Add deprecation javadocs 2020-07-17 14:43:43 +02:00
94afdb117d Add test engines as surefire plugin dependencies
This removes junit-vintage-engine as a test dependency
as well as kotlintest-runner-junit5.
The engines are only needed during test execution, but should
not be available for test compilation.

For this to work, the latest surefire plugin is required.
2020-07-17 12:03:45 +02:00
03d03440b4 Declare junit dependencies before kotlintest ones
This is for the scala modules. Apparently
in the other order, only kotlin tests are
run.
2020-07-06 13:25:54 +02:00
373c9b0944 Fix scala library versions 2020-07-02 20:30:54 +02:00
370c0b0b6d Remove unused dependency, explicitly declare used dependencies 2020-07-02 15:12:31 +02:00
49635c2a66 Deprecate Rulechain visitors 2020-07-01 11:27:38 +02:00
659066ee02 Deprecate BaseLanguageModule constructor 2020-07-01 11:27:38 +02:00
d7f96e08d9 Uniformize apply across languages 2020-07-01 11:27:38 +02:00
25beb215fc Throw on incompatible visitor type 2020-07-01 11:16:03 +02:00
feeb1f0a87 Fix swift module 2020-07-01 11:09:12 +02:00
94595fe185 Merge branch '7.0.x' into generic-visitor2 2020-07-01 10:09:26 +02:00
bc660e8807 Merge branch 'master' into pmd/7.0.x 2020-06-27 14:24:52 +02:00
4bb98df37b Fix compil 2020-06-27 14:22:42 +02:00
623adce024 Checkstyle 2020-06-27 13:24:09 +02:00
95d8e80c1b [maven-release-plugin] prepare for next development iteration 2020-06-27 11:31:27 +02:00
a219b2e1be [maven-release-plugin] prepare release pmd_releases/6.25.0 2020-06-27 11:31:16 +02:00
c6457ab9fc Merge branch '7.0.x' into generic-visitor2 2020-06-26 23:10:19 +02:00
00dbe08282 Merge branch 'pmd/7.0.x' into pr-2490 2020-06-26 10:58:18 +02:00
847c4de68b Merge branch '7.0.x' into generic-visitor2 2020-06-25 14:30:46 +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
a9f61260ae [scala] Remove unnecessary surefire config 2020-06-18 19:58:16 +02:00
88b34feb22 Use wildcards for acceptVisitor 2020-06-17 21:21:00 +02:00
ee1afed8c5 Fix scala stackoverflow 2020-06-15 17:10:28 +02:00
47667a0e35 Merge branch '7.0.x' into type-heap 2020-06-14 21:42:38 +02:00
f7b1c375c1 Fix scala compilation 2020-06-14 13:02:30 +02:00
b88ddf41c0 Add generic visitor interface in pmd-core
Replace SideEffectingVisitor with JavaVisitor

The new visitor is generic. We don't actually need the
old Object->Object visitor, this could just be the new
generic visitor but erased

Port language level checker

Move delegators

Remove old accept methods

Remove reduced adapter

Cleanup some visitor

Make ant wrapper replace old visitor completely

Doc

Add DeprecatedUntil700 annotation

Add top interface for visitors

Convert JSP visitors

Checkstyle

Fix java module
2020-06-14 11:43:24 +02:00
332e2369f5 Fix pmd warning 2020-06-14 01:22:17 +02:00
59dfa15269 Fix groovy columns 2020-06-14 01:04:32 +02:00
3df4506365 Convert scala tests 2020-06-13 23:25:24 +02:00