468 Commits

Author SHA1 Message Date
Andreas Dangel
f3ab54d6da [maven-release-plugin] prepare for next development iteration 2018-03-26 09:23:23 +02:00
Andreas Dangel
59b360a60a [maven-release-plugin] prepare release pmd_releases/6.2.0 2018-03-26 09:23:14 +02:00
Clément Fournier
ee85254bd0 Merge branch 'master' 2018-03-24 19:05:13 +01:00
Andreas Dangel
f335e83043 Cleanup pom.xml files 2018-03-23 10:21:16 +01:00
Andreas Dangel
f2c8b5e2e8 Make the project be importable by IntelliJ IDEA
See https://youtrack.jetbrains.com/issue/IDEA-188690
2018-03-21 21:54:31 +01:00
Clément Fournier
06e38128c4 Wire the visitor into SourceCodeProcessor
We need a way to configure which visitors are run on nodes
obtained from ParserTstUtil
2018-03-19 14:05:51 +01:00
Andreas Dangel
d6ccc58f20 Corrections from PR review (#908), make the metrics visitors extendable again 2018-03-10 20:52:11 +01:00
Andreas Dangel
8bd1e3b486 Fix PMD dogfood: UncommentedEmptyMethodBody, SimplifyBooleanReturns,
UnnecessaryLocalBeforeReturn, OptimizableToArrayCall,
ClassWithOnlyPrivateConstructorsShouldBeFinal,
UseLocaleWithCaseConversions, NonStaticInitializer, UseCollectionIsEmpty
2018-03-10 12:04:50 +01:00
Andreas Dangel
5b93b14373 Fix PMD dogfood: AssignmentInOperand, LooseCoupling 2018-03-09 16:28:14 +01:00
Andreas Dangel
c85abd258a Fix PMD dogfood: AvoidPrefixingMethodParameters, UnnecessaryConstructor,
AvoidUsingShortType
2018-03-09 16:04:15 +01:00
Andreas Dangel
cf88117820 Fix PMD dogfood: UnusedFormalParameter, UselessParentheses and UselessOverridingMethod 2018-03-09 12:52:20 +01:00
Andreas Dangel
fb4d564e8b Fix PMD dogfood: AvoidBranchingStatementAsLastInLoop 2018-03-09 09:58:04 +01:00
Andreas Dangel
4ace14899c Fix PMD dogfood: UnusedPrivateField
Refs #361
2018-03-09 09:57:15 +01:00
Andreas Dangel
098b0dcac0 [maven-release-plugin] prepare for next development iteration 2018-02-25 09:53:26 +01:00
Andreas Dangel
101b71a13e [maven-release-plugin] prepare release pmd_releases/6.1.0 2018-02-25 09:53:19 +01:00
Andreas Dangel
73de6eb1f0 [ci] Use Java9 for building PMD
Fixes #854
2018-02-18 21:49:25 +01:00
Clément Fournier
0578b36145 Cleanup AbstractNode 2018-01-25 14:15:57 +01:00
Clément Fournier
27ccd140ef Cleanup 2018-01-25 03:06:54 +01:00
Clément Fournier
6a3b332aee Abstract toString into AbstractNode, deprecate the implementation
Log that the default implementation will be removed
2018-01-25 03:02:44 +01:00
Clément Fournier
3c0bb45a60 Add getXPathNodeName to the Node interface
A default implementation is available in AbstractNode
to preserve compatibility with the previous way, which
used Object.toString.

Fixes #569
2018-01-24 19:22:36 +01:00
Andreas Dangel
8fbb156fd9 [maven-release-plugin] prepare for next development iteration 2018-01-21 16:42:50 +01:00
Andreas Dangel
0e460317e4 [maven-release-plugin] prepare release pmd_releases/6.0.1 2018-01-21 16:42:42 +01:00
Andreas Dangel
4ba1cbcb46 Use bootclasspath when building for java7
Note: this is only works correctly, if the property java7.home is set
Fixes #842
2018-01-12 23:36:18 +01:00
Andreas Dangel
0ce2939c6b Change version to 6.0.1-SNAPSHOT 2017-12-23 09:54:03 +01:00
Juan Martín Sotuyo Dodero
b25e68d907 Merge branch 'pr-799' 2017-12-21 00:35:48 -03:00
Robert Sösemann
9304c70084 Fixes #788 [apex] Method chaining breaks ApexCRUDViolation 2017-12-20 23:25:40 +01:00
Robert Sösemann
f267a8f7c7 Fixed https://github.com/pmd/pmd/issues/792 2017-12-20 15:58:12 +01:00
Andreas Dangel
a975048655 [maven-release-plugin] prepare for next development iteration 2017-12-15 16:01:22 +01:00
Andreas Dangel
9b6fe90225 [maven-release-plugin] prepare release pmd_releases/6.0.0 2017-12-15 16:01:14 +01:00
Andreas Dangel
d6a9be55a8 Unify rule category names 2017-12-15 11:22:33 +01:00
Andreas Dangel
a86aea2379 [apex] Create separate module "pmd-apex-jorje" which provides the apex jorje parser 2017-12-06 20:14:03 +01:00
Andreas Dangel
6a5e49efee [apex] Attach apex jorje jar using classifier "apex-jorje" 2017-12-05 22:34:43 +01:00
Andreas Dangel
38bc6bf1fa [apex] Fix suppress warnings support 2017-12-04 21:44:57 +01:00
Andreas Dangel
892a673c9f [apex] Remove empty catches, fix old reflections calls in Helper 2017-12-04 21:44:57 +01:00
Andreas Dangel
dbcd36cd7a [apex] Fix ApexCRUDViolation rule
- reflection not necessary anymore
- constructor is now not anymore returned
as <init> but as the actual name
2017-12-04 21:44:57 +01:00
Andreas Dangel
7f8c8a0854 [apex] Fix line/column numbering 2017-12-04 21:44:57 +01:00
Andreas Dangel
29c7061bde [apex] Adjust to new apex jorje 2017-12-04 21:44:52 +01:00
Andreas Dangel
6caad3485c [apex] Add script to create minimized apex jorje jar, add jar as dependency 2017-12-04 21:14:27 +01:00
Andreas Dangel
7fa49aacc6 [apex] Declare transitive dependencies 2017-12-04 21:13:54 +01:00
Clément Fournier
2c94dd993d Corrections for PR #771 2017-11-30 19:31:11 +01:00
Clément Fournier
41a6b78231 Revert back to __ from :: for Apex namespaces 2017-11-30 18:38:11 +01:00
Clément Fournier
41a3202a18 Fix Apex metrics framework failing on triggers, refs #768 2017-11-30 15:22:26 +01:00
Juan Martín Sotuyo Dodero
309b964441 [apex] Avoid FPs on non-existing else block
- IfElseStatement always has 2 BlockStatements, for the if and the
   else, even if not present on the code. When that happens, the phantom
   block is given the same location the parent has.
 - Fixes #760
2017-11-27 10:43:23 -03:00
Andreas Dangel
6bba28acbe Add categories.properties files 2017-11-07 22:23:17 +01:00
Juan Martín Sotuyo Dodero
8d381daeb3 Merge branch 'pr-669' 2017-11-04 19:40:14 -03:00
Juan Martín Sotuyo Dodero
5d6a03612e Rename builder method 2017-11-04 19:19:39 -03:00
Andreas Dangel
e064efbad3 [apex] Move AvoidHardCodingId Rule to errorprone 2017-11-04 20:16:04 +01:00
Andreas Dangel
7e3b3fbff5 [apex] Update code climate ruleset 2017-11-03 14:45:27 +01:00
Andreas Dangel
8c53cb8879 [apex] Move rules and tests to new packages 2017-11-03 14:25:26 +01:00
Andreas Dangel
e9425e34d8 [apex] Reorganize rules into categories 2017-11-03 14:05:40 +01:00