3341 Commits

Author SHA1 Message Date
Radim Kubacki
0a3d71aa9c no action in menu and more details logged when processing fails
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3596 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-18 21:46:03 +00:00
Tom Copeland
e3c633a793 Let runtime by runtime, by golly
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3595 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-18 11:30:22 +00:00
Tom Copeland
732c196421 Fixed bug 1221094 - JUnitTestsShouldContainAsserts no longer flags static methods.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3594 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-17 13:09:33 +00:00
Tom Copeland
47f7797b30 Fixed another missed hit
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3593 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-16 21:12:39 +00:00
Tom Copeland
58b43edf19 That made no sense
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3592 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-15 22:41:27 +00:00
Tom Copeland
ef802e8b7f Minor refactoring
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3591 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-15 22:05:53 +00:00
Tom Copeland
41240f653a Minor refactoring
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3590 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-15 22:05:10 +00:00
Tom Copeland
abc5f1abe4 Implemented CompareObjectsWithEquals and put it in the design ruleset; it misses some cases, but it's a start
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3589 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-15 22:00:35 +00:00
Tom Copeland
4e78e9dc3f Implemented CompareObjectsWithEquals and put it in the design ruleset; it misses some cases, but it's a start
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3588 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-15 21:58:18 +00:00
Philippe Herlin
45030e0743 Create a plugin fragment for the Eclipse plugin unit tests
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3587 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-15 21:16:27 +00:00
Philippe Herlin
85ca507481 Create the project for the Eclipse plugin unit tests
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3586 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-15 21:14:57 +00:00
Tom Copeland
9877b73c9c Oops, fixed param case
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3585 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-15 21:10:24 +00:00
Tom Copeland
fd769a6d68 Added VariableNameDeclaration.getTypeImage
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3584 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-15 20:47:09 +00:00
Tom Copeland
24f5c1b95e VariableNameDeclaration now has isPrimitiveType() and isReferenceType().
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3583 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-15 20:37:03 +00:00
Tom Copeland
a7ea2a7136 Added AvoidPrintStackTrace, thx to Wouter Zelle for the XPath! Also implemented new rule XML generator helper thingy for Designer
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3582 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-15 13:48:34 +00:00
Tom Copeland
4d39604df2 Just a placeholder; this rule doesn't work yet
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3581 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-14 11:57:55 +00:00
Tom Copeland
c0f7ba9418 Testing a DFA lockup
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3580 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-14 11:56:04 +00:00
Tom Copeland
4a25c7423f Minor refactoring
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3579 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-14 11:52:49 +00:00
Tom Copeland
3713ea4b33 More refactoring in the DFA code; getting closer to a 'useless assignment' rule
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3578 51baf565-9d33-0410-a72c-fc3788e3496d
2005-06-14 10:28:10 +00:00
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