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
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
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
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
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
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
47ab1f34a4
Delete old antlr4 package-infos
2020-09-13 11:41:26 +02:00
Andreas Dangel
4732164a45
Merge branch 'pmd/7.0.x' into pr-2753
2020-09-13 11:40:23 +02:00
Andreas Dangel
3caa6dd0ba
Merge branch 'master' into pmd/7.0.x
2020-09-13 11:39:37 +02:00
Andreas Dangel
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
Andreas Dangel
c59af0aee6
[maven-release-plugin] prepare for next development iteration
2020-08-31 18:30:18 +02:00
Andreas Dangel
856950f0d2
[maven-release-plugin] prepare release pmd_releases/6.27.0
2020-08-31 18:30:09 +02:00
Clément Fournier
9ef8c151e2
Same for kotlin
2020-08-30 18:59:48 +02:00
Andreas Dangel
2b1d071930
Fix tests due to endColumn changes
2020-08-21 12:38:37 +02:00
Andreas Dangel
ab489832fe
Merge branch 'master' into pmd/7.0.x
2020-08-21 11:51:54 +02:00
Andreas Dangel
d1c49baae1
Fix checkstyle
...
(note, this needs an updated build-tools)
2020-08-20 11:02:55 +02:00
Andreas Dangel
89140d86ce
Merge branch 'master' into pr-2656
2020-08-20 09:47:16 +02:00
Clément Fournier
c554aceba6
Merge branch 'master' into 7.0.x
2020-08-03 23:06:21 +02:00
Andreas Dangel
acf58f1887
Check for license headers in kotlin source files
2020-07-31 20:26:27 +02:00
Andreas Dangel
49ab75aeb7
[maven-release-plugin] prepare for next development iteration
2020-07-25 13:45:36 +02:00
Andreas Dangel
a9632e2a06
[maven-release-plugin] prepare release pmd_releases/6.26.0
2020-07-25 13:45:27 +02:00
Maikel Steneker
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
Andreas Dangel
dcaa8a1167
Merge branch 'master' into pmd/7.0.x
2020-07-17 16:13:02 +02:00
Andreas Dangel
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
Andreas Dangel
370c0b0b6d
Remove unused dependency, explicitly declare used dependencies
2020-07-02 15:12:31 +02:00
Andreas Dangel
95d8e80c1b
[maven-release-plugin] prepare for next development iteration
2020-06-27 11:31:27 +02:00
Andreas Dangel
a219b2e1be
[maven-release-plugin] prepare release pmd_releases/6.25.0
2020-06-27 11:31:16 +02:00
Clément Fournier
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
Clément Fournier
c49d9e315f
Merge branch 'master' into 7.0.x
2020-06-19 01:32:32 +02:00