233 Commits

Author SHA1 Message Date
Andreas Dangel
720b9a328b
[release] prepare release pmd_releases/7.0.0-rc4 2023-09-30 17:15:54 +02:00
Andreas Dangel
32afa53f8e
All language modules: getInstance()
Use a consistent implementation of getInstance().
Now all modules resolve against the LanguageRegistry.
2023-08-24 16:01:27 +02:00
Clément Fournier
629e3b415c
Consolidate CPD packages 2023-06-10 14:30:07 +02:00
Andreas Dangel
8a89a4c786
Use explicit encoding in ruleset files 2023-06-01 17:29:24 +02:00
Andreas Dangel
835b625d51
[release] prepare for next development iteration 2023-05-30 20:15:08 +02:00
Andreas Dangel
7d6d303488
[release] prepare release pmd_releases/7.0.0-rc3 2023-05-30 20:15:02 +02:00
Andreas Dangel
b79e6bd92b
[release] prepare for next development iteration 2023-04-29 23:39:34 +02:00
Andreas Dangel
a97e108269
[release] prepare release pmd_releases/7.0.0-rc2 2023-04-29 23:39:28 +02:00
Clément Fournier
b89970d5fe
Merge branch 'pmd7-textfile-display-name' into clem.pmd7-refactor-cpd 2023-04-29 19:20:38 +02:00
Andreas Dangel
0d5ecebd4e
[core] Antlr - make more methods protected
The abstract methods createPmdTerminal and createPmdError in AntlrGeneratedParserBase don't need to be public. They are just implementation.

The language specific inner nodes (KotlinInnerNode, SwiftInnerNode)
can be package private. Only the concrete subclasses are considered
public API.
2023-04-14 09:41:52 +02:00
Andreas Dangel
ee227b1397
[core] Introduce an AbstractVisitorRule
Remove AntlrBaseRule
2023-04-13 20:32:58 +02:00
Andreas Dangel
bdacd38437
[core] Move AntlrTokenizer and JavaCCTokenizer into impl packages 2023-04-13 20:32:53 +02:00
Clément Fournier
837c7952f5
Merge branch 'master' into clem.pmd7-refactor-cpd 2023-04-04 22:11:38 +02:00
Andreas Dangel
d9b2444d7e
[release] prepare for next development iteration 2023-03-25 12:47:33 +01:00
Andreas Dangel
356af8b636
[release] prepare release pmd_releases/7.0.0-rc1 2023-03-25 12:30:51 +01:00
Andreas Dangel
0c0d6f33ad
[kotlin] Update grammar to version 1.8 2023-03-09 09:35:40 +01:00
Clément Fournier
0b2f1517ba
Merge branch '7.0.x' into clem.pmd7-refactor-cpd 2023-02-27 00:41:11 +01:00
Andreas Dangel
a283615299
Refactor LanguageMetdata::extensions usages 2023-02-17 09:04:16 +01:00
Andreas Dangel
e2bb0c8480
Reuse names and extensions for CPD language 2023-02-17 09:04:15 +01:00
Andreas Dangel
d7d2ad541e
Add explicit language versions (#4120) 2023-02-17 09:04:12 +01:00
Clément Fournier
c572cb88d7
Rename package cpd.internal to cpd.impl 2023-02-13 15:18:37 +01:00
Clément Fournier
ddbfc90c14
Fix build 2023-02-12 20:06:28 +01:00
Clément Fournier
fb9f49624d
Delete old CPD Language interface
reorganize cpd modules
2023-02-12 18:03:58 +01:00
Clément Fournier
cf81809990
Change a ton of stuff in CPD 2023-02-10 18:21:23 +01:00
Andreas Dangel
94c8c4ba0c
Fix unit tests 2023-02-02 10:45:26 +01:00
Clément Fournier
ef365cd9aa
Merge branch '7.0.x' into pmd7-language-lifecycle 2023-02-02 01:04:53 +01:00
Clément Fournier
55eabe2de1
Add back named versions 2023-01-27 15:12:14 +01:00
Clément Fournier
cef4c30af6
Merge branch '7.0.x' into pmd7-language-lifecycle 2022-11-24 22:39:59 +01:00
Andreas Dangel
88b8209958
Migrate RuleSetFactoryTests to JUnit 5 2022-10-13 17:18:13 +02:00
Andreas Dangel
00924bea75
Migrate LanguageVersionTests to JUnit5
Also move LanguageVersionTests into their language packages
and add missing tests
2022-10-13 17:17:59 +02:00
Andreas Dangel
64c8ac9d23
[kotlin] Migrate tests to Junit5 2022-07-29 17:21:34 +02:00
Clément Fournier
3cecfaf38b
convert most lang mods to new base class 2022-07-21 02:10:21 +02:00
Clément Fournier
e248156d96
Merge remote-tracking branch 'upstream/pmd/7.0.x' into text-utils-simple 2022-07-10 13:53:30 +02:00
Clément Fournier
59d931cd91
Merge remote-tracking branch 'upstream/pmd/7.0.x' into text-utils-simple 2022-07-10 13:50:03 +02:00
Andreas Dangel
c79db6e5f3
[kotlin] Mark kotlin language module @Experimental 2022-07-01 14:59:39 +02:00
Andreas Dangel
9d1782d9f4
[kotlin] remove spdx-ids from tokens files 2022-06-30 15:44:24 +02:00
Andreas Dangel
b38c8969ac
[kotlin] Clarify license for grammar 2022-06-30 15:27:09 +02:00
Andreas Dangel
aa4a8906ce
Merge branch 'pmd/7.0.x' into kotlin-poc 2022-06-24 19:21:16 +02:00
Andreas Dangel
2bdc8a8263
Merge branch 'master' into pmd/7.0.x 2022-06-04 15:59:22 +02:00
Andreas Dangel
066b510eef
chore: Fix project.parent.relativePath in pom.xml
It must point to a file, pointing to a directory
is not valid.
2022-06-04 11:00:30 +02:00
Andreas Dangel
04c1271d88
[maven-release-plugin] prepare for next development iteration 2022-05-28 11:04:32 +02:00
Andreas Dangel
a75acdeff8
[maven-release-plugin] prepare release pmd_releases/6.46.0 2022-05-28 11:04:27 +02:00
Andreas Dangel
ec64315ad7
[maven-release-plugin] prepare for next development iteration 2022-04-30 09:38:24 +02:00
Andreas Dangel
1d2b40b3c0
[maven-release-plugin] prepare release pmd_releases/6.45.0 2022-04-30 09:38:19 +02:00
Andreas Dangel
be3e941a08
[maven-release-plugin] prepare for next development iteration 2022-03-27 17:01:59 +02:00
Andreas Dangel
6859f8db36
[maven-release-plugin] prepare release pmd_releases/6.44.0 2022-03-27 17:01:54 +02:00
Andreas Dangel
cd57e8c79d
Fix PMD dogfood issue - inner Visitor class should be final 2022-03-11 10:53:08 +01:00
Andreas Dangel
5dc797bae5
Fix build after merge 2022-03-11 10:52:38 +01:00
Andreas Dangel
e1f02e8d11
Use rulechain 2022-03-04 20:19:52 +01:00
Andreas Dangel
3db42ba1e9
Removed unnecessary XPath function "hasChildren" 2022-03-04 20:11:23 +01:00
Andreas Dangel
2a73c2b312
Refactor OverrideBothEqualsAndHashcode 2022-03-04 20:06:21 +01:00
Andreas Dangel
db627b4535
AbstractKotlinRule should use KotlinVisitor 2022-03-04 19:50:21 +01:00
Andreas Dangel
01d24b8ac9
Add new rule OverrideBothEqualsAndHashcode 2022-03-04 19:49:05 +01:00
Andreas Dangel
3969215635
Update ruleset, add ruleset factory test
Using pmd.website.baseurl parameter
2022-03-03 21:09:49 +01:00
Andreas Dangel
0a6e4abc75
Fix root-node-name 2022-03-03 20:58:46 +01:00
Andreas Dangel
c0150e4698
Remove unnecessary rulesets.properties 2022-03-03 20:46:58 +01:00
Andreas Dangel
4566ed4f16
Update Kotlin Grammar to 1.6-rfc+0.1
Keep the grammar as original as possible
2022-03-03 20:46:06 +01:00
Andreas Dangel
22bc2f0463
KotlinLexer doesn't need to be executable 2022-03-03 20:22:42 +01:00
Andreas Dangel
69fb502883
[maven-release-plugin] prepare for next development iteration 2022-02-26 10:01:08 +01:00
Andreas Dangel
dd0ee6190b
[maven-release-plugin] prepare release pmd_releases/6.43.0 2022-02-26 10:01:03 +01:00
Andreas Dangel
d826c3574e
Revert "set version to 7.0.0-kotlin-SNAPSHOT to avoid mixups in 7.0.0-SNAPSHOT in sonatype snapshots repo"
This reverts commit 051da73ce3f63277195e83c88fbe687d08b157d1.
2022-02-25 15:16:35 +01:00
Andreas Dangel
dc19597020
[maven-release-plugin] prepare for next development iteration 2022-01-29 09:53:38 +01:00
Andreas Dangel
391c32589f
[maven-release-plugin] prepare release pmd_releases/6.42.0 2022-01-29 09:53:32 +01:00
Peter Paul Bakker
051da73ce3 set version to 7.0.0-kotlin-SNAPSHOT to avoid mixups in 7.0.0-SNAPSHOT in sonatype snapshots repo 2022-01-20 15:37:41 +01:00
Andreas Dangel
3a97618d5d
[maven-release-plugin] prepare for next development iteration 2021-11-27 11:21:17 +01:00
Andreas Dangel
ac68de1f51
[maven-release-plugin] prepare release pmd_releases/6.41.0 2021-11-27 11:21:12 +01:00
Peter Paul Bakker
b4d7867eba add resources to the pmd-kotlin jar so rule definitions files can be found by pmd-sonar plugin 2021-11-25 15:20:29 +01:00
Andreas Dangel
f12710071f
[maven-release-plugin] prepare for next development iteration 2021-10-30 10:00:20 +02:00
Andreas Dangel
be09a31654
[maven-release-plugin] prepare release pmd_releases/6.40.0 2021-10-30 10:00:15 +02:00
Peter Paul Bakker
bf10da5444 moved libDirectory setting for kotlin to pmd-kotlin pom.xml 2021-10-15 19:40:16 +02:00
Peter Paul Bakker
faeffd4f17 fix checkstyle issues 2021-10-15 19:23:17 +02:00
Peter Paul Bakker
97eeac0daa added kotlin Simple parser test 2021-10-15 19:08:40 +02:00
Peter Paul Bakker
a2e9d2b652 added kotlin xpath function 'pmd-kotlin:hasChildren(3)' as test case for custom kotlin xpath functions 2021-10-15 18:51:08 +02:00
Peter Paul Bakker
4fbf4fb580 added FunctionNameTooShort test in bestpractices category for Kotlin, with unit test cases 2021-10-13 17:34:20 +02:00
Peter Paul Bakker
1a36a7cc55 upped antlr plugin version, fix AST errors by using separate UnicodeClasses.g4 file, added <libDirectory> to maven antlr plugin to make it work 2021-10-13 10:32:19 +02:00
Andreas Dangel
0399bbbfc8
[maven-release-plugin] prepare for next development iteration 2021-09-25 13:46:09 +02:00
Andreas Dangel
90b051bfff
[maven-release-plugin] prepare release pmd_releases/6.39.0 2021-09-25 13:46:04 +02:00
Clément Fournier
c2eb1e6bab
checkstyle issues 2021-09-15 18:25:04 +02:00
Clément Fournier
e945897278
Fix pmd warning 2021-09-15 17:36:47 +02:00
Clément Fournier
5d278c049b
Fix compilation issues 2021-09-15 16:58:38 +02:00
jborgers
de6ddbd624 Separate Kotlin.g4 for parser grammar and KotlinLexer.g4 for lexer grammar; and move PmdKotlinParser.java to the right place 2021-09-15 15:41:36 +02:00
jborgers
a82e7eff24 Handled all steps of "Adding PMD support for a new ANTLR grammar based language" except $. Generate your Parser did not succeed because combining lexer and parser grammars has issues. 2021-09-13 14:15:25 +02:00
jborgers
cde4efb27e Combine KotlinParser, KotlinLexer and UnicodeClasses and use Swift.g4 as example 2021-09-10 17:10:24 +02:00
jborgers
2780560b36 Add official Kotlin ANTLR grammar files, copy and rename some more from Swift 2021-09-08 18:37:00 +02:00
jborgers
1fda7a0782 Adding PMD support for a new ANTLR grammar based language - step 1-4 2021-09-07 16:17:58 +02:00
Andreas Dangel
65af1c0675
[maven-release-plugin] prepare for next development iteration 2021-08-28 17:27:18 +02:00
Andreas Dangel
7d11a02052
[maven-release-plugin] prepare release pmd_releases/6.38.0 2021-08-28 17:27:12 +02:00
Andreas Dangel
821f7a849b
[maven-release-plugin] prepare for next development iteration 2021-07-31 19:02:07 +02:00
Andreas Dangel
18df47ce6e
[maven-release-plugin] prepare release pmd_releases/6.37.0 2021-07-31 19:01:59 +02:00
Andreas Dangel
f68bf5ce05
[maven-release-plugin] prepare for next development iteration 2021-06-26 10:24:15 +02:00
Andreas Dangel
45d1605a03
[maven-release-plugin] prepare release pmd_releases/6.36.0 2021-06-26 10:24:07 +02:00
Andreas Dangel
9fdfecf731
[maven-release-plugin] prepare for next development iteration 2021-05-29 07:24:47 +02:00
Andreas Dangel
b49fb2014d
[maven-release-plugin] prepare release pmd_releases/6.35.0 2021-05-29 07:24:39 +02:00
Andreas Dangel
319900cd43 [maven-release-plugin] prepare for next development iteration 2021-04-24 16:41:17 +02:00
Andreas Dangel
bfeaa1b377 [maven-release-plugin] prepare release pmd_releases/6.34.0 2021-04-24 16:41:10 +02:00
Andreas Dangel
37e5525fd5 [maven-release-plugin] prepare for next development iteration 2021-03-27 16:25:18 +01:00
Andreas Dangel
dc1c9d0aed [maven-release-plugin] prepare release pmd_releases/6.33.0 2021-03-27 16:25:13 +01:00
Andreas Dangel
e0de01ebe9 [maven-release-plugin] prepare for next development iteration 2021-02-27 09:44:05 +01:00
Andreas Dangel
0848e230d0 [maven-release-plugin] prepare release pmd_releases/6.32.0 2021-02-27 09:43:58 +01:00
Andreas Dangel
2ea0328678 [maven-release-plugin] prepare for next development iteration 2021-01-30 18:04:17 +01:00