3322 Commits

Author SHA1 Message Date
Philippe Herlin
504588d763 Preparing next release
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3577 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-11 22:14:25 +00:00
Philippe Herlin
5486a9052f Upgrading to PMD v3.2 beta
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3576 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-11 22:13:51 +00:00
Philippe Herlin
c525b77b32 Fixing the project ruleset management
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3575 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-11 22:11:32 +00:00
Philippe Herlin
ae781ce118 Update to PMD 3.2: the symbol table attribute is no more used
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3574 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-11 22:09:57 +00:00
Philippe Herlin
75a0a4b2c6 Make RuleSet name and description default to empty string instead of null
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3573 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-11 21:42:25 +00:00
Tom Copeland
59678ae23f Added note about DDJ article
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3572 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-11 19:20:24 +00:00
Tom Copeland
141ba898fe Added note about DDJ article
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3571 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-11 19:19:16 +00:00
Tom Copeland
25e83138ae Added note about DDJ article
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3570 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-11 19:18:15 +00:00
Tom Copeland
3d257c43d7 Now variableAccess list is never null, so loops are nicer
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3569 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-11 03:31:27 +00:00
Tom Copeland
bb19572c4a Fixed bug 1172137 - PMD no longer locks up when generating a control flow graph for if statements with labelled breaks.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3568 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-11 03:03:36 +00:00
Tom Copeland
60b19072a9 Fixed bug 1172137 - PMD no longer locks up when generating a control flow graph for if statements with labelled breaks.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3567 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-11 03:03:15 +00:00
Tom Copeland
643a167fac Break and continue statement labels (if present) are placed in the image field.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3566 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-11 02:43:50 +00:00
Tom Copeland
a6081cfa3d Removed a few (apparently) unnecessary casts
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3565 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-11 02:26:49 +00:00
Tom Copeland
6b16002bb7 Tweaking the data flow node printing a bit just so I can understand it a bit better
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3564 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-11 02:22:24 +00:00
Tom Copeland
2402411152 Getting familiar with CFG code; moved some conditional code for start/end nodes into a subclass
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3563 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-11 01:43:47 +00:00
Tom Copeland
ad8e3017c4 Fixed bug 1209719 - MethodArgumentCouldBeFinal no longer triggers on arguments which are modified using postfix or prefix expressions. A bug in AvoidReassigningParameters was also reported under the same bug id.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3562 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-10 21:47:00 +00:00
Tom Copeland
8e924b5392 Fixed bug 1209719 - MethodArgumentCouldBeFinal no longer triggers on arguments which are modified using postfix or prefix expressions. A bug in AvoidReassigningParameters was also reported under the same bug id.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3561 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-10 21:42:02 +00:00
Tom Copeland
2bcf73d865 tweak
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3560 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-10 18:02:06 +00:00
Tom Copeland
d3e5d1254d Fixed JUnit thingy
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3559 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-10 17:56:21 +00:00
Philippe Herlin
f39252915c getRuleByName return null instead of throwing RuntimeException when the rule is not found
Add files so that the pmd module could be checked out as an Eclipse project


git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3558 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-10 17:52:42 +00:00
Philippe Herlin
148c7e1f0b Add files so that the pmd module could be checked out as an Eclipse project
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3557 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-10 17:50:28 +00:00
Philippe Herlin
9aa113572b getRuleByName return null instead of throwing RuntimeException when the rule is not found
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3556 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-10 17:48:45 +00:00
Philippe Herlin
d009e9be61 Add tests for the equality hardening
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3555 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-09 22:22:02 +00:00
Philippe Herlin
17f4c44189 Harden equality of RuleSet objects
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3554 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-09 22:21:39 +00:00
Philippe Herlin
25f451277c Harden equality of AbstractRule objects
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3553 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-09 22:00:06 +00:00
Philippe Herlin
d3d0d87f98 Add tests for the equality hardening
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3552 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-09 21:59:29 +00:00
Tom Copeland
164403ae13 *** empty log message ***
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3551 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-09 21:01:31 +00:00
Tom Copeland
789f2dcb89 Fixed bug 1188386 - MethodReturnsInternalArray no longer flags returning a local array declaration. Actually, I couldn't reproduce it... it must have been fixed already somehow, or maybe I'm just not writing a good test for it.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3550 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-09 19:23:56 +00:00
Tom Copeland
ea87e5273d Fixed bug 1209719 - MethodArgumentCouldBeFinal no longer triggers on arguments which are modified using postfix or prefix expressions.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3549 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-09 19:17:55 +00:00
Tom Copeland
5ead87cf4d Fixed bug 1209719 - MethodArgumentCouldBeFinal no longer triggers on arguments which are modified using postfix or prefix expressions.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3548 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-09 19:05:06 +00:00
Tom Copeland
f1c5e69d63 Goodbye duplicated code
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3547 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-09 02:19:54 +00:00
Tom Copeland
ed80d36429 Cleaning up a few more loose ends
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3546 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-09 02:01:24 +00:00
Tom Copeland
d2e32f7d3c Fixed bug 1215854 - Package/class/method name are now filled in whenever possible, and the XML report includes all three.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3545 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-09 00:26:40 +00:00
Colin Wilson-Salt
2383390cbf Additional dependencies on the editor for detecting tab size settings.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3544 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-08 13:59:03 +00:00
Colin Wilson-Salt
75f26acd1e Cosmetic changes to the annotation underlining - don't underline leading and trailing whitespace.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3543 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-08 13:57:31 +00:00
Philippe Herlin
26ff0511fe Upgrading to PMD 3.1
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3542 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-07 22:41:31 +00:00
Philippe Herlin
c0c81ed6a9 Implementing extra ruleset declaration
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3541 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-07 22:40:06 +00:00
Philippe Herlin
f5158cf19a Move classes to limit packages cycle dependencies
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3540 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-07 18:38:15 +00:00
Colin Wilson-Salt
6400937d8c Removed some extra imports added while testing PMD.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3539 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-07 14:18:19 +00:00
Colin Wilson-Salt
2e12325f56 Query the source level of the file being checked, and use a PMD constructed with the correct TargetJDKVersion.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3538 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-07 14:13:49 +00:00
Tom Copeland
ebb21001ad Patch to get Maven to use Clover nicely, thanks Wim!
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3537 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-07 13:20:49 +00:00
Tom Copeland
ee868953b2 Adding clover license, thx Wim!
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3536 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-06 17:56:46 +00:00
Tom Copeland
ffb85aab42 New UseCorrectExceptionLogging from Wim Deblauwe, thanks Wim!
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3535 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-06 17:49:07 +00:00
Tom Copeland
bd4fd7558f Added note about Cenqua
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3534 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-06 13:36:36 +00:00
Philippe Herlin
f798fc6ecc Decrease the complexity of isRuleSetEqual
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3533 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-05 19:28:13 +00:00
Tom Copeland
2d9b5bd907 Fixed bug 1052356 - ImmutableField no longer triggers on fields which are assigned to in a constructor's try statement.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3532 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-02 03:14:58 +00:00
Tom Copeland
acc1d13915 A much-improved implementation of asXML(); thx to Wim Deblauwe for coordinating and coding this up!
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3531 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-02 02:21:13 +00:00
Tom Copeland
6857df0422 Modified NullAssignmentRule to catch null assignments in ternary expressions; thx to Tom Parker for the heads up
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3530 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-01 13:21:50 +00:00
Philippe Herlin
aee0406ea8 Continuing refactoring
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3529 51baf565-9d33-0410-a72c-fc3788e3496d
2005-05-31 23:06:01 +00:00
Philippe Herlin
4c8748f2a6 Fix Bug 1190624: refactor CPD integration
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3528 51baf565-9d33-0410-a72c-fc3788e3496d
2005-05-31 23:05:12 +00:00