Tom Copeland
306e6c35cd
A tweak from Jason Bennett to fix [ 1569067 ] Cyclomatic Complexity does not handle multiple && and ||
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4548 51baf565-9d33-0410-a72c-fc3788e3496d
2006-10-02 12:22:20 +00:00
Tom Copeland
8e3590d910
Another fine rule from Xavier Le Vourch: UselessStringValueOf
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4547 51baf565-9d33-0410-a72c-fc3788e3496d
2006-09-29 01:36:14 +00:00
Tom Copeland
75a19cba00
Added new rule from Xavier Le Vourch: UnnecessaryWrapperObjectCreation
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4546 51baf565-9d33-0410-a72c-fc3788e3496d
2006-09-29 01:24:59 +00:00
Tom Copeland
24030320e0
Another bugfix from Xavier: [ 1567385 ] false+ in AvoidRethrowingException
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4545 51baf565-9d33-0410-a72c-fc3788e3496d
2006-09-29 00:08:44 +00:00
Tom Copeland
fd0eb131ac
Applied patch from Xavier Le Vourch: [ 1567368 ] False + in MissingStaticMethodInNonInstantiatableClass
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4544 51baf565-9d33-0410-a72c-fc3788e3496d
2006-09-29 00:05:18 +00:00
Tom Copeland
cbcb91f299
Added a couple releases
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4543 51baf565-9d33-0410-a72c-fc3788e3496d
2006-09-24 01:03:11 +00:00
Brian Remedios
4c3bf28a38
rm now-obsolete class
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4542 51baf565-9d33-0410-a72c-fc3788e3496d
2006-09-23 21:42:46 +00:00
Brian Remedios
24614994c2
optimizations
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4541 51baf565-9d33-0410-a72c-fc3788e3496d
2006-09-23 21:41:01 +00:00
Brian Remedios
ad9fd1ffc3
optimizations
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4540 51baf565-9d33-0410-a72c-fc3788e3496d
2006-09-23 21:33:26 +00:00
Brian Remedios
f39b361b69
rm unnecessary else
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4539 51baf565-9d33-0410-a72c-fc3788e3496d
2006-09-23 21:28:58 +00:00
Brian Remedios
8bb194c57f
updated with Singleton VisitorStarter
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4538 51baf565-9d33-0410-a72c-fc3788e3496d
2006-09-23 21:26:27 +00:00
Brian Remedios
469323e13a
minor tweak & comment
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4537 51baf565-9d33-0410-a72c-fc3788e3496d
2006-09-23 20:57:44 +00:00
Brian Remedios
35d08541a4
minor tweak
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4536 51baf565-9d33-0410-a72c-fc3788e3496d
2006-09-23 20:50:38 +00:00
Brian Remedios
f975de9947
rm unnecessary cast
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4535 51baf565-9d33-0410-a72c-fc3788e3496d
2006-09-23 20:48:49 +00:00
Brian Remedios
358f94eb65
minor optimization
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4534 51baf565-9d33-0410-a72c-fc3788e3496d
2006-09-23 16:11:24 +00:00
Brian Remedios
1bedc99ad2
minor cleanup
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4533 51baf565-9d33-0410-a72c-fc3788e3496d
2006-09-23 15:52:36 +00:00
Brian Remedios
8fd44fbd1c
minor cleanup
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4532 51baf565-9d33-0410-a72c-fc3788e3496d
2006-09-23 15:38:09 +00:00
Brian Remedios
53f7d24b77
replaced common Integer creation with numeric constants & minor tweaks
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4531 51baf565-9d33-0410-a72c-fc3788e3496d
2006-09-23 15:29:44 +00:00
Brian Remedios
9a7c7b6085
optimized toArray conversion
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4530 51baf565-9d33-0410-a72c-fc3788e3496d
2006-09-23 15:21:57 +00:00
Brian Remedios
9a3ec16874
minor performance tweaks
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4529 51baf565-9d33-0410-a72c-fc3788e3496d
2006-09-23 15:20:15 +00:00
Brian Remedios
a29621c969
replaced common Integer creation with numeric constants
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4528 51baf565-9d33-0410-a72c-fc3788e3496d
2006-09-23 15:13:06 +00:00
Brian Remedios
7194d5788a
replaced common Integer creation with numeric constants
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4527 51baf565-9d33-0410-a72c-fc3788e3496d
2006-09-23 15:04:27 +00:00
Brian Remedios
81d80c2c73
minor cleanup, updated string appends with one-character strings
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4526 51baf565-9d33-0410-a72c-fc3788e3496d
2006-09-23 14:44:09 +00:00
Brian Remedios
04d087a48d
optimized toArray conversion
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4525 51baf565-9d33-0410-a72c-fc3788e3496d
2006-09-23 14:40:16 +00:00
Tom Copeland
785b64e8e6
Added new AvoidRethrowingException rule; thanks to George Thomas for the contribution!
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4524 51baf565-9d33-0410-a72c-fc3788e3496d
2006-09-22 13:14:31 +00:00
Tom Copeland
59a61d92a2
Added Brian Remedios to various places; welcome aboard, Brian!
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4523 51baf565-9d33-0410-a72c-fc3788e3496d
2006-09-22 12:50:32 +00:00
Tomasz Slota
6bdafe06b4
fixed a threading problem
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4522 51baf565-9d33-0410-a72c-fc3788e3496d
2006-09-22 12:39:39 +00:00
Tom Copeland
5f988bbe6d
More DFA tweaks from Sven Jacob
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4521 51baf565-9d33-0410-a72c-fc3788e3496d
2006-09-22 02:54:03 +00:00
Tom Copeland
0db7c7d108
Adding Alan Ezust; he'll be working on the jEdit plugin with Jiger
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4520 51baf565-9d33-0410-a72c-fc3788e3496d
2006-09-21 23:20:49 +00:00
Tom Copeland
c5bfc2f410
Removed a hardcoded 'NOPMD'
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4519 51baf565-9d33-0410-a72c-fc3788e3496d
2006-09-21 19:17:09 +00:00
Tom Copeland
9fb0af8b0f
Rewrote the NOPMD mechanism to collect NOPMD markers as the source file is tokenized. This eliminates an entire scan of each source file.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4518 51baf565-9d33-0410-a72c-fc3788e3496d
2006-09-21 03:17:18 +00:00
Tomasz Slota
b5b423d53b
increased version number, added myself to the list of authors
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4517 51baf565-9d33-0410-a72c-fc3788e3496d
2006-09-20 06:11:10 +00:00
Tom Copeland
e65de99ef0
Fixed bug 1561784 - AbstractOptimizationRule no longer throws ClassCastExceptions on certain postfix expressions.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4516 51baf565-9d33-0410-a72c-fc3788e3496d
2006-09-20 03:59:54 +00:00
Tom Copeland
dc68f9a8fb
Patch to fix false+ in SimplifyConditional; thanks again to Xavier!
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4515 51baf565-9d33-0410-a72c-fc3788e3496d
2006-09-20 03:54:09 +00:00
Tom Copeland
6e45b64f82
False+ fix from Xavier
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4514 51baf565-9d33-0410-a72c-fc3788e3496d
2006-09-20 03:50:49 +00:00
Tom Copeland
e4662f814d
Speling patch from Xavier Le Vourch
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4513 51baf565-9d33-0410-a72c-fc3788e3496d
2006-09-20 03:48:43 +00:00
Tom Copeland
937245f9b6
Applied patch from Brian Remedios to clean up CPD display a bit; thanks Brian!
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4512 51baf565-9d33-0410-a72c-fc3788e3496d
2006-09-20 03:45:06 +00:00
Tom Copeland
341923aa48
added more detail to designer display
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4511 51baf565-9d33-0410-a72c-fc3788e3496d
2006-09-19 14:04:21 +00:00
Tom Copeland
65b7ded4a0
Made some constants uppercase
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4510 51baf565-9d33-0410-a72c-fc3788e3496d
2006-09-19 13:58:44 +00:00
Tomasz Slota
975616a0a9
- showing search results in a sortable table
...
- showing a number of violations found
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4509 51baf565-9d33-0410-a72c-fc3788e3496d
2006-09-18 18:53:45 +00:00
Tom Copeland
ad41625818
*** empty log message ***
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4508 51baf565-9d33-0410-a72c-fc3788e3496d
2006-09-16 04:09:02 +00:00
Tom Copeland
6a8a913479
Added Tomas Slota to various places, welcome aboard Tomas!
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4507 51baf565-9d33-0410-a72c-fc3788e3496d
2006-09-16 04:07:42 +00:00
Tom Copeland
3ebcb8a503
Removing the front page book advertisement
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4506 51baf565-9d33-0410-a72c-fc3788e3496d
2006-09-14 13:28:32 +00:00
Tom Copeland
a6a8d7e14a
Applied patch from Xavier Le Vourch to reduce false postives from CloneMethodMustImplementCloneable.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4505 51baf565-9d33-0410-a72c-fc3788e3496d
2006-09-13 03:24:24 +00:00
Tom Copeland
fd46de18d8
Applied patch from Jason Bennett to enhance CyclomaticComplexity rule to account for conditional or/and nodes, do stmts, and catch blocks.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4504 51baf565-9d33-0410-a72c-fc3788e3496d
2006-09-13 02:50:47 +00:00
Tom Copeland
e9ed53f161
BrokenNullCheck added to various places
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4503 51baf565-9d33-0410-a72c-fc3788e3496d
2006-09-12 02:04:08 +00:00
Allan Caplan
6007383d6f
Performance improvement for the NonThreadSafeSingleton rule.
...
Scanning PMD src goes from 45 seconds to 16 seconds. Performance improvement is huge on larger sources - 7,000 classes scanned in 3 minutes down from 7
Also fixed defect 1544565 - False Negative on NonThreadSafeSingleton. The existing rule wasn't finding any references if there was more than 1 statement in the if statement.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4502 51baf565-9d33-0410-a72c-fc3788e3496d
2006-09-12 01:09:24 +00:00
Jiger Patel
08c5a3c830
Initial Checkin. Represents on PMD Rule.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4501 51baf565-9d33-0410-a72c-fc3788e3496d
2006-09-11 05:42:09 +00:00
Tom Copeland
3338b44464
Added new rule written by Wouter Zelle - BrokenNullCheck. Thanks Wouter!
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4500 51baf565-9d33-0410-a72c-fc3788e3496d
2006-09-06 01:08:03 +00:00
Tom Copeland
f0bfc7cc65
Added WLW plugin
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4499 51baf565-9d33-0410-a72c-fc3788e3496d
2006-09-06 00:33:31 +00:00