3386 Commits

Author SHA1 Message Date
Tom Copeland
51014c4d88 Some path cleanups
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3437 51baf565-9d33-0410-a72c-fc3788e3496d
2005-04-17 03:28:26 +00:00
Tom Copeland
9028a22b4f Added description attributes
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3436 51baf565-9d33-0410-a72c-fc3788e3496d
2005-04-17 03:24:15 +00:00
Tom Copeland
6149424457 Added UseStringBufferForStringAppends; thanks to Eric Olander for the new rule!
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3435 51baf565-9d33-0410-a72c-fc3788e3496d
2005-04-15 14:27:07 +00:00
Tom Copeland
7a602363d4 Fixed bug 1183032 - The XMLRenderer no longer throws a SimpleDateFormat exception when run with JDK 1.3.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3434 51baf565-9d33-0410-a72c-fc3788e3496d
2005-04-14 14:42:35 +00:00
Tom Copeland
05948ab5d8 Fixed bug 1183032 - The XMLRenderer no longer throws a SimpleDateFormat exception when run with JDK 1.3.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3433 51baf565-9d33-0410-a72c-fc3788e3496d
2005-04-14 13:52:29 +00:00
Tom Copeland
7149fdf395 Fixed bug 1182755 - SystemPrintln no longer overreports problems.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3432 51baf565-9d33-0410-a72c-fc3788e3496d
2005-04-14 13:32:58 +00:00
Jiger Patel
26b9593c53 Updated to PMD 3.0
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3431 51baf565-9d33-0410-a72c-fc3788e3496d
2005-04-13 06:56:45 +00:00
Tom Copeland
1c03c65276 Rewrote UnusedModifier in Java; runtime went from 49 seconds to 4 seconds, w00t!
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3423 51baf565-9d33-0410-a72c-fc3788e3496d
2005-04-09 03:40:49 +00:00
Tom Copeland
f3f00456b9 Fixed rule rename, thanks to Alex Givant for the report
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3422 51baf565-9d33-0410-a72c-fc3788e3496d
2005-04-07 21:16:23 +00:00
Tom Copeland
15b939ede8 New item, thx Will!
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3421 51baf565-9d33-0410-a72c-fc3788e3496d
2005-04-04 13:40:36 +00:00
Tom Copeland
5a56fa5f1b Thanks Will!
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3420 51baf565-9d33-0410-a72c-fc3788e3496d
2005-04-01 04:11:11 +00:00
Tom Copeland
187a1d7207 Some spelling tweaks
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3419 51baf565-9d33-0410-a72c-fc3788e3496d
2005-03-31 20:59:38 +00:00
Miguel Griffa
bae1aa201e new rule, similar to assertEquals(x,y) instead of assertTrue(x.equals(y)) with assertSame and ==
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3418 51baf565-9d33-0410-a72c-fc3788e3496d
2005-03-31 18:06:05 +00:00
Miguel Griffa
3b9bcfe1ca little it more rule doc
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3417 51baf565-9d33-0410-a72c-fc3788e3496d
2005-03-31 17:57:35 +00:00
Miguel Griffa
7e4d0d6543 implemented RFE
[ 1173589 ] JUnit rule: use assertEquals() instead of assertTrue()


git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3416 51baf565-9d33-0410-a72c-fc3788e3496d
2005-03-31 17:53:58 +00:00
Tom Copeland
21a6553463 Added new product
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3415 51baf565-9d33-0410-a72c-fc3788e3496d
2005-03-31 13:51:11 +00:00
Tom Copeland
4d48833758 CollapsibleIfStatements; thanks to Eric Olander for the nifty rule!
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3414 51baf565-9d33-0410-a72c-fc3788e3496d
2005-03-30 22:45:12 +00:00
Tom Copeland
34c8d7e86a Implemented UnnecessaryParentheses
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3413 51baf565-9d33-0410-a72c-fc3788e3496d
2005-03-30 22:19:13 +00:00
Tom Copeland
34f70395c2 Added new SimplifyStartsWith rule, thx to Miguel for the idea
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3412 51baf565-9d33-0410-a72c-fc3788e3496d
2005-03-29 21:47:14 +00:00
Tom Copeland
f0de6ef664 Implemented RFE 1171095 - LabeledStatement nodes now contain the image of the label.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3411 51baf565-9d33-0410-a72c-fc3788e3496d
2005-03-26 21:17:39 +00:00
Tom Copeland
4f7c352366 Modified command line parameters; removed -jdk15 and -jdk13 parameters and added a -'targetjdk [1.3|1.4|1.5]' parameter.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3410 51baf565-9d33-0410-a72c-fc3788e3496d
2005-03-26 20:46:48 +00:00
Tom Copeland
d67170110d Modified command line parameters; removed -jdk15 and -jdk13 parameters and added a -'targetjdk [1.3|1.4|1.5]' parameter.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3409 51baf565-9d33-0410-a72c-fc3788e3496d
2005-03-26 20:30:32 +00:00
Tom Copeland
891c0ad1b9 Fixed bug 1169731 - UnusedImports no longer reports false positives on types used inside generics. This bug also resulted in a bug in ForLoopShouldBeWhileLoop being fixed, thanks Wim!
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3408 51baf565-9d33-0410-a72c-fc3788e3496d
2005-03-25 22:54:41 +00:00
Tom Copeland
6f60c4e433 Cleaned up JDK version selecting... that duplicated code always gets ya!
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3407 51baf565-9d33-0410-a72c-fc3788e3496d
2005-03-25 22:46:37 +00:00
Tom Copeland
5215167f4a Fixed bug 1170535 - LongVariable now report variables longer than 17 characters, not 12.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3406 51baf565-9d33-0410-a72c-fc3788e3496d
2005-03-25 22:08:53 +00:00
Tom Copeland
28d284fb6d minor cleanups, import cleanup
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3405 51baf565-9d33-0410-a72c-fc3788e3496d
2005-03-24 21:53:51 +00:00
Tom Copeland
fe1ace532e Fixed bug 1170109 - The Ant task now supports an optional 'targetjdk' attribute that accepts values of '1.3', '1.4', or '1.5'.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3404 51baf565-9d33-0410-a72c-fc3788e3496d
2005-03-24 21:28:07 +00:00
Tom Copeland
e1ccab17c2 Fixed bug 1170109 - The Ant task now supports a 'targetjdk15' attribute.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3403 51baf565-9d33-0410-a72c-fc3788e3496d
2005-03-24 20:00:19 +00:00
Tom Copeland
ac52412fda Fixed bug 1169731 - UnusedImports no longer reports false positives on types used inside generics.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3402 51baf565-9d33-0410-a72c-fc3788e3496d
2005-03-24 14:45:01 +00:00
Tom Copeland
54970bd258 Optimized SuspiciousConstantFieldName from 48 seconds down to 14 seconds... good times
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3401 51baf565-9d33-0410-a72c-fc3788e3496d
2005-03-24 01:26:19 +00:00
Tom Copeland
d3f05a2e1f Optimized FinalFieldCouldBeStatic
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3400 51baf565-9d33-0410-a72c-fc3788e3496d
2005-03-23 21:21:06 +00:00
Tom Copeland
0d4c02584f post rls
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3399 51baf565-9d33-0410-a72c-fc3788e3496d
2005-03-23 20:32:16 +00:00
Tom Copeland
9b34e2c905 rls preps
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3397 51baf565-9d33-0410-a72c-fc3788e3496d
2005-03-23 18:55:09 +00:00
Tom Copeland
21fed769f3 rls preps
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3396 51baf565-9d33-0410-a72c-fc3788e3496d
2005-03-23 18:26:15 +00:00
Tom Copeland
4400ba86f1 Removed redundant AbstractClassDoesNotContainAbstractMethod rule
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3395 51baf565-9d33-0410-a72c-fc3788e3496d
2005-03-23 17:16:46 +00:00
Tom Copeland
fde55e4083 Release preps for 3.0... but I'll wait to actually cut the release until we sort out the AbstractClassWithoutAbstractMethod thing
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3394 51baf565-9d33-0410-a72c-fc3788e3496d
2005-03-22 21:56:14 +00:00
Tom Copeland
381061c944 3.0, not 2.4
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3393 51baf565-9d33-0410-a72c-fc3788e3496d
2005-03-22 14:25:43 +00:00
Tom Copeland
5391fc6d8e Some rule name normalization
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3392 51baf565-9d33-0410-a72c-fc3788e3496d
2005-03-22 14:10:56 +00:00
Tom Copeland
8e3a03e2d3 Oops, missed a few
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3391 51baf565-9d33-0410-a72c-fc3788e3496d
2005-03-22 14:06:23 +00:00
Tom Copeland
30ff27a3f2 tweak
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3390 51baf565-9d33-0410-a72c-fc3788e3496d
2005-03-22 13:55:47 +00:00
Miguel Griffa
e7d0ba95ba implemented [ 1151286 ] Use ArrayList instead of Vector
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3389 51baf565-9d33-0410-a72c-fc3788e3496d
2005-03-16 15:54:38 +00:00
Miguel Griffa
2b6d1c03b6 fixed [ 1162245 ] Empty while statement misses while(true) ;
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3388 51baf565-9d33-0410-a72c-fc3788e3496d
2005-03-14 14:07:11 +00:00
Miguel Griffa
1cac56ca42 implemented [ 1161586 ] Add new rules to junit
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3387 51baf565-9d33-0410-a72c-fc3788e3496d
2005-03-14 14:01:32 +00:00
Tom Copeland
e70f255cdc Rewrote MethodWithSameNameAsEnclosingClass in Java, which cut its execution time by two orders of magnitude. Good times!
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3386 51baf565-9d33-0410-a72c-fc3788e3496d
2005-03-11 03:41:32 +00:00
Tom Copeland
44388aa5c7 Oops, had removed image by mistake
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3385 51baf565-9d33-0410-a72c-fc3788e3496d
2005-03-11 02:23:32 +00:00
Tom Copeland
0101fa2dde Added newrules
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3384 51baf565-9d33-0410-a72c-fc3788e3496d
2005-03-11 01:33:03 +00:00
Tom Copeland
078ca08953 Added benchmarking utility
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3383 51baf565-9d33-0410-a72c-fc3788e3496d
2005-03-10 23:00:02 +00:00
Tom Copeland
9d035416e2 Fixed several places where rules were erroring out
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3382 51baf565-9d33-0410-a72c-fc3788e3496d
2005-03-10 22:38:00 +00:00
Tom Copeland
2025cb02b0 Renamed file to avoid confusion with net.sourceforge.pmd.RuleSet
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3381 51baf565-9d33-0410-a72c-fc3788e3496d
2005-03-10 21:32:28 +00:00
Tom Copeland
aabe8c3e82 Renamed file to avoid confusion with net.sourceforge.pmd.RuleSet
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3380 51baf565-9d33-0410-a72c-fc3788e3496d
2005-03-10 21:29:30 +00:00