8426 Commits

Author SHA1 Message Date
Robert Sösemann
3ed2b3bced Added Code Climate pass through properties to ruleset.xml 2016-04-19 15:59:44 +02:00
Robert Sösemann
021c92d9a9 Fixed #35 2016-04-19 15:39:14 +02:00
David Renz
25f5399d15 #33 Changed the default values, matching our default ruleset 2016-04-19 11:52:07 +02:00
Robert Sösemann
9d5598e63a Fixed Code Climate renderer test 2016-04-18 15:39:46 +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
David Renz
f53f6594de Formatting and minor changes 2016-04-15 15:58:35 +02:00
David Renz
116e66bfd9 Formatting and minor changes 2016-04-15 15:45:03 +02:00
David Renz
1a27678a31 Added .trigger to supported extensions 2016-04-15 15:31:00 +02:00
David Renz
1f563c4841 Adapted the ruleset.xml 2016-04-15 15:14:38 +02:00
Andreas Dangel
b0773c8614 Restore accidently changed lines 2016-04-09 20:46:49 +02:00
Andreas Dangel
b0a0cf66b6 Add link to apex reference documentation 2016-04-09 19:47:23 +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
bb5d5720fd Fix duplicate dependency in pmd-dist 2016-04-09 18:59:31 +02:00
Andreas Dangel
8bec393cf8 Use the source code position from core in javascript 2016-04-09 18:57:56 +02:00
Andreas Dangel
380fdcab54 Add missing license headers 2016-04-09 18:54:46 +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
Robert Sösemann
3ae9b489a0 Merge branch 'master' of https://github.com/Up2Go/pmd.git 2016-04-08 17:51:39 +02:00
Robert Sösemann
68bad8ae6a Fixed typos 2016-04-08 17:47:24 +02:00
David Renz
2c9c5a4e54 Fixed AvoidDeeplyNestedIfStmtsRule 2016-04-08 17:31:40 +02:00
Robert Sösemann
18bc0dfe94 Ignore test classes 2016-04-08 17:13:50 +02:00
Robert Sösemann
591da4f364 Added two more Salesforce.com specific rules AvoidGlobalModifier and
AvoidLogicInTrigger
2016-04-08 17:01:45 +02:00
Robert Sösemann
243f1928b7 Added Ncss rules 2016-04-08 15:15:09 +02:00
Robert Sösemann
9e6b25ce7f Added Ncss Rules 2016-04-08 15:11:06 +02:00
David Renz
4bbcdfdb49 Fixed ExcessiveParameterListRule 2016-04-08 14:09:32 +02:00
David Renz
1d3e3d2989 Restored ExcessiveClassLengthRule and formatted test code 2016-04-08 11:52:50 +02:00
Robert Sösemann
b624880ff5 Replace Length methods with (still failing) Ncss rules 2016-04-08 00:42:11 +02:00
Robert M und David R
fafc3a2470 Added regression test for #30 2016-04-07 22:32:57 +02:00
David Renz
c6b31a8cfe Fixed #29 2016-04-07 17:26:54 +02:00
David Renz
da9c5c5f77 Added test #29 2016-04-07 17:00:34 +02:00
David Renz
6b72013429 Added test #23 2016-04-07 16:15:11 +02:00
Robert Sösemann
5e9df4a446 Improved accuracy of UserClass startLine by not returning the LOC of the
UserClass but its first ModifierNode child.
2016-04-07 13:17:57 +02:00
Robert M und David R
e8686552e7 Fixed #26 2016-04-06 21:56:46 +02:00
David Renz
dc7c36f65c Added test #26 2016-04-06 18:11:49 +02:00
Robert Sösemann
747eb9b509 Fixed #25 2016-04-06 17:01:08 +02:00
Robert Sösemann
1dc61fe071 Auto-Format classes 2016-04-06 15:17:08 +02:00
Robert Sösemann
f926a6d7cc Added class and method length dependant rules 2016-04-06 15:14:16 +02:00
David Renz
236ccecfb8 VariableNamingConvetionRule now can handle exception classes 2016-04-06 14:37:59 +02:00
David Renz
5ff244fb70 Removed some console output 2016-04-06 14:00:08 +02:00
David Renz
c970180626 Fixed ruleset.xml 2016-04-06 12:09:50 +02:00
@rsoese (Twitter handle)
d70e2b16ab Added Apex to Readme 2016-04-06 09:59:34 +02:00
Robert Sösemann
e28183b1cf Added default version so CLI won't fail with Nullpointer 2016-04-04 12:02:06 +02:00
Robert M und David R
9f0071893e Remove "unused rules" as they are to hard to finalize before the planned
pull request
2016-04-03 15:58:42 +02:00
Robert M und David R
37cf87dc4c Fixed Naming tests 2016-04-03 15:46:32 +02:00
Andreas Dangel
0cc065e682 Add a local maven repo to avoid using system scope dependencies 2016-04-02 12:26:20 +02:00
Andreas Dangel
9a5b2a7dbd Add Modifiers information (public, private, ...) 2016-04-02 12:06:37 +02:00
Andreas Dangel
46c24f3a85 Improve node position beginLine. RootNodes are handled special, they
cover the full source code. Other nodes go from their start until the start
of the next sibling.
ModifierNodes not very accurate, but Methods look quiet good now.

References #14 (https://github.com/Up2Go/pmd/issues/14)
2016-04-02 12:05:57 +02:00
David Renz
74b922af35 Fixed ExcessiveParameterListRule 2016-04-01 17:21:44 +02:00