18614 Commits

Author SHA1 Message Date
Liam
bc7d4fb4fc Merge branch 'master' of https://github.com/duanyang25/pmd 2021-11-10 08:44:27 -06:00
Liam
f83de43cbf remove the option introduced by a mistake 2021-11-10 08:43:59 -06:00
Yang
a71ca23285 Update cli_reference accordingly to adopt GNU-style long options, keep -language and -version unchanged 2021-11-10 08:30:51 -06:00
Liam
0d90091594 Merge branch 'master' of https://github.com/duanyang25/pmd 2021-11-10 08:11:34 -06:00
Liam
ea05792043 move -- options before - options 2021-11-10 08:10:04 -06:00
Yang
04f4cdf579 change CPD.md to the new option "--fail-on-violation" 2021-11-10 08:04:39 -06:00
Liam
49204826bc Revert "change it to the new option "--fail-on-violation""
This reverts commit a0410bd480cd3b2ec7b900ab3b1c6b6969034208.
2021-11-10 07:57:40 -06:00
Liam
a944dd6cc6 Merge branch 'master' of https://github.com/duanyang25/pmd 2021-11-10 07:56:55 -06:00
Liam
33bfa1bb6c change to be the first option on of CPD 2021-11-10 07:55:29 -06:00
Yang
a0410bd480 change it to the new option "--fail-on-violation" 2021-11-10 07:45:41 -06:00
Yang
dad5e0d504 Change it to --aux-classpath 2021-11-10 07:06:44 -06:00
Clément Fournier
2f787f74df Merge branch 'master' into pr/3600 2021-11-07 21:44:34 +01: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
f18ceebd7b Bump pmd from 6.39.0 to 6.40.0 2021-10-30 10:56:51 +02:00
Andreas Dangel
442365b975 Bump maven from 3.8.2 to 3.8.3 2021-10-30 10:56:19 +02:00
Andreas Dangel
51340b5df1 Prepare next development version 2021-10-30 10:17:33 +02: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 pmd_releases/6.40.0 2021-10-30 10:00:15 +02:00
Andreas Dangel
fd391160b4 Prepare pmd release 6.40.0 2021-10-30 09:45:25 +02:00
Andreas Dangel
d914447266 [ci] Improve stats script to consider closed milestones as well 2021-10-30 09:37:16 +02:00
Andreas Dangel
426865e20d [doc] release notes: add experimental api, fix missing closing tag 2021-10-30 09:29:08 +02:00
Andreas Dangel
ac26d3dc6d Merge pull request #3584 from adangel:issue-3563-classnamingconventions
[java] ClassNamingConventions: Disable utilityClassPattern by default
#3584
2021-10-29 19:16:58 +02:00
Andreas Dangel
857894928a Merge pull request #3557 from adangel:doc-vf-typeres
[doc] Visualforce type resolution #3557

* pr-3557:
  [doc] Visualforce type resolution
2021-10-29 19:15:28 +02:00
Andreas Dangel
9a07b81612 Merge pull request #3544 from adangel:issue-3368-hardcoded-crypto-key
[java] HardcodedCryptoKey false negative with variable assignments #3368

* pr-3544:
  Simplify getUsages call
  Fix stack overflow error
  [java] HardcodedCryptoKey false negative with variable assignments
#3368
2021-10-29 19:14:31 +02:00
Andreas Dangel
ec164b4bf0 Simplify getUsages call
Co-authored-by: Clément Fournier <clement.fournier76@gmail.com>
2021-10-29 19:12:17 +02:00
Andreas Dangel
15270c8bd9 Merge pull request #3543 from adangel:issue-3542-missing-override-enum
[java] MissingOverride: False negative for enum method #3542
2021-10-29 19:07:49 +02:00
Andreas Dangel
f5fd79d489 Merge pull request #3582 from oowekyala:cleanup-3581
[apex] Cleanup after #3581 #3582

* pr-3582:
  [apex] comments: use index instead of line/column to map to node
  [apex] comments: consider position index in the same line
  [apex] EmptyCatchBlock: Improve test case
  Added a new test case verifying the expected boundary condition behavior for allowing commented blocks.
  Cleanup after #3581
2021-10-29 09:50:17 +02:00
Andreas Dangel
a9221d411b Merge pull request #3555 from adangel:update-apex-jorje
[apex] Update jorje to version 54.0 (Spring '22) #3555

* pr-3555:
  [apex] Fix errors due to jorje update
  [apex] Update jorje to version 54.0 (Spring '22)
2021-10-28 11:39:39 +02:00
Andreas Dangel
2a8db8b97c Merge branch 'master' into pr-3555 2021-10-28 11:35:12 +02:00
Andreas Dangel
b70b981145 [apex] comments: use index instead of line/column to map to node 2021-10-28 11:21:12 +02:00
Andreas Dangel
e05e0df39a [apex] comments: consider position index in the same line 2021-10-28 11:07:39 +02:00
Andreas Dangel
f3c17a0e02 [apex] EmptyCatchBlock: Improve test case
also test for doc comments
2021-10-28 10:29:08 +02:00
Scott Wells
aa271e5bc3 Added a new test case verifying the expected boundary condition behavior for allowing commented blocks. 2021-10-28 09:22:44 +02:00
Andreas Dangel
f4d34f96c4 [doc] Update release notes (#3574, #3580, #3581) 2021-10-25 19:18:40 +02:00
Andreas Dangel
3093013ff7 [java] ClassNamingConventions: Disable utilityClassPattern by default
- Fixes #1595
- Fixes #3563
2021-10-25 18:37:08 +02:00
Clément Fournier
7a9d0db3a7 Cleanup after #3581 2021-10-24 17:11:57 +02:00
Robert Sösemann
591d6c64ad Merge pull request #3581 from SCWells72/pmd-3569-feedback 2021-10-23 21:08:37 +02:00
Scott Wells
e0cd2a6ae2 Made the check for whether a node contains comments more efficient. Instead of having to inspect all commented lines in the file for each comment container, we now pre-calculate an index of which lines were comments, and then we see whether any of the lines in a comment container's range are flagged in that index. Given that we're currently only going to perform this logic for ASTCatchBlockStatement nodes, hopefully this should be very efficient. If/when this logic is expanded to include other node types, we can revisit and determine whether another approach such as a binary search for lines in a given range is a better fit.
Made AbstractApexCommentContainerNode package-private.
2021-10-23 13:58:34 -05:00
Robert Sösemann
515a6d0fd7 Merge pull request #3574 from SCWells72/pmd-3569
[apex] Fix for #3569 - Added new configuration properties allowCommentedBlocks and allowExceptionNameRegex to EmptyCatchBlock
2021-10-23 20:16:08 +02:00
Robert Sösemann
494520bb03 Merge pull request #3580 from SCWells72/pmd-3569-release-notes
[doc] Release notes updates for the changes in issue #3569.
2021-10-23 20:15:53 +02:00
Scott Wells
67c4f0bcb5 Addressed code review feedback, specifically providing tighter encapsulation for 'setContainsComment' and marking the 'ASTCommentContainer' interface as experimental. 2021-10-23 09:58:02 -05:00