Commit Graph
6506 Commits
Author SHA1 Message Date
Andreas Dangel 6049cc68b2 pmd/pom.xml: maven changes: new groupId, new parent (sonatype oss-parent), updated profiles
* the new groupId is now "net.sourceforge.pmd"
* see https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide
* the distributionManagement section is inherited from sonatype
* any sourceforge specific configuration is in the profiles "sf-release" and "sf-snapshot"

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7391 51baf565-9d33-0410-a72c-fc3788e3496d
2011-10-09 10:56:52 +00:00
Brian Remedios 8fb9863200 adaptations to remove defective rules
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7390 51baf565-9d33-0410-a72c-fc3788e3496d
2011-10-05 07:35:18 +00:00
Brian Remedios d1fc92b257 Test for new utility class
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7389 51baf565-9d33-0410-a72c-fc3788e3496d
2011-10-05 05:17:38 +00:00
Brian Remedios 71def3accc minor cleanup
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7388 51baf565-9d33-0410-a72c-fc3788e3496d
2011-10-05 04:39:33 +00:00
Brian Remedios eb42fcb7a0 minor cleanup
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7387 51baf565-9d33-0410-a72c-fc3788e3496d
2011-10-05 04:38:49 +00:00
Brian Remedios 4260e6aed6 New utility methods
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7386 51baf565-9d33-0410-a72c-fc3788e3496d
2011-10-05 04:34:16 +00:00
Brian Remedios 3288f82e92 updated documentation
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7385 51baf565-9d33-0410-a72c-fc3788e3496d
2011-10-03 21:02:44 +00:00
Brian Remedios 32228086c0 Refactoring large methods into smaller ones, fixed formatting (indentation). No functional changes
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7383 51baf565-9d33-0410-a72c-fc3788e3496d
2011-10-02 03:10:52 +00:00
Brian Remedios db101774fc Cleanup from earlier refactoring, no functional changes
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7382 51baf565-9d33-0410-a72c-fc3788e3496d
2011-10-01 23:11:11 +00:00
Romain Pelisse 1c87d5b849 Applied patch 2779678: Don’t use floating point for loop indices, thank to Suresh.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7381 51baf565-9d33-0410-a72c-fc3788e3496d
2011-10-01 22:42:18 +00:00
Romain Pelisse e75f4383f1 Applied patch 2779678: Don’t use floating point for loop indices, thank to Suresh.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7380 51baf565-9d33-0410-a72c-fc3788e3496d
2011-10-01 22:41:38 +00:00
Romain Pelisse 06918d5c95 Applied patch 3217201: CPD performance regression, thanks to Cd-Man
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7379 51baf565-9d33-0410-a72c-fc3788e3496d
2011-10-01 22:28:50 +00:00
Romain Pelisse 23769a3357 whitespaces
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7378 51baf565-9d33-0410-a72c-fc3788e3496d
2011-10-01 21:54:11 +00:00
Brian Remedios 1783f28d35 New PrematureDeclaration rule checks for variable declared at suboptimal positions within methods. Tests seem ok but if you guys could also run it over your preferred code samples that would be great.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7377 51baf565-9d33-0410-a72c-fc3788e3496d
2011-10-01 21:13:31 +00:00
Brian Remedios a66f8f761f formatting, minor optimization
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7376 51baf565-9d33-0410-a72c-fc3788e3496d
2011-10-01 20:58:18 +00:00
Brian Remedios 06fffc9efc formatting, minor optimization
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7375 51baf565-9d33-0410-a72c-fc3788e3496d
2011-10-01 20:38:31 +00:00
Andreas Dangel d3fea90a7c correct the default maven deploy repository
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7372 51baf565-9d33-0410-a72c-fc3788e3496d
2011-09-30 18:30:17 +00:00
Brian Remedios 93ef09182b minor cleanup, no functional changes
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7369 51baf565-9d33-0410-a72c-fc3788e3496d
2011-09-30 04:49:51 +00:00
Brian Remedios d897b5104b Updated TODO section of changelog
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7368 51baf565-9d33-0410-a72c-fc3788e3496d
2011-09-30 02:32:55 +00:00
Andreas Dangel 7d1c10cbe2 Added license info to pom.xml, extended next release howto for maven
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7367 51baf565-9d33-0410-a72c-fc3788e3496d
2011-09-29 19:00:01 +00:00
Andreas Dangel 93f9d6760b patch 3130615: fix xpath rule to consider the correct if-condition.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7358 51baf565-9d33-0410-a72c-fc3788e3496d
2011-09-26 19:49:41 +00:00
Andreas Dangel 7868131b5c Added checkstyle config for eclipse checkstyle plugin 5.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7357 51baf565-9d33-0410-a72c-fc3788e3496d
2011-09-26 19:41:52 +00:00
Andreas Dangel 7275c9f0be Applied patch 3013807: DoNotCallSystemExit through Runtime. Thanks to Steven Christou.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7356 51baf565-9d33-0410-a72c-fc3788e3496d
2011-09-26 19:41:32 +00:00
Andreas Dangel 165bb3a24c Applied patch 3130615: New Rule GuardDebugLogging for jakarta-commons logging. Thanks to Tammo van Lessen.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7355 51baf565-9d33-0410-a72c-fc3788e3496d
2011-09-26 19:40:51 +00:00
Brian Remedios 73c258e712 display boolean values in AST
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7354 51baf565-9d33-0410-a72c-fc3788e3496d
2011-09-26 06:14:14 +00:00
Romain Pelisse 7d026e717d add patch 3155140 to changelog
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7351 51baf565-9d33-0410-a72c-fc3788e3496d
2011-09-25 20:05:04 +00:00
Romain Pelisse 24f744c50a add last patch to changelog
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7350 51baf565-9d33-0410-a72c-fc3788e3496d
2011-09-25 19:40:12 +00:00
Andreas Dangel c17394ad4f Applied patch 3155140: Exclude boolean getters (is*) from
TooManyMethods rule. Thanks to Riku Nykanen.

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7349 51baf565-9d33-0410-a72c-fc3788e3496d
2011-09-25 16:43:36 +00:00
Andreas Dangel a6d3fc0c6e Removed duplicated rule definition.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7348 51baf565-9d33-0410-a72c-fc3788e3496d
2011-09-25 16:42:59 +00:00
Andreas Dangel 95fcf1260b Enabled more unit tests for regression.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7347 51baf565-9d33-0410-a72c-fc3788e3496d
2011-09-25 16:42:39 +00:00
Brian Remedios 27e8668ba0 misc cleanup
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7346 51baf565-9d33-0410-a72c-fc3788e3496d
2011-09-25 04:00:29 +00:00
Brian Remedios 5fe7f691e9 StringBuffer -> StringBuilder switchovers, refactoring
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7345 51baf565-9d33-0410-a72c-fc3788e3496d
2011-09-25 03:59:28 +00:00
Brian Remedios 70f6cf2def StringBuffer -> StringBuilder switchovers
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7344 51baf565-9d33-0410-a72c-fc3788e3496d
2011-09-25 03:58:24 +00:00
Brian Remedios 1ed5e370a7 misc cleanup
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7343 51baf565-9d33-0410-a72c-fc3788e3496d
2011-09-25 03:57:33 +00:00
Brian Remedios 84b0547cd7 StringBuffer -> StringBuilder switchovers
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7342 51baf565-9d33-0410-a72c-fc3788e3496d
2011-09-24 20:50:43 +00:00
Romain Pelisse f92bdcc9bd applied patch 2828099 : Designer's bug 'Create XML Rule', thanks to Andy Throgmorton
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7341 51baf565-9d33-0410-a72c-fc3788e3496d
2011-09-24 19:49:13 +00:00
Romain Pelisse 74d84945b8 whitelines, re indent (removes tab)
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7340 51baf565-9d33-0410-a72c-fc3788e3496d
2011-09-24 19:48:48 +00:00
Brian Remedios 8be45bd369 StringBuffer -> StringBuilder switchovers, refactoring
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7337 51baf565-9d33-0410-a72c-fc3788e3496d
2011-09-24 10:12:46 +00:00
Brian Remedios f6d5d565d1 restore static var, tighten property validation for AvoidDuplicateLiteralsRule
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7336 51baf565-9d33-0410-a72c-fc3788e3496d
2011-09-24 09:32:02 +00:00
Brian Remedios 03196e88b2 Improved resource handling, better living through utility methods ;)
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7335 51baf565-9d33-0410-a72c-fc3788e3496d
2011-09-24 09:20:22 +00:00
Brian Remedios e13e441d96 bugfixes
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7334 51baf565-9d33-0410-a72c-fc3788e3496d
2011-09-24 07:39:37 +00:00
Brian Remedios 571dc30668 StringBuffer -> StringBuilder switchovers
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7333 51baf565-9d33-0410-a72c-fc3788e3496d
2011-09-24 05:32:54 +00:00
Brian Remedios e8559f48ec rm unreferenced/duplicate code
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7332 51baf565-9d33-0410-a72c-fc3788e3496d
2011-09-24 05:28:21 +00:00
Brian Remedios a85a9cd3c5 StringBuffer -> StringBuilder switchovers
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7331 51baf565-9d33-0410-a72c-fc3788e3496d
2011-09-24 05:15:06 +00:00
Romain Pelisse 344c331f65 add missing link to typeresolution rulesets
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7330 51baf565-9d33-0410-a72c-fc3788e3496d
2011-09-24 00:57:24 +00:00
Romain Pelisse 85cc2b5a10 applied patch 2996539 : Add support for C# to CPD (simple parser)
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7328 51baf565-9d33-0410-a72c-fc3788e3496d
2011-09-24 00:30:19 +00:00
Brian Remedios 32bbd35037 StringBuffer -> StringBuilder switchovers.
This class needs further cleanup, rather cheezy

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7326 51baf565-9d33-0410-a72c-fc3788e3496d
2011-09-24 00:03:23 +00:00
Romain Pelisse cf801267c1 adding Andy Throgmorton to the contributor list
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7322 51baf565-9d33-0410-a72c-fc3788e3496d
2011-09-23 23:54:43 +00:00
Romain Pelisse 4d20daf2e3 applied patch 2829888 : New rule: Calling Thread.run() - thanks to Andy Throgmorton
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7321 51baf565-9d33-0410-a72c-fc3788e3496d
2011-09-23 23:54:25 +00:00
Romain Pelisse ee738e5d89 whitespaces and indent
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7320 51baf565-9d33-0410-a72c-fc3788e3496d
2011-09-23 23:53:47 +00:00