702 Commits

Author SHA1 Message Date
Jeff Hube
e86166ee62 Add ASTFormalComment as first child, calculate position 2018-08-29 12:26:28 -04:00
Jeff Hube
df7cc1c3a7 Add ASTFormalComment 2018-08-28 17:39:29 -04:00
Jeff Hube
42ab05551d Merge branch 'master' into apexdoc 2018-08-27 15:59:42 -04:00
Juan Martín Sotuyo Dodero
1740d25cd7 Rule was moved 2018-08-27 04:06:08 -03:00
Juan Martín Sotuyo Dodero
5cf2334413 Allow both strict and lax checking mode 2018-08-27 03:02:44 -03:00
Jeff Hube
780a9e5dde Fix pr comments 2018-08-22 11:20:45 -04:00
Jeff Hube
cba80b2e0e Update rule since version 2018-08-21 17:03:28 -04:00
Jeff Hube
a4176126ca Fix rule description 2018-08-21 17:02:00 -04:00
Jeff Hube
241eda93b9 Add OneDeclarationPerStatement 2018-08-21 15:52:59 -04:00
Jeff Hube
d500e7be48 Add ApexDocRule 2018-08-21 12:42:02 -04:00
Andreas Dangel
20f52700b4 [maven-release-plugin] prepare for next development iteration 2018-07-29 12:07:05 +02:00
Andreas Dangel
868f262c21 [maven-release-plugin] prepare release pmd_releases/6.6.0 2018-07-29 12:06:56 +02:00
Andreas Dangel
444beeb220 [maven-release-plugin] prepare for next development iteration 2018-06-26 09:34:01 +02:00
Andreas Dangel
211002bb34 [maven-release-plugin] prepare release pmd_releases/6.5.0 2018-06-26 09:07:11 +02:00
Juan Martín Sotuyo Dodero
8ee39deace Upgrade to 6.0.0 categories 2018-06-23 22:33:32 -03:00
Juan Martín Sotuyo Dodero
d1b9d05a24 Merge branch 'master' into pr-836 2018-06-23 21:20:07 -03:00
Juan Martín Sotuyo Dodero
b1655f8ebc Single declaration 2018-06-23 21:16:44 -03:00
Juan Martín Sotuyo Dodero
f39865e014 Revert "Merge remote-tracking branch 'Up2Go/master'"
This reverts commit 96fd8fbca6d4cf32a4a3e1873be3a85f27699d19, reversing
changes made to 4e0dd619b6b771a9fe39c32a409c91bbd7da4829.
2018-06-23 21:07:24 -03:00
Andreas Dangel
5a7bbe19a2 dogfood: fix missing override
Note: the rule is disabled for pmd-xml, refs #1074
2018-06-16 17:48:36 +02:00
Juan Martín Sotuyo Dodero
a788d4b586 [maven-release-plugin] prepare for next development iteration 2018-05-29 13:58:54 -03:00
Juan Martín Sotuyo Dodero
e9d78ede3c [maven-release-plugin] prepare release pmd_releases/6.4.0 2018-05-29 13:58:44 -03:00
Andreas Dangel
85874e7e9c [maven-release-plugin] prepare for next development iteration 2018-04-29 09:54:45 +02:00
Andreas Dangel
10c66fbf38 [maven-release-plugin] prepare release pmd_releases/6.3.0 2018-04-29 09:54:36 +02:00
Andreas Dangel
6cb0b47ef5 [apex] Add test case, refs #776
Note: only solution right now is supressing the rule for the string.
2018-04-24 22:22:48 +02:00
Juan Martín Sotuyo Dodero
c77b0b44f3 [apex] Stricter hardcoded ID detection
- IDs are only 15, or 18 digits long
 - 18 digits long IDs are actually 15 digit IDs + checksum, which is now
validated
 - Resolves #776
2018-04-10 01:28:29 -03:00
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
Anand
7a403acaa7 Add rule preventing the use of non existent annotations in apex 2018-01-11 15:22:49 -08:00
Anand
96fd8fbca6 Merge remote-tracking branch 'Up2Go/master'
# Conflicts:
#	pmd-apex/src/main/resources/rulesets/apex/ruleset.xml
2018-01-09 17:33:32 -08:00