116 Commits

Author SHA1 Message Date
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
6e2e389520 [javascript] Split the rule tests 2018-09-09 12:01:36 +02:00
Clément Fournier
af5130ab00 Improvements and planned updates around PropertySource 2018-08-28 00:25:06 +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
9bb638fef2 Reformatting 2018-06-01 09:38:15 +02:00
Andreas Dangel
439624319a [ecmascript] InnaccurateNumericLiteral false positive with hex literals
Fixes #861
2018-06-01 09:38:08 +02:00
Juan Martín Sotuyo Dodero
78f7343713 [javascript] Support comment based CPD suppressions 2018-04-15 02:21:28 -03:00
Andreas Dangel
8bd1e3b486 Fix PMD dogfood: UncommentedEmptyMethodBody, SimplifyBooleanReturns,
UnnecessaryLocalBeforeReturn, OptimizableToArrayCall,
ClassWithOnlyPrivateConstructorsShouldBeFinal,
UseLocaleWithCaseConversions, NonStaticInitializer, UseCollectionIsEmpty
2018-03-10 12:04:50 +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
6bba28acbe Add categories.properties files 2017-11-07 22:23:17 +01:00
Andreas Dangel
f00224cd90 [javascript] Update rule category descriptions 2017-11-03 12:27:00 +01:00
Andreas Dangel
69be69c35c [javascript] Add category descriptions 2017-11-01 18:44:34 +01:00
Andreas Dangel
fb79716cfa [javascript] Move rule AvoidTrailingComma to errorprone 2017-11-01 18:43:35 +01:00
Andreas Dangel
a4248afbbc [javascript] Move rules and tests to new packages 2017-10-31 15:48:05 +01:00
Andreas Dangel
b2f8cc094c [javascript] Reorganize rules into categories 2017-10-31 15:32:50 +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
647a17f060 Change ant tasks over (Ecmascript5) Token class 2017-10-28 14:42:44 -03:00
Clément Fournier
6a162c238c Moved properties to n.s.pmd.properties 2017-09-14 00:05:55 +02:00
Andreas Dangel
555448aba8 Apply schema for javascript rules tests 2017-09-11 21:56:05 +02:00
Andreas Dangel
7efa9021be [doc] [javascript] Adjust externalInfoUrl properties to new site - Part 6
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
oowekyala
b103d8f011 Specialised BasicPropertyDescriptorFactory 2017-06-28 17:48:11 +02:00
Andreas Dangel
09b2644688 Merge branch 'master' of https://github.com/kdaemonv/pmd into pr-217 2017-02-02 20:53:49 +01:00
Andreas Dangel
d92688a07d Introduce end-of-line normalization
References pmd/build-tools#2
2017-02-02 20:52:08 +01:00
Dmitry Kurelchuk
769935ad4c Use OS independant line separator (PMD.EOL) in EcmascriptTokenizerTest 2017-01-29 13:24:28 +02:00
Juan Martín Sotuyo Dodero
1f9256a013 Merge branch 'pr-200' 2017-01-20 09:35:28 -03:00
Juan Martín Sotuyo Dodero
525542c9fa Checkstyle fixes 2017-01-20 09:12:22 -03:00
Maikel Steneker
1681b05222 Added test case for template strings in Ecmascript. 2017-01-20 09:11:45 -03:00
Andreas Dangel
e1d12dd4f8 Further Javadoc doclint fixes
References #1516 [build] doclint error during build
2017-01-07 17:05:03 +01:00
Andreas Dangel
3cb9a423c9 pmd-apex, pmd-javascript, pmd-plsql, pmd-vm: Checkstyle fixes 2016-12-16 16:10:04 +01:00
Andreas Dangel
d2bc0f3739 Checkstyle fixes 2016-12-03 11:31:01 +01:00
Andreas Dangel
6370b13f01 pmd-javascript: checkstyle / formatting 2016-12-02 12:49:40 +01:00
Andreas Dangel
312f614847 Merge branch 'pr-35' 2016-06-12 18:57:38 +02:00
Andreas Dangel
c92820eaae Merge branch 'pr-35' into pmd/5.4.x 2016-06-12 18:51:09 +02:00
Jan van Nunen
63293f8b31 Javascript tokenizer now ignores comment tokens. 2016-06-06 09:31:04 +02:00
Andreas Dangel
e586a3ca6d Merge branch 'bug-1481' 2016-05-28 11:46:33 +02:00
Andreas Dangel
dc1d942241 Merge branch 'bug-1481' into pmd/5.4.x 2016-05-28 11:42:01 +02:00
Andreas Dangel
e71324e08c Fix unit test for #1481 2016-05-28 11:36:35 +02:00
Andreas Dangel
426427e9f3 javascript: move test files from src/main/resources to src/test/resources 2016-05-20 19:43:44 +02:00
Andreas Dangel
9f40a707e0 Closes #1486 Add rule for no-else-return - New Javascript rule 2016-05-20 19:42:32 +02:00
Dionisio Cortes Fernandez
511c7778c5 Small code enhancements, basically reordering variable declarations, constructors and variable modifiers 2016-05-15 22:41:26 +02:00
Andreas Dangel
8bec393cf8 Use the source code position from core in javascript 2016-04-09 18:57:56 +02:00
Andreas Dangel
3e791f5d22 Merge branch 'pr-30' 2016-01-20 22:25:40 +01:00
Andreas Dangel
bd64e4fdc6 Merge branch 'pr-30' into pmd/5.4.x 2016-01-20 22:24:08 +01:00
Andreas Dangel
8c4d307ddd Refactor command line tests for CPD and create a BaseCPDCLITest class 2016-01-20 22:13:25 +01:00
Andreas Dangel
7a33d59a95 Add unit test for new behavior 2016-01-20 22:08:45 +01:00
Andreas Dangel
d563eb30fc Java 7 changes and some compiler warnings fixed 2015-11-29 19:55:13 +01:00