Robert Sösemann
cef6824f78
Added Apex test class for parser test
2016-03-29 10:54:12 +02:00
Robert Sösemann
995e500eb4
Small improvements
2016-03-28 13:44:18 +02:00
Robert Sösemann
523dcc8fe0
Started porting naming rules
2016-03-28 00:39:13 +02:00
Andreas Dangel
26c9d95cfa
Return a fixed linenumber/column until we figure out a reliable way
...
to determine the position of the node in the source code
2016-03-27 17:37:48 +02:00
Andreas Dangel
acacf1906e
Fix unit tests of AvoidSoqlInLoopsRule
2016-03-27 17:24:42 +02:00
Andreas Dangel
aad2059731
Fix visitor - the jjtAccept methods have to be in the
...
concrete subclasses
2016-03-27 17:14:26 +02:00
Andreas Dangel
87c85c8aff
Fix compile errors
2016-03-27 15:54:27 +02:00
Robert M und David R
eb5491378a
Merge branch 'master' of https://github.com/Up2Go/pmd.git
2016-03-25 22:48:19 +01:00
Robert M und David R
7be1510a65
Started working on first non-Java rule: AvoidSoqlInLoopsRule
2016-03-25 22:48:05 +01:00
David Renz
50c47371cc
Fixed cyclomatic complexity rule
2016-03-24 15:36:13 +01:00
Robert Sösemann
01be142231
Added Cyclomatic complexity rules
2016-03-24 11:40:54 +01:00
Robert M und David R
1748a072a1
Focus on porting codesize test from java to apex
2016-03-23 23:58:32 +01:00
Robert Sösemann
ebab8d0edb
Next step towards real world rules
2016-03-23 16:20:08 +01:00
David Renz
9c6c3af8cc
Added missing notes
2016-03-23 15:27:18 +01:00
@rsoese (Twitter handle)
e648ab4b74
Update README.md
2016-03-23 15:01:37 +01:00
Robert Sösemann
a48224bf01
Added ported code size tests
2016-03-23 10:53:26 +01:00
Robert Sösemann
ea5f7017a6
Fixed imports
2016-03-23 10:29:40 +01:00
Robert Sösemann
00e3d9edc2
Renamed
2016-03-23 09:58:22 +01:00
Robert Sösemann
ff62b2545c
Added some codesize rules (with compile errors)
2016-03-23 09:54:47 +01:00
Robert Sösemann
c310c51ea0
Forgot to push
2016-03-22 15:53:42 +01:00
Robert Sösemann
3bf1495cc2
Added minimal nodes but real life code doesn't parse yet
2016-03-22 09:40:19 +01:00
Andreas Dangel
202230e1db
Fix unit test
2016-03-21 21:23:24 +01:00
Andreas Dangel
ce3727e10a
Revert "Fix compilation - remove the deleted projects - only keep apex"
...
This reverts commit 9faf05bfcb37724894e7b3833b4d7473e093679b.
This adds back all the modules in the main pom.xml. Note: apex is only
active for java8 builds
2016-03-21 21:01:39 +01:00
Andreas Dangel
e240a024d6
Revert "Next step towards compile ;-)" so that we don't loose
...
cs, fortran, go, jsp, matlab, php, plsql, python, scala, ui, vm, xml ;)
This reverts commit 89fcd45f75f79f5f223e4f572ef332f75869dcef.
The apex files have not been reverted.
2016-03-21 20:57:34 +01:00
Robert Sösemann
378c903e9c
I guess we need more AST nodes to make parsing of real world classes
...
work ;-)
2016-03-21 17:18:09 +01:00
Robert Sösemann
18da883596
.
2016-03-21 16:56:05 +01:00
Robert Sösemann
03e61f1684
Format source code
2016-03-21 11:58:24 +01:00
Robert Sösemann
03f10491bf
Added basic rule
2016-03-21 11:06:59 +01:00
@rsoese (Twitter handle)
e5c9107c7e
Merge pull request #7 from adangel/pmd-apex-pr-1
...
Apex Parser / Tree Builder
2016-03-20 14:39:25 +01:00
Andreas Dangel
7e609e074e
Try to determine position of nodes
2016-03-20 12:24:21 +01:00
Andreas Dangel
2d119a225d
Fix test - we have actually 5 methods: 2 in source code, 3 generated by compiler
2016-03-20 12:23:57 +01:00
Andreas Dangel
620c2009e1
Determine name of UserClass and Method
2016-03-20 12:23:20 +01:00
Andreas Dangel
59414f9e5b
Add a dump facade to print out the AST tree
2016-03-20 12:22:33 +01:00
Andreas Dangel
d2b182f280
Add java as a dependency for designer - add designer profile
...
The designer can be started within "pmd-apex" by running
mvn -P designer exec:java
2016-03-20 11:35:38 +01:00
Andreas Dangel
1a46ef9b05
Make the one apex version the default version
2016-03-20 11:29:09 +01:00
Andreas Dangel
9faf05bfcb
Fix compilation - remove the deleted projects - only keep apex
2016-03-20 11:21:50 +01:00
Andreas Dangel
4221e7a00a
Add a version for the apex language module
2016-03-20 11:18:20 +01:00
Andreas Dangel
294ae0de92
Mark UserClass as root node, so that XPath rules will work
2016-03-20 11:16:11 +01:00
Andreas Dangel
efbe99b0d2
Add missing AST nodes to be able to parse the samples
2016-03-20 11:15:39 +01:00
Andreas Dangel
d739f11ff4
Implement the apex visitor methods
2016-03-20 11:14:38 +01:00
Andreas Dangel
27fa89a3cb
Call traverse on the Apex nodes with an scope (it is required)
2016-03-20 11:14:11 +01:00
Andreas Dangel
50fac3a5cf
Make sure, we fail early if we can't parse the code
2016-03-20 11:11:24 +01:00
Andreas Dangel
3d63f1a8bd
Add two code samples
2016-03-20 11:11:07 +01:00
Andreas Dangel
4df5999f6b
Fix syntax error in code sample
2016-03-20 11:10:37 +01:00
Robert Sösemann
4f0ed30250
Removed jars that are now managed via maven
2016-03-15 16:48:59 +01:00
Robert Sösemann
ea1eca0080
Added dependency entries for each Salesforce lib
2016-03-15 15:06:34 +01:00
Robert Sösemann
e9bfefbbc1
Moved test class to correct package
2016-03-15 11:29:03 +01:00
Robert M und David R
a144493516
Added minimal failing test
2016-03-15 00:46:47 +01:00
Robert M und David R
ba9c8fc1b8
Removed sample code
2016-03-14 20:43:09 +01:00
Robert Sösemann
42273034c7
First simple ast node adapter
2016-03-14 16:37:12 +01:00