4029 Commits

Author SHA1 Message Date
Tom Copeland
f4f7488f6d Fixed bug 1394808 - fewer missed hits for AppendCharacterWithChar and InefficientStringBuffering, thanks to Allan Caplan for catching these
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4112 51baf565-9d33-0410-a72c-fc3788e3496d
2006-01-04 03:34:59 +00:00
Tom Copeland
fb7fff5d4b Moved imports rules to their own package
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4111 51baf565-9d33-0410-a72c-fc3788e3496d
2005-12-31 03:34:17 +00:00
Tom Copeland
06254d99d8 Added Fabio's UselessOperationOnImmutable rule to the basic ruleset, thx Fabio!
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4110 51baf565-9d33-0410-a72c-fc3788e3496d
2005-12-30 23:08:49 +00:00
Tom Copeland
8e23fe13a4 Hm, backed out that change since it broke things like 'if (this != foo)'
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4109 51baf565-9d33-0410-a72c-fc3788e3496d
2005-12-30 23:07:17 +00:00
Tom Copeland
b41e2eab67 More links
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4108 51baf565-9d33-0410-a72c-fc3788e3496d
2005-12-30 22:45:08 +00:00
Tom Copeland
474cecdb8b Documentation for VariableNamingConventions
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4107 51baf565-9d33-0410-a72c-fc3788e3496d
2005-12-30 21:58:43 +00:00
Tom Copeland
67599a4f9c Fixed bug 1384594 - Added a 'prefix' property for BeanMembersShouldSerializeRule
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4106 51baf565-9d33-0410-a72c-fc3788e3496d
2005-12-30 20:51:10 +00:00
Tom Copeland
2356890a56 Removed old cruft; findRule makes those unnecessary
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4105 51baf565-9d33-0410-a72c-fc3788e3496d
2005-12-30 20:23:34 +00:00
Tom Copeland
c2fb185d3f Ant task now supports a 'minimumPriority' attribute; only rules with this priority or higher will be run. Renamed Ant task 'printToConsole' attribute to 'toConsole' and it can only be used inside a formatter element.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4104 51baf565-9d33-0410-a72c-fc3788e3496d
2005-12-30 19:59:11 +00:00
Philippe Herlin
1096fe8278 Preparing release v3.1.3
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4103 51baf565-9d33-0410-a72c-fc3788e3496d
2005-12-30 17:38:10 +00:00
Philippe Herlin
85a50d9cbd Upgrading to PMD v3.4
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4102 51baf565-9d33-0410-a72c-fc3788e3496d
2005-12-30 17:37:05 +00:00
Philippe Herlin
07bd3970b9 Reverse to WARN level
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4101 51baf565-9d33-0410-a72c-fc3788e3496d
2005-12-30 17:33:26 +00:00
Philippe Herlin
d3235c4509 Upgrade to PMD v3.4 -> RuleViolation interface has changed!
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4100 51baf565-9d33-0410-a72c-fc3788e3496d
2005-12-30 17:30:21 +00:00
Philippe Herlin
1654d21396 Implement a new preferences model and review some tests
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4099 51baf565-9d33-0410-a72c-fc3788e3496d
2005-12-30 16:29:16 +00:00
Philippe Herlin
68ac44aba9 Implement a new preferences model
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4098 51baf565-9d33-0410-a72c-fc3788e3496d
2005-12-30 16:27:59 +00:00
Philippe Herlin
5f03939f66 Adding a null resource is illegal. Throw an IllegalArgumentException.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4097 51baf565-9d33-0410-a72c-fc3788e3496d
2005-12-30 16:24:01 +00:00
Philippe Herlin
07acd1a89a Add a debug log to check what happens when this action is launched in an editor pane
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4096 51baf565-9d33-0410-a72c-fc3788e3496d
2005-12-30 16:22:31 +00:00
Tom Copeland
ddb628fce5 another test
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4095 51baf565-9d33-0410-a72c-fc3788e3496d
2005-12-29 21:20:15 +00:00
Tom Copeland
096b356fed Added Fabio's enhancements to AvoidArrayLoops; thanks Fabio!
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4094 51baf565-9d33-0410-a72c-fc3788e3496d
2005-12-29 02:02:36 +00:00
Tom Copeland
000b054d09 Running PMD on PMD pays off, w00t
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4093 51baf565-9d33-0410-a72c-fc3788e3496d
2005-12-24 02:51:10 +00:00
Tom Copeland
88a9072b8d Minor tweaks to track changes to the JDK 1.5 grammar that ships with JavaCC
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4092 51baf565-9d33-0410-a72c-fc3788e3496d
2005-12-24 02:39:46 +00:00
Tom Copeland
0840281d1f Fixed Viewer, thx to Siva for the reminder
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4091 51baf565-9d33-0410-a72c-fc3788e3496d
2005-12-22 23:32:50 +00:00
Tom Copeland
ec26fa4040 Applied Greg Broderick's patch to add emacs renderer as an option
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4090 51baf565-9d33-0410-a72c-fc3788e3496d
2005-12-21 22:56:19 +00:00
Tom Copeland
266bb51802 Now PMD fills in the '/' around the regular expression so you don't have to
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4089 51baf565-9d33-0410-a72c-fc3788e3496d
2005-12-21 22:28:06 +00:00
Tom Copeland
72799a0292 Fixing something PMD found
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4088 51baf565-9d33-0410-a72c-fc3788e3496d
2005-12-21 15:19:09 +00:00
Tom Copeland
4fbe69c8ef Moving import tests to rules.imports package
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4087 51baf565-9d33-0410-a72c-fc3788e3496d
2005-12-20 22:11:17 +00:00
Tom Copeland
bc196b5077 Removing useless code
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4086 51baf565-9d33-0410-a72c-fc3788e3496d
2005-12-20 22:06:48 +00:00
Tom Copeland
4d8f610067 This reduces nodes visited by about 60%
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4085 51baf565-9d33-0410-a72c-fc3788e3496d
2005-12-20 21:52:17 +00:00
Tom Copeland
20ecd7c2cf more links
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4084 51baf565-9d33-0410-a72c-fc3788e3496d
2005-12-19 23:05:34 +00:00
Tom Copeland
c553f363a6 Added Fabio Insaccanebbia's implementation of AvoidArrayLoops; thanks Fabio!
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4083 51baf565-9d33-0410-a72c-fc3788e3496d
2005-12-19 22:48:56 +00:00
Tom Copeland
4a79638d14 Implemented RFE 1375435 - you can now embed regular expressions inside XPath expressions, i.e., //ClassOrInterfaceDeclaration[regexp(@Image, '/F?o/')].
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4082 51baf565-9d33-0410-a72c-fc3788e3496d
2005-12-19 14:54:26 +00:00
Tom Copeland
e5bb748de1 Implemented RFE 1375435 - you can now embed regular expressions inside XPath expressions, i.e., //ClassOrInterfaceDeclaration[regexp(@Image, '/F?o/')].
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4081 51baf565-9d33-0410-a72c-fc3788e3496d
2005-12-19 14:54:25 +00:00
Tom Copeland
7b8fc7be2c Added initial support for using regular expressions inside XPath expressions
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4080 51baf565-9d33-0410-a72c-fc3788e3496d
2005-12-19 14:47:38 +00:00
Tom Copeland
08639c3377 More cdk/bioclipse tweaks
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4079 51baf565-9d33-0410-a72c-fc3788e3496d
2005-12-19 14:04:07 +00:00
Tom Copeland
0e15455d47 *** empty log message ***
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4078 51baf565-9d33-0410-a72c-fc3788e3496d
2005-12-19 13:59:36 +00:00
Tom Copeland
c1c4f2e9d2 Added support for JDK 1.5
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4077 51baf565-9d33-0410-a72c-fc3788e3496d
2005-12-19 13:59:16 +00:00
Radim Kubacki
f65b70ca27 updating to PMD-3.4
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4075 51baf565-9d33-0410-a72c-fc3788e3496d
2005-12-17 01:29:00 +00:00
Radim Kubacki
5ff072aaba updated to PMD3.4, fixed creating of RuleViolation in AbstractRules
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4074 51baf565-9d33-0410-a72c-fc3788e3496d
2005-12-16 17:24:22 +00:00
Tom Copeland
e1dc4a114e import cleanup
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4073 51baf565-9d33-0410-a72c-fc3788e3496d
2005-12-15 22:42:14 +00:00
Tom Copeland
774f68e93f Faster, more readable, more concise StringToString
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4072 51baf565-9d33-0410-a72c-fc3788e3496d
2005-12-15 19:48:20 +00:00
Tom Copeland
7475320929 Fixed bug 1380969 - UnusedPrivateMethod no longer flags private static methods that are only invoked in a static context from a field declaration.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4071 51baf565-9d33-0410-a72c-fc3788e3496d
2005-12-15 15:51:59 +00:00
Tom Copeland
433bd30a14 Shifting more code into the framework
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4070 51baf565-9d33-0410-a72c-fc3788e3496d
2005-12-15 15:27:41 +00:00
Tom Copeland
2221283340 more links
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4069 51baf565-9d33-0410-a72c-fc3788e3496d
2005-12-15 15:13:20 +00:00
Tom Copeland
ff0b08035a More links
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4068 51baf565-9d33-0410-a72c-fc3788e3496d
2005-12-14 23:22:47 +00:00
Tom Copeland
ec1d41be86 Fabio Insaccanebbia's implementation of UseArraysAsList in the optimizations ruleset, thanks Fabio!
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4067 51baf565-9d33-0410-a72c-fc3788e3496d
2005-12-14 23:03:56 +00:00
Tom Copeland
526f835bf3 Fabio Insaccanebbia's implementation of UseArraysAsList in the optimizations ruleset, thanks Fabio!
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4066 51baf565-9d33-0410-a72c-fc3788e3496d
2005-12-14 23:01:48 +00:00
Tom Copeland
1a59f57240 Trying a different font here
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4065 51baf565-9d33-0410-a72c-fc3788e3496d
2005-12-14 23:01:37 +00:00
Tom Copeland
c0a4006dec More code in the framework, less code in the rule... good times
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4064 51baf565-9d33-0410-a72c-fc3788e3496d
2005-12-14 22:20:47 +00:00
Tom Copeland
fd9b9b6e3e Added Fabio Insaccanebbia's implementation of AvoidConstantsInterface; thx Fabio!
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4063 51baf565-9d33-0410-a72c-fc3788e3496d
2005-12-14 14:44:58 +00:00
Tom Copeland
f75ad93b2c Added David Corley's Javascript report, more details are here: http://tomcopeland.blogs.com/juniordeveloper/2005/12/demo_of_some_ni.html
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4062 51baf565-9d33-0410-a72c-fc3788e3496d
2005-12-14 14:26:33 +00:00