6862 Commits

Author SHA1 Message Date
Romain Pelisse
01cb7b943d Add some tests to reproduce reported bugs
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7636 51baf565-9d33-0410-a72c-fc3788e3496d
2012-02-28 09:40:10 +00:00
Romain Pelisse
3bd0358b76 Fixed bug 3175710: NPE in InsufficientStringBufferDeclaration
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7635 51baf565-9d33-0410-a72c-fc3788e3496d
2012-02-28 09:38:43 +00:00
Andreas Dangel
da4059509b pmd: upgrade the checkstyle plugin
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7634 51baf565-9d33-0410-a72c-fc3788e3496d
2012-02-26 15:42:07 +00:00
Andreas Dangel
4279747dcf pmd (site): moved release process documentation to site
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7633 51baf565-9d33-0410-a72c-fc3788e3496d
2012-02-26 15:41:45 +00:00
Brian Remedios
f9ab211b28 renamed violation class, some minor tweaks
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7632 51baf565-9d33-0410-a72c-fc3788e3496d
2012-02-24 19:47:26 +00:00
Brian Remedios
f818c4f72f Various cleanups & refactorings. I would suggest using the name of ParametricRuleViolation instead.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7631 51baf565-9d33-0410-a72c-fc3788e3496d
2012-02-24 19:10:33 +00:00
Brian Remedios
ae375aa8a1 rm deprecated command line hander & related test, updates to the new one
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7630 51baf565-9d33-0410-a72c-fc3788e3496d
2012-02-24 19:05:58 +00:00
Romain Pelisse
49b55eb199 Test case for bug 3372128 - can't reproduce
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7629 51baf565-9d33-0410-a72c-fc3788e3496d
2012-02-24 11:12:16 +00:00
Romain Pelisse
970771586c Fix 3470274: Using Label for lines in XMLRenderer.
Also did some code cleaning/refactor of the class.

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7628 51baf565-9d33-0410-a72c-fc3788e3496d
2012-02-24 10:35:41 +00:00
Romain Pelisse
57b117beee Refactor RuleViolationFactory
In order to ease the integration of new language,
I've refactor a couple of Abstract class, that was
in fact cocncrete (ie no abstract methods) into
parametizable (if this is a word) classes. Idea
being that other languages can simply reuse the
class instead of having to create a class just
to make the abstract class concrete.

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7627 51baf565-9d33-0410-a72c-fc3788e3496d
2012-02-24 10:35:10 +00:00
Romain Pelisse
ca9f7aa657 Whitespaces
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7626 51baf565-9d33-0410-a72c-fc3788e3496d
2012-02-24 10:34:14 +00:00
Romain Pelisse
3225b95ef6 Updating Changelog (remove ToDo's that are done)
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7625 51baf565-9d33-0410-a72c-fc3788e3496d
2012-02-24 10:33:34 +00:00
Andreas Dangel
d54a66857c pmd: improved the release process documentation
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7624 51baf565-9d33-0410-a72c-fc3788e3496d
2012-01-31 20:22:35 +00:00
Andreas Dangel
598a293dae [maven-release-plugin] prepare release 5.0-alpha
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7620 51baf565-9d33-0410-a72c-fc3788e3496d
2012-01-31 18:45:12 +00:00
Andreas Dangel
311c0ec909 [maven-release-plugin] prepare branch 5.0-alpha
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7618 51baf565-9d33-0410-a72c-fc3788e3496d
2012-01-31 18:43:54 +00:00
Andreas Dangel
04769d7631 pmd: preparing release 5.0-alpha
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7617 51baf565-9d33-0410-a72c-fc3788e3496d
2012-01-31 18:00:22 +00:00
Andreas Dangel
d3ef31adca pmd: adding reports profile to have reports about pmd + checkstyle in jenkins
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7616 51baf565-9d33-0410-a72c-fc3788e3496d
2012-01-29 10:32:06 +00:00
Andreas Dangel
805b21e998 pmd (site): correct changes link
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7615 51baf565-9d33-0410-a72c-fc3788e3496d
2012-01-29 10:31:36 +00:00
Andreas Dangel
150297a6c5 pmd: update release process documentation using maven
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7614 51baf565-9d33-0410-a72c-fc3788e3496d
2012-01-29 10:31:00 +00:00
Andreas Dangel
bffcddaf75 pmd: added new rules for javascript
* EqualComparison
* GlobalVariable

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7613 51baf565-9d33-0410-a72c-fc3788e3496d
2012-01-29 09:51:47 +00:00
Brian Remedios
47509a3de5 + Javadoc
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7612 51baf565-9d33-0410-a72c-fc3788e3496d
2012-01-07 16:23:30 +00:00
Brian Remedios
c1aa8b007b Minor Javadoc & formatting cleanup, no functional changes.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7611 51baf565-9d33-0410-a72c-fc3788e3496d
2012-01-04 16:16:54 +00:00
Brian Remedios
8412fba680 Javadoc fixes
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7610 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-27 19:56:08 +00:00
Brian Remedios
01295df863 Minor syntactic issue cleanup (imports, formatting, etc) as identified by other tools
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7609 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-27 17:06:28 +00:00
Brian Remedios
481e9a550b Minor syntactic issue cleanup (imports, formatting, etc) as identified by other tools
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7608 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-27 16:52:08 +00:00
Brian Remedios
6c7c4d6bc9 Various bugfixes as identified by other analysis tools
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7607 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-27 15:54:36 +00:00
Brian Remedios
adedb883db completed toString()
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7606 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-27 14:48:24 +00:00
Brian Remedios
887b9feb1a Various bugfixes as identified by other analysis tools
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7605 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-27 14:33:45 +00:00
Brian Remedios
0deb64ea49 Point to new page
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7604 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-23 07:46:17 +00:00
Brian Remedios
016046520d Improved project-specific rule property panel, moved descriptions into separate panel
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7603 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-23 07:32:19 +00:00
Brian Remedios
168ed54973 Example code & description cleanup
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7602 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-21 09:43:15 +00:00
Brian Remedios
a42391b252 Satisfied a feature request: http://sourceforge.net/tracker/?func=detail&aid=3292643&group_id=56262&atid=479924
When in a code editor hit the default binding key, F7, to trigger the code review.

Condensed the number of rule panels in the rule selection page, added hyperlink for the external info url to
the summary page. Disabled the PMD/CPD options for now in the File Filters page.

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7601 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-21 08:00:52 +00:00
Brian Remedios
53e8f7efca minor tweaks
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7600 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-20 06:07:29 +00:00
Brian Remedios
0d46665c86 Completed the automatic 'check on file save' function that initiates a code review whenever changes are saved to a code file. Enable it on the main PMD preference page as it is off by default.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7599 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-20 05:57:33 +00:00
Brian Remedios
8423633469 minor refactoring, no functional changes
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7598 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-19 23:12:08 +00:00
Brian Remedios
400612d0c7 File include/exclude filters now working
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7597 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-19 21:38:24 +00:00
Brian Remedios
5f739ad7a8 cleanup text & examples
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7596 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-19 14:49:29 +00:00
Brian Remedios
569d616881 cleanup, no functional change
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7595 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-18 21:54:56 +00:00
Brian Remedios
c012074d5a Two bugfixes for long-lived rulesets (i.e. within IDEs) : ensure we don't get duplicate patterns and update the filter when the patterns change.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7594 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-18 21:49:40 +00:00
Andreas Dangel
58ee43bf39 pmd: improve generation of zip files
* names are now like before: pmd-{bin|src}-version.zip
* use a assembly component for the common stuff of bin and src packages
* the clover report is excluded to save space - it's anyway available on the homepage

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7593 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-18 18:54:33 +00:00
Brian Remedios
9191135941 Replaced the CommandLineOptions (parser) with a more modular design with pluggable options that lends itself to extensibility and consistent usage help text generation. Once CPD gets its own configuration class I expect we can share this with it for a consistent approach.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7592 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-18 11:45:52 +00:00
Andreas Dangel
265a205726 pmd: fix again how PMD's version is determined
VERSION is now again final.
During the unit tests, pom.properties seems not to be available.

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7591 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-18 09:29:02 +00:00
Brian Remedios
fe3b5c4de0 minor cleanup, misconfig check for CSVRenderer
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7590 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-18 09:23:09 +00:00
Brian Remedios
d613e38ced icons, bugfixes
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7589 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-18 08:19:50 +00:00
Brian Remedios
b5174f9900 minor cleanup
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7588 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-17 20:45:59 +00:00
Andreas Dangel
6f25096eac pmd: refactor how PMD's version is determined
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7587 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-17 20:06:11 +00:00
Andreas Dangel
537df7f0a1 pmd: use target instead of tasks for maven ant plugin
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7586 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-17 20:05:34 +00:00
Andreas Dangel
a89f64cfcc pmd: fix start script main class for PMD
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7585 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-17 20:05:11 +00:00
Andreas Dangel
865e70bb2e pmd: make the windows batchfiles work again, without the versions.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7584 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-17 20:04:31 +00:00
Brian Remedios
b52a5a0b2c optimizations, export improvements, bugfixes for new functionality
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7583 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-17 18:53:24 +00:00