59 Commits

Author SHA1 Message Date
78f7343713 [javascript] Support comment based CPD suppressions 2018-04-15 02:21:28 -03:00
8bd1e3b486 Fix PMD dogfood: UncommentedEmptyMethodBody, SimplifyBooleanReturns,
UnnecessaryLocalBeforeReturn, OptimizableToArrayCall,
ClassWithOnlyPrivateConstructorsShouldBeFinal,
UseLocaleWithCaseConversions, NonStaticInitializer, UseCollectionIsEmpty
2018-03-10 12:04:50 +01:00
6a3b332aee Abstract toString into AbstractNode, deprecate the implementation
Log that the default implementation will be removed
2018-01-25 03:02:44 +01:00
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
6bba28acbe Add categories.properties files 2017-11-07 22:23:17 +01:00
f00224cd90 [javascript] Update rule category descriptions 2017-11-03 12:27:00 +01:00
69be69c35c [javascript] Add category descriptions 2017-11-01 18:44:34 +01:00
fb79716cfa [javascript] Move rule AvoidTrailingComma to errorprone 2017-11-01 18:43:35 +01:00
a4248afbbc [javascript] Move rules and tests to new packages 2017-10-31 15:48:05 +01:00
b2f8cc094c [javascript] Reorganize rules into categories 2017-10-31 15:32:50 +01:00
91b8a22b42 Update GenericToken specialToken method to obtain only comment tokens 2017-10-28 14:42:44 -03:00
e8fdbdbca4 Update GenericToken interface to expose directly region methods 2017-10-28 14:42:44 -03:00
647a17f060 Change ant tasks over (Ecmascript5) Token class 2017-10-28 14:42:44 -03:00
6a162c238c Moved properties to n.s.pmd.properties 2017-09-14 00:05:55 +02:00
555448aba8 Apply schema for javascript rules tests 2017-09-11 21:56:05 +02:00
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
3d9511a0e5 [doc] Remove old maven site 2017-08-15 14:31:03 +02:00
b103d8f011 Specialised BasicPropertyDescriptorFactory 2017-06-28 17:48:11 +02:00
09b2644688 Merge branch 'master' of https://github.com/kdaemonv/pmd into pr-217 2017-02-02 20:53:49 +01:00
d92688a07d Introduce end-of-line normalization
References pmd/build-tools#2
2017-02-02 20:52:08 +01:00
769935ad4c Use OS independant line separator (PMD.EOL) in EcmascriptTokenizerTest 2017-01-29 13:24:28 +02:00
1f9256a013 Merge branch 'pr-200' 2017-01-20 09:35:28 -03:00
525542c9fa Checkstyle fixes 2017-01-20 09:12:22 -03:00
1681b05222 Added test case for template strings in Ecmascript. 2017-01-20 09:11:45 -03:00
e1d12dd4f8 Further Javadoc doclint fixes
References #1516 [build] doclint error during build
2017-01-07 17:05:03 +01:00
3cb9a423c9 pmd-apex, pmd-javascript, pmd-plsql, pmd-vm: Checkstyle fixes 2016-12-16 16:10:04 +01:00
d2bc0f3739 Checkstyle fixes 2016-12-03 11:31:01 +01:00
6370b13f01 pmd-javascript: checkstyle / formatting 2016-12-02 12:49:40 +01:00
312f614847 Merge branch 'pr-35' 2016-06-12 18:57:38 +02:00
c92820eaae Merge branch 'pr-35' into pmd/5.4.x 2016-06-12 18:51:09 +02:00
63293f8b31 Javascript tokenizer now ignores comment tokens. 2016-06-06 09:31:04 +02:00
e586a3ca6d Merge branch 'bug-1481' 2016-05-28 11:46:33 +02:00
dc1d942241 Merge branch 'bug-1481' into pmd/5.4.x 2016-05-28 11:42:01 +02:00
e71324e08c Fix unit test for #1481 2016-05-28 11:36:35 +02:00
426427e9f3 javascript: move test files from src/main/resources to src/test/resources 2016-05-20 19:43:44 +02:00
9f40a707e0 Closes #1486 Add rule for no-else-return - New Javascript rule 2016-05-20 19:42:32 +02:00
511c7778c5 Small code enhancements, basically reordering variable declarations, constructors and variable modifiers 2016-05-15 22:41:26 +02:00
8bec393cf8 Use the source code position from core in javascript 2016-04-09 18:57:56 +02:00
3e791f5d22 Merge branch 'pr-30' 2016-01-20 22:25:40 +01:00
bd64e4fdc6 Merge branch 'pr-30' into pmd/5.4.x 2016-01-20 22:24:08 +01:00
8c4d307ddd Refactor command line tests for CPD and create a BaseCPDCLITest class 2016-01-20 22:13:25 +01:00
7a33d59a95 Add unit test for new behavior 2016-01-20 22:08:45 +01:00
d563eb30fc Java 7 changes and some compiler warnings fixed 2015-11-29 19:55:13 +01:00
5ee98b8786 Fix javascript after upgrading rhino library 2015-10-04 12:00:24 +02:00
0c69ed6f8b PMD exit with status 4 if violations have been found. 2015-03-21 19:03:03 +01:00
3a4caa5c7c Fix PMD dogfood issues in pmd-cs, pmd-jsp, pmd-javascript, pmd-test 2014-11-16 00:15:47 +01:00
6b0ddaeb51 #1254 CPD run that worked in 5.1.2 fails in 5.1.3 with OOM
Removed default heapsize of 512m
reenabled multiple line strings in javascript
2014-11-15 21:44:37 +01:00
4da773b7fc Add ruleset factory tests for all languages 2014-11-09 11:20:54 +01:00
238f54ad70 Update rhino dependency to 1.7R4 2014-10-18 21:52:08 +02:00
9ade75a621 Refactor CPDGui to detect available languages dynamically 2014-10-12 10:43:53 +02:00