Commit Graph

27 Commits

Author SHA1 Message Date
a4ebb66769 Replace IOUtils with IOUtil
plsql, xml, apex, html, javascript, scala
2022-05-13 12:03:15 +02:00
a8966e9749 Fix more tests 2022-02-06 13:45:33 +01:00
52e3bb1eed Fix tests 2021-08-08 20:07:33 +02:00
064c1d7aef Store file name in data key 2021-08-08 14:29:20 +02:00
f7909ae78a Merge branch 'master' into pr-2963-update 2021-01-21 11:43:01 +01:00
af31b3a773 Add GenericToken.getKind() to interface 2020-12-10 12:10:47 +01:00
37c2c505f3 Merge branch 'master' into ruleset-factory-builder 2020-11-24 12:49:18 +01:00
43d291ba73 [scala] ScalaTokenizer: Make inner classes static 2020-11-23 10:25:05 +01:00
035ec0a537 [scala] fixing support for CPD-ON and CPD-OFF special comments
- minor fix ups as per PR comments
- comments are skipped and no longer tokenised
2020-11-18 13:49:32 +00:00
cb5ce5d9d1 [scala] adding support for CPD-ON and CPD-OFF special comments 2020-11-16 12:08:47 +00:00
6642f5d038 Isolate single rule pattern 2020-10-26 19:31:48 +01:00
ac864aa529 Rename 2020-10-26 19:29:19 +01:00
6a4b1a7a2d [scala] Deprecate ScalaParserVisitorAdapter#zero and #combine
Those will go away with PMD 7.
2020-08-22 18:24:48 +02:00
89140d86ce Merge branch 'master' into pr-2656 2020-08-20 09:47:16 +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
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
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
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
abc230c637 [scala] Refactor project structure
* Avoid using symlinks, this is very difficult to get working
  under Windows
* Provide names for the different scala modules
* Rename pmd-scala to pmd-scala-common
* Restore main module pmd-scala for backwards compatibility
2020-06-07 11:52:10 +02:00