4314 Commits

Author SHA1 Message Date
Andreas Dangel
b2db6432e0 Merge branch 'release/multiple-code-improvements-fix-1' of https://github.com/DevFactory/pmd into DevFactory-release/multiple-code-improvements-fix-1 2016-05-20 19:11:14 +02:00
Andreas Dangel
9c21c14a85 Merge branch 'master' of https://github.com/dionisioC/pmd into dionisioC-master 2016-05-20 18:56:18 +02:00
David Renz
0cb7987388 Fixed #40 2016-05-20 12:46:06 +02:00
David Renz
4c0ce89afd Improved Markdown output #40 2016-05-19 14:12:22 +02:00
Robert Sösemann
2c023408ed Solved Markdown with line breaks inside of JSON problem 2016-05-18 21:17:31 +02:00
Andreas Dangel
9451ad025c Merge branch 'issue-1360-ruleset-compatibility' 2016-05-18 21:03:17 +02:00
Andreas Dangel
6cd0ca309f Merge branch 'issue-1360-ruleset-compatibility' into pmd/5.4.x 2016-05-18 20:57:53 +02:00
Andreas Dangel
f32beeb726 Provide a command line option for #1360 - "-noRuleSetCompatibility" 2016-05-18 20:38:44 +02:00
Robert Sösemann
cf61dcc644 Renderer test 2016-05-17 22:17:28 +02:00
Robert Sösemann
2daa7e7773 Added rule information as JSON Body readup 2016-05-17 17:26:47 +02:00
Robert Sösemann
b4a0e07806 Remove line breaks and multi-spaces before passing rule violation
description to JSON
2016-05-17 16:55:16 +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
ba18ee705e Merge branch 'issue-1360-ruleset-compatibility' 2016-05-13 19:06:33 +02:00
Andreas Dangel
fadd6a9a1c Merge branch 'issue-1360-ruleset-compatibility' into pmd/5.4.x 2016-05-13 19:02:53 +02:00
Andreas Dangel
1b65c7fe91 References #1360 Provide backwards combatibility for PMD configuration file
Handle exclusions
2016-05-13 18:53:00 +02:00
Andreas Dangel
44ee51d5a6 References #1360 Provide backwards combatibility for PMD configuration file
Add test cases for excluded rules
2016-05-06 11:08:25 +02:00
Andreas Dangel
15fd444b7a References #1360 Provide backwards combatibility for PMD configuration file 2016-05-06 10:52:43 +02:00
Andreas Dangel
bab3e965ff Fixes #1478 PMD CLI - Use first language as default if Java is not available 2016-05-05 19:59:06 +02:00
George Kankava
ae078e7252 multiple code improvements: squid:S1192, squid:S1118, squid:S1066, squid:S1854, squid:S2864 2016-05-05 09:47:50 +04:00
Dionisio
9ab1b23a5a Refactored two test to spot using the deprecated ant class BuildFileTest 2016-05-02 22:46:19 +02:00
Andreas Dangel
be8da01858 Merge branch 'master' of https://github.com/dionisioC/pmd into dionisioC-master 2016-05-01 13:47:45 +02:00
Dionisio
a69cfa2223 Changing tabs for spaces so the code dones't look awkward 2016-04-30 23:27:50 +02:00
Dionisio
5be8148e99 Some code enhancements:
PMD.java. splited the imports to avoid check style message: Using the '.*' form of import should be avoided - net.sourceforge.pmd.lang.*.
AbstractNodeInfo now has all the overrides
String utils now has the EMPTY_STRING variable declared as private and a getter method to access it. Refactored isSame to avoid using     @SuppressWarnings("PMD.CompareObjectsWithEquals")
DFAPanel uses the getter for empty strings. Also deleted comments that seems to be old code and addd the override to valueChanged
In DBMSMetadadataTest we were passing a parameter to  System.out.format but it hasn't the place holder for the parameter
2016-04-30 23:21:43 +02:00
Andreas Dangel
0c02da8313 Fix compile errors - commons-lang3 should be used 2016-04-29 11:32:31 +02:00
Andreas Dangel
e2cc7e3dd6 Merge branch 'master' of https://github.com/Up2Go/pmd into pr-88 2016-04-29 11:27:15 +02:00
Robert Sösemann
130f05cffd Moved special handling code from model into renderer class 2016-04-28 21:18:19 +02:00
David Renz
dfe2cc0ef5 Fixed the CodeClimate renderer - Cut off the "/Code/" working directory
of CodeClimate engines in order to get the relative path.
2016-04-28 18:51:38 +02:00
Andreas Dangel
7460723660 documentation: new java and apex rules 2016-04-23 18:30:57 +02:00
Andreas Dangel
33983b3358 Refactor code climate categories to be a EnumeratedMultiProperty as
this is not a free text string property - only specific values
are supported
2016-04-23 11:43:48 +02:00
Andreas Dangel
78470b909f Merge branch 'master' of https://github.com/Up2Go/pmd into pr87 2016-04-23 11:16:08 +02:00
Robert Sösemann
3ed2b3bced Added Code Climate pass through properties to ruleset.xml 2016-04-19 15:59:44 +02:00
Robert Sösemann
9d5598e63a Fixed Code Climate renderer test 2016-04-18 15:39:46 +02:00
Andreas Dangel
487ac7d509 Make PMD Language modules comparable and provide a default implementation 2016-04-17 19:42:00 +02:00
Robert Sösemann
c50fd060ed 1) Renamed CodeClimate specific properties to better be recognizable as
CodeClimate specific
2) Added Code Climate categegories pass through property to not depend
on our current ruleset name = category solution
2016-04-16 20:25:20 +02:00
Robert Sösemann
2da0108306 Added CodeClimateRule to enhance Apex rules with pass through properties
needed for a sensible Code Climate output (currently only a multiplier
for their remediation_point default min value of 50.000)
2016-04-15 23:03:13 +02:00
David Renz
67daf44dcd Improved Code Climate Renderer
JSON report now indicates the proper category
2016-04-15 17:49:08 +02:00
David Renz
b303f27554 Changed all rule categories according to the categories of the Code
Climate Spec https://github.com/codeclimate/spec/blob/master/SPEC.md
2016-04-15 17:30:14 +02:00
Andreas Dangel
b230d4eebc Merge branch 'master' of https://github.com/Up2Go/pmd into Up2Go-master 2016-04-10 17:18:42 +02:00
Andreas Dangel
40bf24bced Provide a warning and do not fail, if java7 is used 2016-04-09 19:45:55 +02:00
Andreas Dangel
8bec393cf8 Use the source code position from core in javascript 2016-04-09 18:57:56 +02:00
Andreas Dangel
365b403005 Using now startIndex and endIndex of the location. Works for most cases.
Only exceptions are:
*   Methods: the end is determined by the contained block statement
*   Root nodes: the end is just the end of the whole source file

Uses the source code position from the javascript module.


Fixes Up2Go/pmd#30
2016-04-09 18:46:46 +02:00
Andreas Dangel
1e957080eb Merge branch 'pr-33' 2016-03-29 20:18:30 +02:00
Andreas Dangel
395a40a7ae Merge branch 'pr-33' into pmd/5.4.x 2016-03-29 20:06:23 +02:00
Andreas Dangel
c9ff12785a Merge branch 'bug-1461-doc' 2016-03-13 15:29:16 +01:00
Andreas Dangel
e58feea9cd Merge branch 'bug-1461-doc' into pmd/5.4.x 2016-03-13 15:29:10 +01:00
Andreas Dangel
c571abdb1d Merge branch 'bug-1461-doc' into pmd/5.3.x 2016-03-13 15:28:58 +01:00
Andreas Dangel
0725586b9a Update documentation about thread safety of rules (see #1461) 2016-03-13 15:28:37 +01:00
Andreas Dangel
3dd8156014 Merge branch 'bug-1461' into pmd/5.4.x 2016-03-10 20:23:43 +01:00
Andreas Dangel
ccbb372a4f Fix compile error (pmd 5.3.x is on java6) 2016-03-10 20:19:30 +01:00
Andreas Dangel
baf4a9c7f5 Merge branch 'bug-1461' 2016-03-10 20:16:26 +01:00