5381 Commits

Author SHA1 Message Date
Xavier Le Vourch
d157b08bee 4.2.1 links updated
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/branches/pmd/4.2.x@6011 51baf565-9d33-0410-a72c-fc3788e3496d
2008-04-11 22:05:10 +00:00
Xavier Le Vourch
dc353cb718 preparing 4.2.1 release
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/branches/pmd/4.2.x@6007 51baf565-9d33-0410-a72c-fc3788e3496d
2008-04-11 21:25:11 +00:00
Romain Pelisse
adfd316184 Fixed bug 1808110 - PreserveStackTrace
(backport from trunk)

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/branches/pmd/4.2.x@6006 51baf565-9d33-0410-a72c-fc3788e3496d
2008-04-11 17:47:30 +00:00
Xavier Le Vourch
2f4cdbd6c3 backport of: AvoidDuplicateLiteralRule now has 'skipAnnotations' boolean property
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/branches/pmd/4.2.x@6004 51baf565-9d33-0410-a72c-fc3788e3496d
2008-04-11 16:41:42 +00:00
Xavier Le Vourch
bbad2dfbc2 preparing 4.2.1 release
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/branches/pmd/4.2.x@6001 51baf565-9d33-0410-a72c-fc3788e3496d
2008-04-09 19:34:58 +00:00
Xavier Le Vourch
ce49bdd986 Added file encoding option to CPD GUI, which already existed for the command line and Ant
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/branches/pmd/4.2.x@6000 51baf565-9d33-0410-a72c-fc3788e3496d
2008-04-09 16:00:10 +00:00
Ryan Gustafson
d61aa6189f Remove unintentionally copied line.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/branches/pmd/4.2.x@5997 51baf565-9d33-0410-a72c-fc3788e3496d
2008-04-09 01:07:23 +00:00
Xavier Le Vourch
1593b8037d bin scripts: cygwin-run.sh removed, only cpd, designer and pmd scripts should be in binary release
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/branches/pmd/4.2.x@5996 51baf565-9d33-0410-a72c-fc3788e3496d
2008-04-09 00:05:21 +00:00
Xavier Le Vourch
e659268f29 standard unix scripts can be used with cygwin
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/branches/pmd/4.2.x@5995 51baf565-9d33-0410-a72c-fc3788e3496d
2008-04-08 23:55:58 +00:00
Xavier Le Vourch
e4fa5f88fe support for extra languages in cpd.sh
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/branches/pmd/4.2.x@5994 51baf565-9d33-0410-a72c-fc3788e3496d
2008-04-08 23:44:19 +00:00
Xavier Le Vourch
84cad6c1c4 retroweaver version was not correct in java14/bin scripts
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/branches/pmd/4.2.x@5993 51baf565-9d33-0410-a72c-fc3788e3496d
2008-04-08 23:34:59 +00:00
Ryan Gustafson
7a3d8ceb9a Update RuleSetWriter to handle non-Apache TRAX implementations, add an option to not use XML Namespaces
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/branches/pmd/4.2.x@5992 51baf565-9d33-0410-a72c-fc3788e3496d
2008-04-08 23:21:45 +00:00
Xavier Le Vourch
159cbfa9e9 ruleset.dtd and ruleset_xml_schema.xsd added to jar file in rulesets directory
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/branches/pmd/4.2.x@5990 51baf565-9d33-0410-a72c-fc3788e3496d
2008-04-08 21:58:07 +00:00
Xavier Le Vourch
89b1d699bf Fixed classpath issue in pmdOnPmd target
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/branches/pmd/4.2.x@5983 51baf565-9d33-0410-a72c-fc3788e3496d
2008-04-07 01:31:58 +00:00
Xavier Le Vourch
76a293d720 Fixed classpath issue in pmd target
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/branches/pmd/4.2.x@5981 51baf565-9d33-0410-a72c-fc3788e3496d
2008-04-07 01:17:05 +00:00
Romain Pelisse
4378fd6bdf Fixed bug 1932242 - EmptyMethodInAbstractClassShouldBeAbstract false +
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/branches/pmd/4.2.x@5952 51baf565-9d33-0410-a72c-fc3788e3496d
2008-04-02 16:47:36 +00:00
Ryan Gustafson
4d127404d3 Fix bug 1928009 - Error using migration ruleset in PMD 4.2
AbstractRuleChainVisitor changed an 'if' to a 'while' to ensure all RuleReferences were followed to find the real underlying Rule.

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/branches/pmd/4.2.x@5942 51baf565-9d33-0410-a72c-fc3788e3496d
2008-03-28 22:45:43 +00:00
Xavier Le Vourch
e84d41bebb '41' and '42' shortcuts for rulesets added
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/branches/pmd/4.2.x@5933 51baf565-9d33-0410-a72c-fc3788e3496d
2008-03-26 21:31:19 +00:00
Xavier Le Vourch
8e193d6f2c preparing for the 4.2 release
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5926 51baf565-9d33-0410-a72c-fc3788e3496d
2008-03-26 00:43:37 +00:00
Romain Pelisse
1bd08483ad Adding missing license header here and there.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5925 51baf565-9d33-0410-a72c-fc3788e3496d
2008-03-24 03:40:43 +00:00
Romain Pelisse
36864eace5 Fix mvn2 build
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5924 51baf565-9d33-0410-a72c-fc3788e3496d
2008-03-24 01:37:15 +00:00
Tom Copeland
6b90caa59f Fixed licenses, these were files that I missed when PMD went to BSD several years ago.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5923 51baf565-9d33-0410-a72c-fc3788e3496d
2008-03-23 19:18:17 +00:00
Xavier Le Vourch
cceb12bbd7 invalid rule urls corrected
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5922 51baf565-9d33-0410-a72c-fc3788e3496d
2008-03-23 16:56:09 +00:00
Romain Pelisse
b23d90ce08 Removing this rule. It's not ready and not for 4.2.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5921 51baf565-9d33-0410-a72c-fc3788e3496d
2008-03-23 11:15:02 +00:00
Romain Pelisse
1e1d75fc1a Removing now useless System.err.println()
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5920 51baf565-9d33-0410-a72c-fc3788e3496d
2008-03-23 11:09:16 +00:00
Romain Pelisse
d0aae45ebd Mvn2 javadoc plugin seems to have "issues" when i build pmd javadoc. Disabling it.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5919 51baf565-9d33-0410-a72c-fc3788e3496d
2008-03-22 18:06:32 +00:00
Romain Pelisse
1ccaebd29e Adding a Checkstyle configuration file and enabling it in the mvn2 build.
This checkstyle configuration will check for missing/invalid javadoc or missing license (Already 5000 erros to correct with only those !)
Also added xref and javadoc generation in mvn2 build.

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5918 51baf565-9d33-0410-a72c-fc3788e3496d
2008-03-22 17:54:39 +00:00
Romain Pelisse
ceab009812 Switching from deprecated AbstractRule to AbstractJavaRule.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5917 51baf565-9d33-0410-a72c-fc3788e3496d
2008-03-22 17:39:56 +00:00
Romain Pelisse
a9131b8146 Upgrade on the externalURLInfo control.
Removing a test case from a non yet finished rule (thks for the continous integration report :) )

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5916 51baf565-9d33-0410-a72c-fc3788e3496d
2008-03-22 17:34:59 +00:00
Romain Pelisse
f0290f8051 As suggested by Ryan, i added a control on the externalURLInfo. Now if there are some invalid ExternalInfoURL.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5915 51baf565-9d33-0410-a72c-fc3788e3496d
2008-03-22 17:26:41 +00:00
Romain Pelisse
8a2f5ec3de 1920155 - CheckResultSet: Does not pass for loop conditionals
Adding on more testcase

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5914 51baf565-9d33-0410-a72c-fc3788e3496d
2008-03-22 17:21:07 +00:00
Romain Pelisse
f2ca3e2029 Adding missing license header here and there.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5913 51baf565-9d33-0410-a72c-fc3788e3496d
2008-03-22 17:19:51 +00:00
Romain Pelisse
0576ff859f Adding missing license header here and there.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5912 51baf565-9d33-0410-a72c-fc3788e3496d
2008-03-22 17:00:13 +00:00
Xavier Le Vourch
0d1a48c825 download links updated
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5911 51baf565-9d33-0410-a72c-fc3788e3496d
2008-03-22 01:29:23 +00:00
Xavier Le Vourch
8f0b73c24e preparing 4.2rc2 release
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5909 51baf565-9d33-0410-a72c-fc3788e3496d
2008-03-22 00:46:16 +00:00
Xavier Le Vourch
5770de00f8 extra doc for testing correctness of new rule
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5908 51baf565-9d33-0410-a72c-fc3788e3496d
2008-03-21 02:28:25 +00:00
Xavier Le Vourch
5fc614d1ff xdocs: renaming finalising-rules.xml as rule-guidelines.xml
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5907 51baf565-9d33-0410-a72c-fc3788e3496d
2008-03-20 22:17:26 +00:00
Romain Pelisse
333d9f09b7 Correcting an erronous link.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5906 51baf565-9d33-0410-a72c-fc3788e3496d
2008-03-19 22:22:20 +00:00
Xavier Le Vourch
6619e19d35 Fixed formatting problems in loggers
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5905 51baf565-9d33-0410-a72c-fc3788e3496d
2008-03-19 21:47:08 +00:00
Romain Pelisse
7bb6e060ec Typo and TODO
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5904 51baf565-9d33-0410-a72c-fc3788e3496d
2008-03-19 12:42:01 +00:00
Xavier Le Vourch
e734404f20 code cleanup: extra debug log message removed
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5903 51baf565-9d33-0410-a72c-fc3788e3496d
2008-03-17 05:12:05 +00:00
Xavier Le Vourch
a58cd8442e auxclasspath nested element for Type Resolution classpath
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5902 51baf565-9d33-0410-a72c-fc3788e3496d
2008-03-17 05:08:02 +00:00
Romain Pelisse
01eb3cadad Upgraded documentation and code of the new maxProblemCount attribute in PmdAntTask:
failOnViolation == true + problemCount not setted => fail if one violation or more is reported.
failOnViolation == true + problemCount is setted => fail if the problemCount threshold is reached
failOnViolation not setted + problemCount is setted => fail if the problemCount threshold
failOnViolation to false + problemCount is setted => depends on the order ant to the setting, most likely going not to fail.

I think this is the more appropriate solution. maxProblemCount is no longer tied up to the failOnViolation parameter. 

When a use maxProblemCount, it will automaticly set failOnViolation to true.

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5901 51baf565-9d33-0410-a72c-fc3788e3496d
2008-03-15 10:54:56 +00:00
Ryan Gustafson
508e7ca7e2 Preserve checked rules across table sorts on Project PMD Preferences.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5900 51baf565-9d33-0410-a72c-fc3788e3496d
2008-03-15 08:31:13 +00:00
Ryan Gustafson
4c8b07d9a8 Remove unused JSmartPanel class.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5899 51baf565-9d33-0410-a72c-fc3788e3496d
2008-03-15 03:46:42 +00:00
Ryan Gustafson
2ca4f85eef Fixed bug 1913536 - Rule Designer does not recognize JSP(XML)
Remove duplicate knowledge of PMD language internals and replace with SourceTypeHandler.  Much cleaner!

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5898 51baf565-9d33-0410-a72c-fc3788e3496d
2008-03-15 03:37:00 +00:00
Ryan Gustafson
2fa65a65ab Fixed bug 1912831 - False + UnusedPrivateMethod with varargs
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5897 51baf565-9d33-0410-a72c-fc3788e3496d
2008-03-13 20:09:55 +00:00
Ryan Gustafson
635e29a219 Add on demand import test case for typeresolution/UnusedImports. For real this time. :)
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5896 51baf565-9d33-0410-a72c-fc3788e3496d
2008-03-13 20:07:28 +00:00
Ryan Gustafson
dcbb0f70d6 Add on demand import test case for typeresolution/UnusedImports.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5895 51baf565-9d33-0410-a72c-fc3788e3496d
2008-03-13 19:55:36 +00:00
Ryan Gustafson
4dfa856188 Clear Symbol Table view when code is re-parsed (e.g. Go button pressed).
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5894 51baf565-9d33-0410-a72c-fc3788e3496d
2008-03-13 19:23:49 +00:00