6954 Commits

Author SHA1 Message Date
Andreas Dangel
e6e5c6dd7d pmd: fixed bug #2410201 False+ AvoidReassigningParameters
This is indeed a lack of the symbol table and type resolution, which is
not finished yet. We now stop trying to resolve the variables, once we
did not find the declaration in the middle.

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7684 51baf565-9d33-0410-a72c-fc3788e3496d
2012-06-02 12:06:56 +00:00
Andreas Dangel
eb6c0c8d31 pmd: fixed bug #3526212 with immutable field and compound assignment
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7683 51baf565-9d33-0410-a72c-fc3788e3496d
2012-06-02 12:05:50 +00:00
Andreas Dangel
196a5f15ea pmd: fixed bug #3526992 False + UselessParentheses
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7682 51baf565-9d33-0410-a72c-fc3788e3496d
2012-06-02 12:04:59 +00:00
Andreas Dangel
4ffeda09cf pmd: cleanup with the namespace handling in the ruleset files
noNameSpaceLocation is not needed as we use our namespace as
the default one. If we use anything else, we anyway need to
declare what we use.

Copied the schema and dtd to website.

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7681 51baf565-9d33-0410-a72c-fc3788e3496d
2012-06-02 12:03:49 +00:00
Andreas Dangel
40c2a5d768 cpd: fixed bug #3523614, preserving the newlines in the XML report
Excluding the transitive xalan dependency and adding the missing saxon-dom
dependency, so that we have saxon complete and only one XML library.

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7680 51baf565-9d33-0410-a72c-fc3788e3496d
2012-06-02 12:00:55 +00:00
Andreas Dangel
9eab491f2a pmd: fixed bug #3516101 (InsufficientStringBufferDeclaration fails to parse hex)
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7679 51baf565-9d33-0410-a72c-fc3788e3496d
2012-06-02 12:00:14 +00:00
Andreas Dangel
2ec09b626a pmd: Strings.InefficientStringBuffering: fixed bugs #1503099 and #3109408
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7678 51baf565-9d33-0410-a72c-fc3788e3496d
2012-05-31 18:22:48 +00:00
Andreas Dangel
af59a4c38b pmd: update changelog
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7677 51baf565-9d33-0410-a72c-fc3788e3496d
2012-05-30 19:27:41 +00:00
Andreas Dangel
dd5ae3869c pmd: Fix parser problem #3530124 with generics
Modified the grammar, so that the different usages of generics work.
Adjusted the rules, that use "super", as super is no longer a PrimarySuffix.
It's now either a ExplicitConstructorInvocation or a PrimaryPrefix.
See also test case ParserCornersTest/testParsersCases

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7676 51baf565-9d33-0410-a72c-fc3788e3496d
2012-05-30 18:29:22 +00:00
Andreas Dangel
65e7054972 pmd: improve MissingBreakInSwitch to ignore empty cases
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7675 51baf565-9d33-0410-a72c-fc3788e3496d
2012-05-28 17:46:36 +00:00
Andreas Dangel
933e4e4456 Added a new website front-page for pmd.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7674 51baf565-9d33-0410-a72c-fc3788e3496d
2012-05-28 06:18:14 +00:00
Andreas Dangel
4768da3e47 pmd: added test case for parser problem #3530124
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7673 51baf565-9d33-0410-a72c-fc3788e3496d
2012-05-28 06:17:41 +00:00
Andreas Dangel
04d5f470e8 pmd: improve MissingBreakInSwitch to fix false- #3496028
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7672 51baf565-9d33-0410-a72c-fc3788e3496d
2012-05-28 06:17:04 +00:00
Brian Remedios
7199a1103d Disable rules from markers shown in editors
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7671 51baf565-9d33-0410-a72c-fc3788e3496d
2012-05-03 19:10:53 +00:00
Andreas Dangel
cfb9d30a4d pmd: merged r7665 and r7669 from 5.0.x branch to trunk
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7670 51baf565-9d33-0410-a72c-fc3788e3496d
2012-05-01 12:09:15 +00:00
Andreas Dangel
a6bcfe2b65 pmd: added missing ssh/scp wagon support for maven3
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/branches/pmd/5.0.x@7669 51baf565-9d33-0410-a72c-fc3788e3496d
2012-05-01 11:41:10 +00:00
Andreas Dangel
6474fde42d [maven-release-plugin] prepare for next development iteration
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/branches/pmd/5.0.x@7668 51baf565-9d33-0410-a72c-fc3788e3496d
2012-05-01 07:43:32 +00:00
Andreas Dangel
8dcde0edb5 [maven-release-plugin] prepare release pmd_release_5_0_0
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/branches/pmd/5.0.x@7666 51baf565-9d33-0410-a72c-fc3788e3496d
pmd_releases/5.0.0
2012-05-01 07:42:56 +00:00
Andreas Dangel
70347aedd5 pmd: Prepare pmd release 5.0.0
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/branches/pmd/5.0.x@7665 51baf565-9d33-0410-a72c-fc3788e3496d
2012-05-01 07:38:38 +00:00
Andreas Dangel
eaf1385595 update the version to the usual three components: 5.0.0-SNAPSHOT
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/branches/pmd/5.0.x@7664 51baf565-9d33-0410-a72c-fc3788e3496d
2012-04-30 11:35:40 +00:00
Andreas Dangel
d841cbaece [maven-release-plugin] prepare release 5.0.x
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7663 51baf565-9d33-0410-a72c-fc3788e3496d
2012-04-30 11:32:30 +00:00
Andreas Dangel
736851e446 [maven-release-plugin] prepare branch 5.0.x
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7661 51baf565-9d33-0410-a72c-fc3788e3496d
2012-04-30 11:31:55 +00:00
Andreas Dangel
47c1cee404 pmd: change the location of the website to include the version number.
This is to support easily multiple pmd versions on the website.

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7660 51baf565-9d33-0410-a72c-fc3788e3496d
2012-04-30 11:19:16 +00:00
Andreas Dangel
4124ac0194 pmd: use the released pmd-build plugin
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7659 51baf565-9d33-0410-a72c-fc3788e3496d
2012-04-30 11:18:50 +00:00
Andreas Dangel
35790351ec [maven-release-plugin] prepare for next development iteration
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7658 51baf565-9d33-0410-a72c-fc3788e3496d
2012-04-30 08:58:46 +00:00
Andreas Dangel
d7c37a7876 [maven-release-plugin] prepare release pmd-build-0.6
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7656 51baf565-9d33-0410-a72c-fc3788e3496d
2012-04-30 08:58:07 +00:00
Andreas Dangel
adfa541460 pmd: upgrading plugin versions, making site maven 3 ready
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7655 51baf565-9d33-0410-a72c-fc3788e3496d
2012-04-30 08:54:53 +00:00
Andreas Dangel
2b6400f860 pmd: update documentation, update links in site
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7654 51baf565-9d33-0410-a72c-fc3788e3496d
2012-04-30 08:54:20 +00:00
Andreas Dangel
91f425231f pmd: added the list of XPath attributes to the Designer
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7653 51baf565-9d33-0410-a72c-fc3788e3496d
2012-04-30 08:53:23 +00:00
Andreas Dangel
89573b7dc3 pmd: use latest pmd-build plugin
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7652 51baf565-9d33-0410-a72c-fc3788e3496d
2012-03-25 08:09:47 +00:00
Andreas Dangel
cec831d8d9 pmd (build): add missing href to the menu items
We'll need this once we switch to maven3 for site generation

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7651 51baf565-9d33-0410-a72c-fc3788e3496d
2012-03-25 08:09:18 +00:00
Andreas Dangel
a27db9c932 pmd (build): fix xref link to rule source; thanks to Mason (masondj) for pointing this out.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7650 51baf565-9d33-0410-a72c-fc3788e3496d
2012-03-25 08:08:38 +00:00
Brian Remedios
3d53a0a4b6 Class name change from Configuration -> PMDConfiguration
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7649 51baf565-9d33-0410-a72c-fc3788e3496d
2012-03-13 02:37:55 +00:00
Brian Remedios
1838cab4f9 Refactor main CPD class: migration of command-line arg handling to separate CPDConfiguration class similar to how PMD does it. Will eventually formalize the parameters in the same way.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7648 51baf565-9d33-0410-a72c-fc3788e3496d
2012-03-13 02:02:35 +00:00
Torsten Kleiber
f2c95c6810 Release 11.1.2.4300
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7646 51baf565-9d33-0410-a72c-fc3788e3496d
2012-03-12 20:19:42 +00:00
Torsten Kleiber
cc88c397e3 Release 11.1.1.4300
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7644 51baf565-9d33-0410-a72c-fc3788e3496d
2012-03-12 19:59:15 +00:00
Torsten Kleiber
2e8a2625b9 Release 11.1.2.4300
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7643 51baf565-9d33-0410-a72c-fc3788e3496d
2012-03-12 19:57:28 +00:00
Brian Remedios
bd79c60d85 misc: rm redundant cast, StringBuffer->StringBuilder updates
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7642 51baf565-9d33-0410-a72c-fc3788e3496d
2012-03-12 16:54:13 +00:00
Brian Remedios
47413a2671 misc: rm redundant cast, rename method
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7641 51baf565-9d33-0410-a72c-fc3788e3496d
2012-03-12 16:34:01 +00:00
Torsten Kleiber
99906b8832 Release 10.1.3.4300
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7639 51baf565-9d33-0410-a72c-fc3788e3496d
2012-03-11 18:50:49 +00:00
Romain Pelisse
44a1618b6e Applied patch 3497021 from Remi Delmas - CPD now returns non zero status if duplication is found.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7638 51baf565-9d33-0410-a72c-fc3788e3496d
2012-03-06 08:42:11 +00:00
Romain Pelisse
6ea6ceab13 Add test case for bug 3496028 (False-)
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7637 51baf565-9d33-0410-a72c-fc3788e3496d
2012-03-01 23:38:39 +00:00
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