6929 Commits

Author SHA1 Message Date
Andreas Dangel
2d9b4b400f Merge branch 'master' of https://github.com/victorbucutea/pmd into victorbucutea-master 2012-07-23 20:17:06 +02:00
Victor Bucutea
2b21c3e060 removed unwanted orig file 2012-07-23 19:00:38 +03:00
Victor Bucutea
1a8e374fbb Commit improved JSP parser + fix for ./bgastviewer 2012-07-23 18:52:40 +03:00
Andreas Dangel
8d2c08d5cb pmd: bugfix for 3484404 (Invalid NPath calculation in return statement)
Thanks to Prabhjot Singh for the patch.

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7706 51baf565-9d33-0410-a72c-fc3788e3496d
2012-07-19 16:48:18 +00:00
Andreas Dangel
6926ba0647 pmd: added test for bug 3484404 (NPathComplexity and return statements)
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7705 51baf565-9d33-0410-a72c-fc3788e3496d
2012-07-19 16:47:43 +00:00
Dinesh Bolkensteyn
c629e28711 Delete the empty lib folder
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7704 51baf565-9d33-0410-a72c-fc3788e3496d
2012-07-03 08:07:45 +00:00
Dinesh Bolkensteyn
7e9ef50cfe Clean up some empty folders
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7703 51baf565-9d33-0410-a72c-fc3788e3496d
2012-07-03 08:02:30 +00:00
Dinesh Bolkensteyn
58ae0344ff 3539585 AvoidLiteralsInIfCondition must NOT consider null
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7702 51baf565-9d33-0410-a72c-fc3788e3496d
2012-07-03 07:29:40 +00:00
Romain Pelisse
faedbdd9b3 Site: Add link to a Gregorian translation recently contributed
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7701 51baf565-9d33-0410-a72c-fc3788e3496d
2012-06-12 15:56:35 +00:00
Romain Pelisse
eab43fee83 Site: add documentation for new run.sh script (unices only)
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7700 51baf565-9d33-0410-a72c-fc3788e3496d
2012-06-12 15:56:12 +00:00
Andreas Dangel
732bb2de1f pmd: add test for bug 3524607 (annotated package)
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7699 51baf565-9d33-0410-a72c-fc3788e3496d
2012-06-11 17:47:36 +00:00
Andreas Dangel
ad2017a073 pmd (site): renamed cpd.xml to cpd-usage.xml so that we can have a cpd report of PMD.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7698 51baf565-9d33-0410-a72c-fc3788e3496d
2012-06-11 17:47:11 +00:00
Andreas Dangel
8b586a5375 pmd: fix developer info in pom.xml
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7697 51baf565-9d33-0410-a72c-fc3788e3496d
2012-06-11 17:46:45 +00:00
Andreas Dangel
f89c68a3bf pmd: added another test case for the parser
* see: http://jira.codehaus.org/browse/MPMD-126

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7696 51baf565-9d33-0410-a72c-fc3788e3496d
2012-06-11 17:46:25 +00:00
Brian Remedios
bdb16fb1b5 minor cleanup
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7695 51baf565-9d33-0410-a72c-fc3788e3496d
2012-06-02 17:59:07 +00:00
Brian Remedios
d447509c16 This class is quasi-obsolete, we should be transforming the XML renderer output instead, tagged with a FIXME.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7694 51baf565-9d33-0410-a72c-fc3788e3496d
2012-06-02 17:43:15 +00:00
Brian Remedios
38a959d939 minor tweak
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7693 51baf565-9d33-0410-a72c-fc3788e3496d
2012-06-02 17:26:23 +00:00
Brian Remedios
eefb81a056 rm redundant methods
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7692 51baf565-9d33-0410-a72c-fc3788e3496d
2012-06-02 17:14:31 +00:00
Andreas Dangel
c61a4f1543 pmd: configuring maven site
* removing the broken dependency icu4j - seems not to be needed
 * adding pmd report

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7691 51baf565-9d33-0410-a72c-fc3788e3496d
2012-06-02 12:11:03 +00:00
Andreas Dangel
b5614ce718 pmd: added sourceforge tracking icons to the website
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7690 51baf565-9d33-0410-a72c-fc3788e3496d
2012-06-02 12:10:47 +00:00
Andreas Dangel
0e86ee33a4 pmd: make the output encoding of XMLRenderer of CPD and PMD more
easily configurable

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7689 51baf565-9d33-0410-a72c-fc3788e3496d
2012-06-02 12:10:25 +00:00
Andreas Dangel
d04e8d32e9 pmd: ignoring tests with @Ignore, avoiding a little bit of configuration
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7688 51baf565-9d33-0410-a72c-fc3788e3496d
2012-06-02 12:09:54 +00:00
Andreas Dangel
9573085a9a pmd: filter the ruleset xml files to bring in the correct website URL
for the externalInfoU.

The website URL for snapshots and releases is different and now
controlled via the property pmd.website.baseurl.

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7687 51baf565-9d33-0410-a72c-fc3788e3496d
2012-06-02 12:09:16 +00:00
Andreas Dangel
ef057d6fc7 pmd: adding me as developer in the POM :)
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7686 51baf565-9d33-0410-a72c-fc3788e3496d
2012-06-02 12:07:49 +00:00
Andreas Dangel
c2d113ead8 pmd: added additional parser tests for java 7
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7685 51baf565-9d33-0410-a72c-fc3788e3496d
2012-06-02 12:07:34 +00:00
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