576 Commits

Author SHA1 Message Date
Andreas Dangel
96389a44b6
Fix tests 2023-03-09 10:15:12 +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
Clément Fournier
bf2c69921e
Fix merge 2023-02-26 16:23:12 +01:00
Clément Fournier
65725c13aa
Merge branch '7.0.x' into pr/4387 2023-02-26 16:17:30 +01:00
Clément Fournier
a8a6dd2586
Merge branch '7.0.x' into clem.pmd7-refactor-cpd 2023-02-26 16:11:13 +01:00
Clément Fournier
6c1fa1fe4f
Merge branch '7.0.x' into pr/4361 2023-02-26 15:37:59 +01:00
Clément Fournier
50577f2b40
Rewrite binaryDistributionIt to be easier to maintain 2023-02-26 15:33:36 +01:00
Clément Fournier
95b7ca32ad
Merge branch '7.0.x' into pr/4387 2023-02-26 15:07:53 +01:00
Clément Fournier
8770ad615f
Merge branch '7.0.x' into clem.pmd7-refactor-cpd 2023-02-26 14:39:35 +01:00
Andreas Dangel
fea41bcc8a
Merge branch 'pmd/7.0.x' into pr-4379 2023-02-23 11:48:43 +01:00
Andreas Dangel
d0bb4361c6
Merge branch 'master' into pmd/7.0.x 2023-02-23 11:47:14 +01:00
Paul Guyot
5660d262b4 CPD: add support for Typescript using antlr4 grammar 2023-02-23 11:44:01 +01:00
Andreas Dangel
2db7255035
Merge pull request #4395 from adangel:pmd6-support-env-CLASSPATH
[core] Support environment variable CLASSPATH with pmd.bat under Windows #4395
2023-02-23 11:26:51 +01:00
wener
636cf15009 Added support for Julia code duplication. 2023-02-21 19:30:28 +01:00
Clément Fournier
b25c16f94d
Remove usages of PMD.EOL 2023-02-20 15:17:41 +01:00
Clément Fournier
6eb50863b8
Fix last tests 2023-02-20 15:03:46 +01:00
Juan Martín Sotuyo Dodero
9a3a5f5cfe Use proper separator 2023-02-18 23:38:39 -03:00
Juan Martín Sotuyo Dodero
79d9c90d18 Fix style error 2023-02-18 23:17:30 -03:00
Juan Martín Sotuyo Dodero
2b58f285e8 Be OS agnostic 2023-02-18 22:53:33 -03:00
Juan Martín Sotuyo Dodero
4f1a307962 Fix broken call 2023-02-18 21:21:01 -03:00
Juan Martín Sotuyo Dodero
7cab83ae97 Style fixes 2023-02-18 19:20:25 -03:00
Juan Martín Sotuyo Dodero
a55cdbbcb7 Add Incremental Analysis integration tests 2023-02-18 19:20:25 -03:00
Andreas Dangel
17364a997b
[doc] CPD - use non deprecated --dir cli option 2023-02-17 11:39:03 +01:00
Andreas Dangel
d7d2ad541e
Add explicit language versions (#4120) 2023-02-17 09:04:12 +01:00
Andreas Dangel
2c3f945b4d
Merge branch 'master' into pmd/7.0.x 2023-02-16 20:53:46 +01:00
Andreas Dangel
b5ea31d53f
[core] Support environment variable CLASSPATH with pmd.bat under Windows 2023-02-16 16:40:24 +01:00
Andreas Dangel
9bcab3c820
Fix integration test 2023-02-14 19:35:51 +01:00
Andreas Dangel
7f543c6ff4
Merge branch 'pmd/7.0.x' into pmd7-java-20 2023-02-10 13:40:52 +01:00
Paul Guyot
d20592ba63 Add support for T-SQL using Antlr4 lexer 2023-02-10 11:33:58 +01:00
Andreas Dangel
cac5b15b56
[java] Fix build errors, update LanguageLevelChecker
- Update Java20PreviewTreeDumpTest to JUnit5
- Remove GuardedPatterns
- Don't use PatternExpression in case labels
- Update javadocs
2023-02-04 20:14:40 +01:00
Andreas Dangel
94c8c4ba0c
Fix unit tests 2023-02-02 10:45:26 +01:00
Andreas Dangel
014c28bb1e
Merge branch 'pmd/7.0.x' into pmd7-junit5-part3 2023-01-30 13:36:15 +01:00
Andreas Dangel
5772440a79
[maven-release-plugin] prepare for next development iteration 2023-01-28 10:31:53 +01:00
Andreas Dangel
de1b12b060
[maven-release-plugin] prepare release pmd_releases/6.54.0 2023-01-28 10:31:46 +01:00
Andreas Dangel
3d530458bb
Remove junit and related dependencies 2023-01-27 11:49:03 +01:00
Andreas Dangel
1257eaff0d
Fix test BinaryDistributionIT#testPmdHelp 2023-01-27 10:35:02 +01:00
Clément Fournier
403fcdae82
[core] Move utility classes around 2023-01-23 18:47:52 +01:00
Andreas Dangel
6a6acb9b43
[maven-release-plugin] prepare for next development iteration 2022-12-31 18:22:10 +01:00
Andreas Dangel
37103451bf
[maven-release-plugin] prepare release pmd_releases/6.53.0 2022-12-31 18:22:04 +01:00
Andreas Dangel
d9538b0297
Merge remote-tracking branch 'adangel/issue-4248-zip-files' into pmd7-issue-4248-zip-files 2022-12-08 11:55:56 +01:00
Andreas Dangel
ce12835d36
Add integration tests for zip/jar files 2022-12-08 11:37:35 +01:00
Andreas Dangel
1634bd0043
[maven-release-plugin] prepare for next development iteration 2022-11-26 10:24:58 +01:00
Andreas Dangel
e90bf0f11b
[maven-release-plugin] prepare release pmd_releases/6.52.0 2022-11-26 10:24:53 +01:00
Clément Fournier
251fa45020
Merge branch '7.0.x' into pr/4028 2022-11-23 21:52:18 +01:00
Juan Martín Sotuyo Dodero
79e294b36e
Merge pull request #4161 from Monits/prep-4059
[core] Backport to PMD6 changes to accomodate PicoCli in PMD7
2022-11-10 12:34:05 -03:00
Andreas Dangel
5a4bf05493
[maven-release-plugin] prepare for next development iteration 2022-10-29 09:34:25 +02:00
Andreas Dangel
66e834049f
[maven-release-plugin] prepare release pmd_releases/6.51.0 2022-10-29 09:34:19 +02:00
Juan Martín Sotuyo Dodero
75666d9c2d Rename command to check 2022-10-15 02:07:24 -03:00
Juan Martín Sotuyo Dodero
1f43af7d83 Change pmd run to pmd check with no aliases 2022-10-15 02:07:24 -03:00
Juan Martín Sotuyo Dodero
e7c8d5e7d6 Ensure bash completion is part of the bin dist 2022-10-15 02:06:53 -03:00
Juan Martín Sotuyo Dodero
e590f40d5a Ensure Windows can also find javafx.properties 2022-10-15 02:06:53 -03:00
Juan Martín Sotuyo Dodero
0b7a4274b8 Ensure the new designer can find the properties
- JavaFX 17 at least has the properties file laying bare
2022-10-15 02:06:53 -03:00
Juan Martín Sotuyo Dodero
3b42cf6ea3 Use system-dependent line separator 2022-10-15 02:06:53 -03:00
Juan Martín Sotuyo Dodero
9567a439fb Fix integration tests for Windows 2022-10-15 02:06:53 -03:00
Juan Martín Sotuyo Dodero
4568c94f9e Use findstr instead of find 2022-10-15 02:06:53 -03:00
Juan Martín Sotuyo Dodero
fdf76f22a3 Remove verbose flag for IT 2022-10-15 02:06:53 -03:00
Juan Martín Sotuyo Dodero
20e441f87d Improve unified pmd.bat
Co-authored-by: Andreas Dangel <andreas.dangel@adangel.org>
2022-10-15 02:06:53 -03:00
Juan Martín Sotuyo Dodero
b7533169bf Update pmd-dist/src/main/resources/scripts/pmd.bat
Add all needed `--add-opens` for javaFX

Co-authored-by: Andreas Dangel <andreas.dangel@adangel.org>
2022-10-15 02:06:52 -03:00
Juan Martín Sotuyo Dodero
90e5c52295 Use only lang-version pairs
- no more default/ latest versions
 - this assumes all versions have names, which is till pending, but agreed on
2022-10-15 02:06:52 -03:00
Juan Martín Sotuyo Dodero
366769cc81 Support languiage aliases in PMD CLI 2022-10-15 02:06:52 -03:00
Juan Martín Sotuyo Dodero
e567de3872 Update pmd bin IT 2022-10-15 02:06:52 -03:00
Juan Martín Sotuyo Dodero
5ed8fc81e8 Unify all bat files under a single one 2022-10-15 02:06:51 -03:00
Juan Martín Sotuyo Dodero
e49e5d2ddb Update run.sh
- This is now plainly "pmd" and can drop lots of logic that is now part of the standard CLI
2022-10-15 02:06:03 -03:00
Juan Martín Sotuyo Dodero
a4a5affe83 Include everything in pmd-dist
- Include both the pmd-cli module and the completion script
2022-10-15 02:04:12 -03:00
Juan Martín Sotuyo Dodero
f60fd97ee4 Bring on pmd-cli into pmd-dist 2022-10-15 02:04:12 -03:00
Juan Martín Sotuyo Dodero
3a9cf20323 Fix build 2022-10-15 02:04:12 -03:00
Juan Martín Sotuyo Dodero
3230038bc2 Fix broken build 2022-10-15 02:04:12 -03:00
Juan Martín Sotuyo Dodero
b9737e23b5 Backport to PMD6 changes to accomodate PicoCli in PMD7
- Companion PR for #4059
 - Add deprecations and path the way for the upcoming changes to the CLI in PMD7
2022-10-14 23:36:45 -03:00
Andreas Dangel
d2c4a0e7a2
Merge pull request #4089 from oowekyala:pmd7-ant-module
[ant] Move ant integration to a new pmd-ant module #4089
2022-10-04 19:11:14 +02:00
Andreas Dangel
8688838190
Migrate leftover tests to JUnit5 2022-10-03 16:30:03 +02:00
Andreas Dangel
13d9a9457f
[maven-release-plugin] prepare for next development iteration 2022-09-30 15:39:14 +02:00
Andreas Dangel
37f6d8254c
[maven-release-plugin] prepare release pmd_releases/6.50.0 2022-09-30 15:39:08 +02:00
Andreas Dangel
c0dff0d75a
Merge branch 'master' into pmd/7.0.x 2022-09-30 12:17:45 +02:00
Andreas Dangel
48269572eb
Use the same jversion convention in designer.bat
java 1.8.0: 80
java 9.0: 90
java 17.0: 170
2022-09-10 15:41:58 +02:00
Andreas Dangel
0b6a9ce0a7
Add manual test script 2022-09-10 10:46:04 +02:00
Andreas Dangel
01ea52f90c
[cli] Fix java version detection in run.sh
Fixes #4118
2022-09-10 10:34:25 +02:00
Andreas Dangel
90663d746b
[maven-release-plugin] prepare for next development iteration 2022-08-31 19:19:27 +02:00
Andreas Dangel
4b4ebabc2d
[maven-release-plugin] prepare release pmd_releases/6.49.0 2022-08-31 19:19:22 +02:00
Clément Fournier
ef201d110b
ant: add to pmd-dist 2022-08-09 20:57:41 +02:00
Andreas Dangel
995d00fde3
[maven-release-plugin] prepare for next development iteration 2022-07-30 11:35:57 +02:00
Andreas Dangel
6aa2b47f2e
[maven-release-plugin] prepare release pmd_releases/6.48.0 2022-07-30 11:35:53 +02:00
Andreas Dangel
c7ba7917e8
Fix test ruleset all-xsl.xml 2022-07-14 18:51:50 +02:00
Andreas Dangel
e6e1bfb62a
Merge branch 'master' into pmd/7.0.x 2022-07-01 14:30:58 +02:00
Anne Brouwers
bedb6057de Merge branch 'master' into feature_gherkin 2022-06-28 17:16:47 +02:00
Andreas Dangel
a5006f6383
[maven-release-plugin] prepare for next development iteration 2022-06-25 09:30:43 +02:00
Andreas Dangel
07eb3d2d80
[maven-release-plugin] prepare release pmd_releases/6.47.0 2022-06-25 09:30:37 +02:00
Andreas Dangel
aa4a8906ce
Merge branch 'pmd/7.0.x' into kotlin-poc 2022-06-24 19:21:16 +02:00
Anne Brouwers
ac2dcd8c4d Add Gherkin support to CPD 2022-06-16 16:38:20 +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
67629e13d0
Merge pull request #3968 from adangel:replace-commons-io
[core] Replace commons-io #3968
2022-05-26 15:26:22 +02:00
Andreas Dangel
a186c808a7
Merge branch 'pmd/7.0.x' into pmd7-replace-commons-io 2022-05-26 15:04:34 +02:00
Andreas Dangel
572ccc302e
Merge branch 'master' into pmd/7.0.x 2022-05-20 14:49:40 +02:00
Andreas Dangel
309d1dea28
Merge branch 'replace-commons-io' into pmd7-replace-commons-io 2022-05-13 16:00:19 +02:00
Andreas Dangel
a1922c5956
[dist] Replace IOUtils with IOUtil 2022-05-13 12:03:16 +02:00
Andreas Dangel
753cb49e40
[all] Remove dependency to commons-io 2022-05-13 12:03:14 +02:00
Clément Fournier
e7229407d4
Fix tests 2022-05-07 19:29:00 +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
184d83b501
Merge remote-tracking branch 'adangel/html-jsoup' into pmd7-html-jsoup 2022-04-22 14:37:25 +02:00
Andreas Dangel
b413d86d08
[html] Add support for HTML using jsoup parser 2022-03-31 17:08:45 +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
jeickhoff
9ca8176d3e Fix pmd-test with progress bar flag 2022-03-25 16:35:49 +01:00
Andreas Dangel
cbc7352324
Merge branch 'pmd/7.0.x' into kotlin-poc 2022-03-11 10:16:12 +01:00
Clément Fournier
b212e6497b
Doc, initial log level message is reported at INFO 2022-03-05 11:47:57 +01:00
Andreas Dangel
9c35b03937
Merge branch 'pmd/7.0.x' into kotlin-poc 2022-03-04 20:15:06 +01:00
Andreas Dangel
3b7e775fe7
Silence out pushd/popd 2022-02-26 14:35:08 +01:00
Andreas Dangel
fd6f521079
Apply suggestions from code review
Co-authored-by: Clément Fournier <clement.fournier76@gmail.com>
2022-02-26 11:35:56 +01:00
Andreas Dangel
2091c78ead
Merge branch 'pmd/7.0.x' into pmd7-896-slf4j 2022-02-26 11:29:11 +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
b21cb6a9fc
Fix BinaryDistributionIT - kotlin is now one of the PMD languages 2022-02-25 15:33:19 +01:00
Andreas Dangel
0c80e35f39
Enable AllRulesIT for java 2022-02-25 11:59:49 +01:00
Andreas Dangel
868a664d77
Fix tests 2022-02-19 11:32:23 +01:00
Andreas Dangel
c2f99dc834
Merge branch 'pmd/7.0.x' into pmd7-896-slf4j 2022-02-19 10:44:22 +01:00
Andreas Dangel
02464a2e2a
[dist] Enable test "runPMD" again - most rules are migrated now 2022-02-19 10:36:55 +01:00
Andreas Dangel
765cf3c92a
Merge branch 'master' into pmd/7.0.x 2022-02-19 10:25:28 +01:00
Andreas Dangel
c166613c0f
[dist] Add integration test for --debug flag 2022-02-17 18:54:37 +01:00
Andreas Dangel
ad86896682
[dist] Adjust default logging configuration 2022-02-17 18:54:37 +01:00
Andreas Dangel
5c7af91688
[dist] Add default simplelogger.properties 2022-02-17 18:54:36 +01:00
Clément Fournier
ee1e43a952
Fix #3427 - Stop printing usage test on error 2022-02-12 21:05:04 +01:00
Andreas Dangel
41c6d260fb
Merge branch 'master' into pmd/7.0.x 2022-01-29 10:08:59 +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
Andreas Dangel
93811d3449
Merge pull request #3726 from adangel:issue-3328-designer-bat
[core] Handle quotes correctly in designer.bat and other *.bat files
#3726

* pr-3726:
  [core] Handle quotes correctly in designer.bat and other *.bat files
2022-01-27 14:23:40 +01:00
Andreas Dangel
afc8a11020
Merge branch 'master' into pmd/7.0.x 2022-01-20 12:36:44 +01:00
Andreas Dangel
922ef7cbd4
More code style changes for varargs (#3744) 2022-01-17 18:51:18 +01:00
Andreas Dangel
308173a0fc
[core] Handle quotes correctly in designer.bat and other *.bat files
Fixes #3328
2022-01-13 17:16:07 +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
Andreas Dangel
6e63a15c94
Merge branch 'master' into pmd/7.0.x 2021-11-26 11:03:17 +01:00
Andreas Dangel
cd19c451cd
Only run the AntIT under linux
"script" under macosx seems to be somehting different
2021-11-18 17:34:36 +01:00
Andreas Dangel
655fdd6c08
[dist] Downgrade ant to 1.9.16 for java7 compat it 2021-11-18 17:09:29 +01:00
Andreas Dangel
d7774be75e
[dist] Add java17, make ant test fail 2021-11-18 11:10:53 +01:00
Andreas Dangel
d8fbd24e69
[dist] Add integration test for ant 2021-11-18 09:15:23 +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
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
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
489f28edd3
Merge branch 'master' into pmd/7.0.x 2021-08-22 16:53:55 +02:00
Andreas Dangel
c961c74458
Bump commons-compress from 1.19 to 1.21
CVE-2021-36090: https://github.com/advisories/GHSA-mc84-pj99-q6hh
CVE-2021-35516: https://github.com/advisories/GHSA-crv7-7245-f45f
CVE-2021-35515: https://github.com/advisories/GHSA-7hfm-57qf-j43q
CVE-2021-35517: https://github.com/advisories/GHSA-xqfj-vm6h-2x34
2021-08-16 19:29:40 +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