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
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
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
Robert Sösemann
d22bfe7b70
Temporarilly removed length rules due to issue #14
2016-04-01 17:10:55 +02:00
David Renz
cdb52e23b3
Fixed ExcessivePublicCountRule and some minor changes
2016-04-01 16:45:52 +02:00
David Renz
1fbfdf3842
Added ExcessivePublicCountRule
2016-04-01 13:33:32 +02:00
David Renz
1b1f3454d7
Removed NcssCountRules and NPathComplexityRule
2016-04-01 12:02:12 +02:00
David Renz
4593909dcc
Fixed StdCyclomaticComplexityRule
2016-04-01 11:42:40 +02:00
Robert Sösemann
8f7ad9c1ab
Added Unused code port (don't compile)
2016-03-31 17:18:18 +02:00
Robert Sösemann
ecd7fbc59d
Merge branch 'master' of https://github.com/Up2Go/pmd.git
...
Conflicts:
pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/ast/ApexParserVisitorAdapter.java
pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/rule/AbstractApexRule.java
2016-03-31 17:13:21 +02:00
Robert Sösemann
2acbc44b0a
.
2016-03-31 17:08:31 +02:00
Robert Sösemann
b22274c972
Fixed Naming Rules
2016-03-31 17:05:43 +02:00
David Renz
44dbe2283c
Merge branch 'master' of https://github.com/Up2Go/pmd.git
2016-03-31 14:53:27 +02:00
David Renz
6458f90d23
small rule improvements
2016-03-31 14:52:44 +02:00
Robert Sösemann
e3da2619dd
CDP is also running for Apex (CLI and GUI)
2016-03-31 14:50:31 +02:00
Robert Sösemann
b77fef6338
Ported very useful AvoidDeeplyNestedIfStmtsRule
2016-03-31 11:17:36 +02:00
Robert Sösemann
9069f53a23
Added PMD configuration file which will be the default used by the
...
CodeClimate engine if the user src doesn't contain an overriding file
2016-03-31 09:49:47 +02:00
Robert Sösemann
83931857e3
Fixed https://github.com/Up2Go/pmd/issues/16
2016-03-30 10:52:50 +02:00