80 Commits

Author SHA1 Message Date
Andreas Dangel
3621eed40d Merge remote-tracking branch 'origin/master' into pmd/7.0.x 2020-04-13 12:34:03 +02:00
Clément Fournier
5cbfdfdd99 Use ascii printer for tree dumps
Some environments may not display
the structure correctly otherwise. See
eg https://travis-ci.org/github/pmd/pmd/jobs/668122788#L9312-L9322
2020-03-29 09:21:38 +02:00
Clément Fournier
e84349531b Normalize line endings 2020-03-29 09:17:49 +02:00
Clément Fournier
89cddd8aa8 Use parsing helper 2020-03-28 17:46:33 +01:00
Clément Fournier
09ddc628cd Fix reference files 2020-03-28 17:46:33 +01:00
Clément Fournier
c83790fab5 Recycle tree printer from the designer 2020-03-28 17:46:33 +01:00
Clément Fournier
bb92044a15 Add ability to test an AST dump as cheap regression test 2020-03-28 17:46:32 +01:00
Clément Fournier
62a9d5b655 Fix build 2020-03-20 18:07:56 +01:00
Clément Fournier
ea3085e560 Normalize line endings
Tries to fix build failure on windows...
2020-03-19 19:34:16 +01:00
Clément Fournier
fd0d53b590 Merge branch '7.0.x' into port-jsp-vf-modules 2020-03-17 15:46:41 +01:00
Andreas Dangel
4c020bfbf7 [maven-release-plugin] prepare for next development iteration 2020-03-12 15:15:18 +01:00
Andreas Dangel
eb93aaeca7 [maven-release-plugin] prepare release pmd_releases/6.22.0 2020-03-12 15:15:09 +01:00
Clément Fournier
9788a3af5d Merge branch 'master' into 7.0.x 2020-03-02 19:12:28 +01:00
Clément Fournier
a9b6e78cfc Normalise line endings in test 2020-02-17 16:59:14 +01:00
Clément Fournier
ad023e8fa6 Support type test patterns 2020-02-09 00:10:50 +01:00
Clément Fournier
ec1eb208eb Merge branch 'master' into 7.0.x 2020-01-24 23:48:22 +01:00
Clément Fournier
58fa793e67 Fix indentation in poms
For some reason pmd-apex and pmd-apex-jorje
use 2 spaces while the rest use 4.
2020-01-24 23:17:26 +01:00
Andreas Dangel
d994700617 [maven-release-plugin] prepare for next development iteration 2020-01-24 17:20:47 +01:00
Andreas Dangel
a28e9e22e5 [maven-release-plugin] prepare release pmd_releases/6.21.0 2020-01-24 17:20:38 +01:00
Clément Fournier
ecef88aa0a Merge branch 'master' into 7.0.x 2020-01-17 12:10:51 +01:00
Clément Fournier
d9ad819dab Replace usages of node methods everywhere 2020-01-17 11:57:19 +01:00
Clément Fournier
342a0bac08 Checkout some code from java grammar 2020-01-15 10:24:42 +01:00
Clément Fournier
99700d7526 Extract changes from #2166 to 7.0.x
* Make Java nodes text-available
* Introduce shared JavaccToken in pmd-core
* Use factory to produce char streams

Tests are still on java-grammar,
since they use the DSL & newer
AST structure.

This is to prepare for other changes
that concern all javacc languages and
should not be done on java-grammar
2020-01-10 21:15:15 +01:00
Clément Fournier
d6296bd85f Fix apex multifile tests 2020-01-10 20:22:57 +01:00
Clément Fournier
db1a8d7649 [lang-test] Use processing stages only in BaseParsingHelper 2020-01-10 17:55:41 +01:00
Andreas Dangel
a6c95b17d9 [lang-test] BaseParsingHelper uses AstProcessingStages 2020-01-10 15:20:04 +01:00
Andreas Dangel
ea86a23b73 Merge branch 'master' into pmd/7.0.x 2020-01-10 14:41:27 +01:00
Andreas Dangel
c53d9508e9 Small changes from code review
* rename BaseParserHelper
* Not using org.jetbrains.annotations.NotNull
2020-01-10 12:18:43 +01:00
Clément Fournier
a7c5a1f0be Cleanup PMD.EOL in tests
Instead, normalize line endings in parse method.
This makes sure test code snippets are portable
and readable. For now they're platform-specific,
and assume that the resource files are saved with
the platform-specific line separator. This may not
be the case, as eg a git file may be checked out
with CRLF on a unix system.
2019-12-22 20:16:19 +01:00
Clément Fournier
8afe5ae7a8 Abstract away parser utils
Convert a few pieces of code

Share with modelica

Remove yet another dup

Fix tests

Doc

Share with plsql

Fix tests

Fix build

Cleanup

Minimize diff

Share with JSP module

Share with JS module

Share with XML module

Share with VisualForce module

Share with Scala module

Fix last tests
2019-12-20 18:30:17 +01:00
Andreas Dangel
00392cefc2 [maven-release-plugin] prepare for next development iteration 2019-11-29 19:46:14 +01:00
Andreas Dangel
78da370fb8 [maven-release-plugin] prepare release pmd_releases/6.20.0 2019-11-29 19:46:05 +01:00
Andreas Dangel
deec9c44b2 [maven-release-plugin] prepare for next development iteration 2019-10-31 18:36:51 +01:00
Andreas Dangel
2881b6f585 [maven-release-plugin] prepare release pmd_releases/6.19.0 2019-10-31 18:36:42 +01:00
Clément Fournier
ad822f7e2b Accomodate tests for scala empty nodes
refs #2021
2019-09-19 00:30:17 +02:00
Clément Fournier
95d6ea3f37 Fix scala text bounds 2019-09-17 04:21:05 +02:00
Andreas Dangel
e536ca1947 [maven-release-plugin] prepare for next development iteration 2019-09-15 10:14:14 +02:00
Andreas Dangel
3f42cca200 [maven-release-plugin] prepare release pmd_releases/6.18.0 2019-09-15 10:14:05 +02:00
Clément Fournier
052c298a85 Merge branch 'master' into 7.0.x 2019-09-14 15:08:12 +02:00
Clément Fournier
8ac3a10020 Bump kotlin test version 2019-09-14 15:04:38 +02:00
Andreas Dangel
7a7971f64d [maven-release-plugin] prepare for next development iteration 2019-07-28 10:24:51 +02:00
Andreas Dangel
365e1c9e8b [maven-release-plugin] prepare release pmd_releases/6.17.0 2019-07-28 10:24:43 +02:00
Andreas Dangel
73a8e4cc69 [maven-release-plugin] prepare for next development iteration 2019-06-30 10:33:08 +02:00
Andreas Dangel
45facbd323 [maven-release-plugin] prepare release pmd_releases/6.16.0 2019-06-30 10:32:58 +02:00
Andreas Dangel
5ac687918a [maven-release-plugin] prepare for next development iteration 2019-05-26 11:02:26 +02:00
Andreas Dangel
ba2d795f59 [maven-release-plugin] prepare release pmd_releases/6.15.0 2019-05-26 11:02:18 +02:00
Andreas Dangel
9a93a6c5e9 Delegate text coordinates to the tokens 2019-05-01 17:29:32 +02:00
Andreas Dangel
5ec4324fbc Fix AbstractLrBinaryExpr type check 2019-05-01 17:25:01 +02:00
Andreas Dangel
367ae2a4a9 Remove need for late init completely 2019-05-01 17:23:34 +02:00
Clément Fournier
eedc3210fc Add text bounds implicit assertions 2019-05-01 17:18:52 +02:00