143 Commits

Author SHA1 Message Date
Andreas Dangel
ef2a97d267 [maven-release-plugin] prepare for next development iteration 2016-06-25 17:53:11 +02:00
Andreas Dangel
64d9ef96fc [maven-release-plugin] prepare release pmd_releases/5.5.0 2016-06-25 17:53:10 +02:00
Andreas Dangel
7d928296e6 Fix javadoc errors 2016-06-25 17:40:48 +02:00
Andreas Dangel
c7b94f6e5c Change the apex parser to look like "released"
The version is taken from 55042bfc2e/com.salesforce.ide.apex.core/lib
2016-06-25 17:05:47 +02:00
Andreas Dangel
0b331a921e apex - add unit test for pr-99 / Trigger Name 2016-06-25 08:50:52 +02:00
David Renz
ef78229374 Fixed Trigger name is reported incorrectly
https://github.com/Up2Go/codeclimate-apexmetrics/issues/23
2016-06-14 11:54:13 +02:00
Andreas Dangel
a454ec767a Merge branch 'master' of https://github.com/DavidRenz/pmd into pr-95 2016-06-08 19:53:48 +02:00
Andreas Dangel
af21dd5297 Fixes #1492 [CLI] IncompatibleClassChangeError when running PMD
Use the maven shade plugin to create a modified apex-jorje uber jar,
which has the old asm dependency shaded into a different package,
so that it won't collide with asm 5.
2016-06-04 20:50:19 +02:00
Andreas Dangel
d9e6bab6a9 Fixes #1488 [Apex module] Windows line endings falsify the location of issues 2016-06-02 20:28:01 +02:00
David Renz
277ce76eb6 Added new apex rule (AvoidDmlStatementsInLoops) 2016-05-30 11:55:31 +02:00
David Renz
4ef196a9b5 Tweaked Properties with real world repos 2016-05-24 16:11:39 +02:00
@rsoese (Twitter handle)
f5cbbca7d5 Tweaked Properties with real world repos 2016-05-24 15:56:02 +02:00
David Renz
2711f40413 Changed formatting of code examples
https://github.com/Up2Go/codeclimate-apex/issues/11
2016-05-24 15:22:43 +02:00
David Renz
a71bf9f234 Changed default values for Code Climate remediation points
https://github.com/Up2Go/codeclimate-apex/issues/7
2016-05-24 12:24:38 +02:00
David Renz
7c06f288e6 Fixed typo 2016-05-23 16:08:49 +02:00
David Renz
8f6542263c Added property to rules to disable block highlighting on the Code
Climate Platform
https://github.com/Up2Go/codeclimate-apex/issues/5
2016-05-23 14:49:12 +02:00
David Renz
f9162c345b Deleted unused rulesets 2016-05-23 14:46:22 +02:00
David Renz
179dfa8c71 Fixed message of NcssMethodCount Rule 2016-05-23 12:02:23 +02:00
Andreas Dangel
45ba6e9d49 Merge branch 'master' of https://github.com/Up2Go/pmd into Up2Go-master 2016-05-21 11:51:24 +02:00
Andreas Dangel
8ffaffc567 Fixes #1485 Analysis of some apex classes cause a stackoverflow error
Test file must use windows line endings
Fixes Up2Go/pmd#36
2016-05-20 21:51:22 +02:00
Andreas Dangel
501ef71e70 Verify #1485 Analysis of some apex classes cause a stackoverflow error 2016-05-20 20:10:01 +02:00
David Renz
11df8fbf40 Fixed #38 2016-05-17 10:44:54 +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
Andreas Dangel
e2cc7e3dd6 Merge branch 'master' of https://github.com/Up2Go/pmd into pr-88 2016-04-29 11:27:15 +02:00
Andreas Dangel
9579832856 Add unit test for loading and parsing the rulesets 2016-04-29 11:22:46 +02:00
David Renz
fe5e6921dd Fixed typo in ruleset.xml 2016-04-28 17:11:57 +02:00
Andreas Dangel
7460723660 documentation: new java and apex rules 2016-04-23 18:30:57 +02:00
Andreas Dangel
ec8d1d9d31 documentation: mention java 7 / java 8 requirement 2016-04-23 18:30:13 +02:00
Andreas Dangel
06bf6e8cf8 Fix empty ruleset files 2016-04-23 13:27:57 +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
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
Andreas Dangel
7af7522d11 apex: remove unnecessary dependencies, just use antlr-runtime 2016-04-17 10:02:11 +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
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
839a874157 Fix LanguageVersionTest for Java, add for Apex 2016-04-13 21:13:15 +02:00
Andreas Dangel
b0a0cf66b6 Add link to apex reference documentation 2016-04-09 19:47:23 +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