156 Commits

Author SHA1 Message Date
Clément Fournier
b62b216b29 Merge branch 'pr-1399' 2018-10-27 22:55:10 +02:00
Clément Fournier
39f87ca5f3 Update schema location in rulesets 2018-10-27 21:02:16 +02:00
Will Herrmann
377baf7caf Replacing IOUtils.closeQuietly(foo) with try-with-resources statements 2018-10-19 14:23:51 -05:00
Andreas Dangel
6d00e74142 Use new base class PmdRuleTst for rule tests 2018-10-05 20:33:38 +02:00
Andreas Dangel
52be023f80 Simplify rule tests, directly inherit from SimpleAggregatorTst
for apex, javascript, jsp, plsql, visualforce, vm, xml
2018-09-09 13:10:44 +02:00
Andreas Dangel
872413b85e [vf] Split the rule tests 2018-09-09 12:01:36 +02: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
fa24fa04af Merge branch 'pr-1106' 2018-05-16 19:43:27 +02:00
Andreas Dangel
7b51dd1570 Extend unit tests, refs #1100 2018-05-16 19:41:58 +02:00
Robert Sösemann
9a2ac14b05 [vf] URLENCODE is ignored as valid escape method #1100 2018-05-16 15:46:40 +02: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
cf88117820 Fix PMD dogfood: UnusedFormalParameter, UselessParentheses and UselessOverridingMethod 2018-03-09 12:52:20 +01:00
Andreas Dangel
f452adbf6a Fix PMD dogfood: SimplifiedTernary 2018-03-09 10:26:23 +01:00
Clément Fournier
b1c5e3dfc0 Revert making AbstractVFNode and AbstractJspNode abstract
Revert me for 7.0.0

see #881, #879
2018-01-25 12:14:22 +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
d6a9be55a8 Unify rule category names 2017-12-15 11:22:33 +01:00
Andreas Dangel
06a1244e15 [doc] Add unit test for all rulesets and fix existing rulesets 2017-11-10 14:03:05 +01:00
Andreas Dangel
6bba28acbe Add categories.properties files 2017-11-07 22:23:17 +01:00
Andreas Dangel
cae170f4e2 [visualforce] Reorganize rules into categories 2017-11-03 16:37:34 +01:00
gonzalo
91b8a22b42 Update GenericToken specialToken method to obtain only comment tokens 2017-10-28 14:42:44 -03:00
gonzalo
e8fdbdbca4 Update GenericToken interface to expose directly region methods 2017-10-28 14:42:44 -03:00
gonzalo
26461e59c1 Simplify method name in GenericToken && improve ant task replacetoken 2017-10-28 14:42:44 -03:00
gonzalo
95835b8134 Update getter in GenericToken 2017-10-28 14:42:44 -03:00
gonzalo
00ce16c177 [Not Working] Change ant tasks over (VisualForce) Token class 2017-10-28 14:42:44 -03:00
Andreas Dangel
284938b97b Apply schema for visualforce tests 2017-09-11 21:56:05 +02:00
Andreas Dangel
af782c542c [doc] [visualforce] Adjust externalInfoUrl properties to new site - Part 9
Note: I also took the chance to fix tab damage
2017-08-15 14:31:03 +02:00
Andreas Dangel
3d9511a0e5 [doc] Remove old maven site 2017-08-15 14:31:03 +02:00
Andreas Dangel
6bb044b517 vf: Update shortname of VisualForce
Looks nicer in the Designer menu than just "vf".
2017-06-11 09:21:02 +02:00
Sergey
74199a0d9b Additional test case 2017-04-26 15:39:42 -07:00
Sergey
0386d712b3 Adding AST Negation expression 2017-04-26 15:35:53 -07:00
Sergey
95d1a68ebc Fixing regression 2017-04-14 13:51:15 -07:00
Juan Martín Sotuyo Dodero
a345e1585a Merge branch 'pr-340' 2017-04-14 17:21:51 -03:00
Sergey
5c8d324230 Removing comment AST nodes for cleaner tree 2017-04-14 10:39:03 -07:00
Sergey
7a9ccb70df JS encoded and parsed JSON is safe 2017-04-12 15:53:24 -07:00
Sergey
f2683c6cb4 Quoted EL in JSON.parse is safe 2017-04-12 15:43:37 -07:00
Sergey
e6966c7ca4 Json.parse is a safe evaluation 2017-04-12 15:32:42 -07:00
Sergey
e7bcf6fdfa NOT(..) is a safe evaluation 2017-04-12 15:08:21 -07:00
Sergey
ee0558a07c Missed a file 2017-04-12 13:17:27 -07:00
Sergey
2aa1d9e98e Style fix 2017-04-12 10:56:30 -07:00
Sergey
019b65b6a2 Revert of debugging 2017-04-12 10:54:42 -07:00
Sergey
d18b3a0bf8 Adding comment support for quoted attributes 2017-04-12 09:42:35 -07:00
Sergey
5d1d4031e6 Adding inner comment support for scripts 2017-04-11 16:34:01 -07:00
Sergey
071c58dbee Removing styles and a few bug fixes 2017-04-11 13:42:06 -07:00
Sergey
0e3b8fdc5f Fixing quote detection and argument detection 2017-04-05 10:36:38 -07:00
Sergey
16b7cbcb4e Bug fixes for incorrect detection of id's 2017-03-29 14:41:45 -07:00
Juan Martín Sotuyo Dodero
ce1707d92a Add more tests to cover all added scenarios 2017-03-28 16:33:13 -03:00
Sergey
60a838c39f Bug fix 2017-03-28 09:27:50 -07:00
Juan Martín Sotuyo Dodero
2d488b2285 Fix VisualForce CPD config 2017-03-14 23:11:24 -03:00
Andreas Dangel
c7756bdc8a Merge branch 'VfParserTabSize' of https://github.com/sgorbaty/pmd into pr-288 2017-03-11 16:02:48 +01:00