1824 Commits

Author SHA1 Message Date
Andreas Dangel
e4771c7687 Merge pull request #3720 from
vgalloy:FinalInterfaceMethodParameterIsUnclear

[java] New rule: FinalParameterInAbstractMethod #3720

* pr-3720:
  [doc] Update release notes (#3720)
  Fix file name
  Fix test class name
  Fix FinalParameterInAbstractMethod.externalInfoUrl
  Rename to FinalParameterInAbstractMethod and target all methods
  [java] New rule: FinalInterfaceMethodParameterIsUnclear
2022-01-13 18:18:41 +01:00
Andreas Dangel
4b14c09b4d [doc] Update release notes (#3720) 2022-01-13 18:17:36 +01:00
Andreas Dangel
65b4ba58a7 Fix dogfood - ReturnEmptyCollectionRatherThanNull 2022-01-09 20:46:45 +01:00
Andreas Dangel
38950fef96 Bump gson from 2.8.5/2.7 to 2.8.9 (see #3690) 2021-12-20 10:39:17 +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
2150e44471 Merge pull request #3637 from adangel:java17-integration-test
[core] Fix ant with Java17 #3637

* pr-3637:
  Only run the AntIT under linux
  [dist] Downgrade ant to 1.9.16 for java7 compat it
  Bump ant from 1.10.11 to 1.10.12
  Fix unused import
  [apex] Fix exception handling for commons-lang3-reflect calls
  [core] Fix Ant task with Java17
  [dist] Add java17, make ant test fail
  [dist] Add integration test for ant
2021-11-26 09:10:08 +01:00
Andreas Dangel
d5df3bf573 Merge branch 'master' into pr-3600 2021-11-25 11:03:38 +01:00
Andreas Dangel
f9b5b9a021 [core] Fix Ant task with Java17
Fixes #3593
2021-11-18 11:32:11 +01:00
Andreas Dangel
3749f3e2df [core] Add deprecation warnings for CPD CLI options 2021-11-11 11:31:06 +01:00
Andreas Dangel
65e3ef3cd0 Apply suggestions from code review 2021-11-11 09:24:46 +01:00
Liam
f83de43cbf remove the option introduced by a mistake 2021-11-10 08:43:59 -06:00
Liam
ea05792043 move -- options before - options 2021-11-10 08:10:04 -06:00
Liam
33bfa1bb6c change to be the first option on of CPD 2021-11-10 07:55:29 -06:00
Clément Fournier
5ec56a91ef Output a deprecation warning 2021-11-07 21:37:42 +01:00
Liam
4d52b26faf remove and will deprecate it later 2021-11-06 13:51:52 -05:00
Liam
206b657709 seperate and current work 2021-11-06 13:20:36 -05:00
Yang
5778c338c4 Update description of --version
Co-authored-by: Clément Fournier <clement.fournier76@gmail.com>
2021-11-06 12:59:12 -05:00
Liam
e7d8b8ad28 add additional unit tests regarding long options, successfully implement the feature https://github.com/pmd/pmd/issues/3424 and https://github.com/pmd/pmd/issues/3425, and compile and build the project 2021-11-03 14:02:27 -05:00
Liam
3a8a9502de fix one minor issue related to 'version' 2021-11-03 09:21:25 -05:00
Liam
dfb83b369e fix one minor issue related to 'version' 2021-11-03 09:08:59 -05:00
Liam
59408d2ee1 follow code stdyle 2021-11-03 08:19:37 -05:00
Liam
f5bd670062 follow code stdyle 2021-11-03 08:17:31 -05:00
Liam
e844dadfb6 Add long CLI options and 'version' options and keep old ones https://github.com/pmd/pmd/issues/3424, still figuring how to build successfully with existing unit tests 2021-11-03 08:04:49 -05: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
eeaa300b7b [doc] Update release notes (#3532, #3538) 2021-10-14 09:32:51 +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
d6e2911b81 Merge pull request #3497 from adangel:fix-cpd
[core] Enable CPD check #3497
2021-09-23 10:47:26 +02:00
Andreas Dangel
1a6d60aead AvoidAccessibilityAlteration warnings
Use commons-lang3 reflection utils. Well, this of course
only hides the fact that setAccessible(true) is called.
2021-09-20 20:25:22 +02:00
Clément Fournier
e0bc09ed8e Merge branch 'master' into pr/3499 2021-09-18 13:26:12 +02:00
Andreas Dangel
8fd326ca0a [core] Fix XPath rulechain with combined node tests
For now, we don't try to optimize the expression for
rulechain. Although it would be theoretically possible:
the manual optimization looks like variant3 in the
unit test.
2021-09-10 10:06:44 +02:00
Andreas Dangel
64ef8957bc Fix code duplications 2021-09-07 20:12:27 +02:00
Andreas Dangel
c00d84aa9a [core] Fix XPath rulechain optimization bug
For XPath query "//dummyNode[ends-with(@Image,
'foo')][pmd-dummy:typeIs('bar')]"
we lost the first condition (ends-with...) and
only applied the second one (pmd-dummy:typeIs).
2021-09-02 16:18:03 +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
Clément Fournier
482268def8 Use existing function registry 2021-08-08 15:06:59 +02:00
Clément Fournier
55c005a39e Revert some changes 2021-08-08 14:47:36 +02:00
Clément Fournier
e64d485384 Add xpath function for file name 2021-08-08 14:40:25 +02:00
Clément Fournier
064c1d7aef Store file name in data key 2021-08-08 14:29:20 +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
9221cf090a Merge branch 'master' into pr-3417 2021-07-31 16:07:36 +02:00
Andreas Dangel
88547fc14c [core] Fixups from pull request review 2021-07-31 15:56:14 +02:00
Andreas Dangel
7426791473 [doc] Document new -force-language CLI option 2021-07-31 14:44:08 +02:00
Aidan Harding
6b8c12b7fd Skip parse errors on source files when -force-language is used 2021-07-30 15:29:00 +01:00
Aidan Harding
ca52b841ce Support forcing a specific language from the command-line
Store the language version provided by a -force-language command-line argument and use that as the default language before falling back to the filename
2021-07-30 14:42:31 +01:00
Andreas Dangel
b47db0a151 Merge branch 'master' into issue-3366-support-jdk-17 2021-07-30 11:16:53 +02:00
Andreas Dangel
d641b3a506 [java] Add simple rule test for latest java version
This fixes some parsing errors in java files under
src/test/resources
2021-07-30 10:32:01 +02:00