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 96fd8fbca6 , reversing
changes made to 4e0dd619b6 .
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
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
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
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
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
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
d6a9be55a8
Unify rule category names
2017-12-15 11:22:33 +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
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
Clément Fournier
fc0cb45f49
Merge branch 'master' into properties-builder
2017-11-01 18:21:54 +01:00
Clément Fournier
6b50104cb5
Corrections for PR #669
2017-11-01 18:17:57 +01:00
Juan Martín Sotuyo Dodero
2d15c6dba6
Merge branch 'pr-661'
2017-10-19 00:42:27 -03:00
Juan Martín Sotuyo Dodero
8ef0d6989c
Move AvoidHardcodingIdRule to style ruleset
2017-10-18 23:58:44 -03:00
Juan Martín Sotuyo Dodero
e3f9c728d7
content update
2017-10-18 23:51:01 -03:00
Clément Fournier
a47471f742
Replace IntegerProperty
2017-10-15 22:22:36 +02:00
Jan Aertgeerts
475405e18f
[apex] test issue - count
2017-10-09 23:43:43 +02:00
Jan Aertgeerts
9845f74f68
[apex] rework visit
2017-10-09 23:35:14 +02:00
Jan Aertgeerts
6989b45067
[apex] avoid hardcoding id's
2017-10-09 23:24:47 +02:00