Commit Graph

6202 Commits

Author SHA1 Message Date
2147870178 Release 4.2.5.3.0
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6991 51baf565-9d33-0410-a72c-fc3788e3496d
2009-10-17 13:29:47 +00:00
895b50723a Release 4.2.5.3.0
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6990 51baf565-9d33-0410-a72c-fc3788e3496d
2009-10-17 13:29:11 +00:00
9dab4ff769 Fix bug 2832322 - cpd.xml file tag path attribute should be entity-encoded.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6989 51baf565-9d33-0410-a72c-fc3788e3496d
2009-08-16 13:26:04 +00:00
ba2d401fbc Oups, this stateless crap of mine from my previous commit was erronous.
Rule are NOT recreated for each new source file, we need to clean the state of this object... Therefore I add this piece of code back.

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6987 51baf565-9d33-0410-a72c-fc3788e3496d
2009-08-16 01:38:12 +00:00
a837cc5a8f Fixing bug 2826119 - False +: DoubleCheckedLocking warning with volatile field
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6984 51baf565-9d33-0410-a72c-fc3788e3496d
2009-08-15 17:56:43 +00:00
0a52c2100c indentation
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6983 51baf565-9d33-0410-a72c-fc3788e3496d
2009-08-15 17:54:50 +00:00
7a66c521a6 updating maven-site-plugin to lastest version
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6982 51baf565-9d33-0410-a72c-fc3788e3496d
2009-08-15 17:54:01 +00:00
2bd6c20c62 finally fixing bug 'wz-pmd-report.xslt in release 4.2.5 misses file name - ID: 2609540'
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6981 51baf565-9d33-0410-a72c-fc3788e3496d
2009-08-15 17:21:51 +00:00
dec39ce09c Fixing bug 2835074 False -: DoubleCheckedLocking with reversed null check
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6977 51baf565-9d33-0410-a72c-fc3788e3496d
2009-08-15 16:01:33 +00:00
d04c4ba159 Duplicate changes made to 4.2.x.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6975 51baf565-9d33-0410-a72c-fc3788e3496d
2009-07-25 05:40:48 +00:00
3dddbb2a54 Display rule description along with example.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6973 51baf565-9d33-0410-a72c-fc3788e3496d
2009-07-25 05:22:48 +00:00
067c322be7 Added AvoidLosingExceptionInformation from George Thomas. Backport to 4.2.x to follow soon.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6971 51baf565-9d33-0410-a72c-fc3788e3496d
2009-07-21 01:40:27 +00:00
a7dd2548e8 Adding link to my own article, in French, on PMD
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6970 51baf565-9d33-0410-a72c-fc3788e3496d
2009-06-30 15:19:00 +00:00
d042895175 Removing this rule, I failed to implement it properly and I'm not so sure it will really be relevant
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6969 51baf565-9d33-0410-a72c-fc3788e3496d
2009-06-30 13:26:04 +00:00
94ceaa29f7 Adding a new rulesets to controversial.xml, with a couple of appropriate test case.
As it does not requires any special feature of PMD 5.0 I'll backport it - unless some of you truly disagree with this rule.

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6967 51baf565-9d33-0410-a72c-fc3788e3496d
2009-06-29 08:23:56 +00:00
e2feebd9c0 Fixing bug 2810228 : updating cpd documentation.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6966 51baf565-9d33-0410-a72c-fc3788e3496d
2009-06-22 14:30:47 +00:00
8667286499 use mvn quiet option
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6964 51baf565-9d33-0410-a72c-fc3788e3496d
2009-06-13 23:39:52 +00:00
4c953e51ee obsolete //FUTURE removed
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6963 51baf565-9d33-0410-a72c-fc3788e3496d
2009-06-13 23:34:09 +00:00
9b57e891ef obsolete // FUTURE tags removed
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6962 51baf565-9d33-0410-a72c-fc3788e3496d
2009-06-13 21:17:00 +00:00
9f2140cd2a new Android rule DoNotHardCodeSDCard taken from my blog article on how to use PMD in Android projects
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6961 51baf565-9d33-0410-a72c-fc3788e3496d
2009-06-13 20:34:40 +00:00
282b90f111 code cleanup: javadoc warnings
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6959 51baf565-9d33-0410-a72c-fc3788e3496d
2009-06-13 20:08:33 +00:00
e9888d47d7 issue with maven site plugin fixed, use explicit version for all maven plugins
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6958 51baf565-9d33-0410-a72c-fc3788e3496d
2009-06-13 19:20:17 +00:00
9f1edb9ce3 asm jar updated to 3.2
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6956 51baf565-9d33-0410-a72c-fc3788e3496d
2009-06-13 00:21:19 +00:00
b32b4fc612 asm jar updated to 3.2
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6955 51baf565-9d33-0410-a72c-fc3788e3496d
2009-06-13 00:15:00 +00:00
8f1c06c5a6 Better messaging to user on parse errors.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6953 51baf565-9d33-0410-a72c-fc3788e3496d
2009-06-09 17:45:28 +00:00
bc6b0339a0 renamed to PMDPlugin.props
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6952 51baf565-9d33-0410-a72c-fc3788e3496d
2009-05-11 00:46:43 +00:00
09376270a4 Renamed from pmd.props to PMDPlugin.props to comply with plugin standards.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6951 51baf565-9d33-0410-a72c-fc3788e3496d
2009-05-11 00:16:34 +00:00
1db87472c2 Clean up, removed old, unused files, adjustments to build file and docs.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6948 51baf565-9d33-0410-a72c-fc3788e3496d
2009-05-07 17:47:44 +00:00
6baa784af8 Adjustments for docs, jars.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6947 51baf565-9d33-0410-a72c-fc3788e3496d
2009-05-07 15:41:23 +00:00
3fe5ea750f Putting these jars back. I deleted them earlier, thinking they weren't required, but I was obviously wrong.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6946 51baf565-9d33-0410-a72c-fc3788e3496d
2009-05-07 15:39:37 +00:00
80b5bc5480 Moved jedit.html to doc directory, added doc images.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6945 51baf565-9d33-0410-a72c-fc3788e3496d
2009-05-07 14:57:18 +00:00
e1148d87dc Doc updates.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6944 51baf565-9d33-0410-a72c-fc3788e3496d
2009-05-07 14:53:46 +00:00
27520d98c3 Adding doc directory.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6943 51baf565-9d33-0410-a72c-fc3788e3496d
2009-05-07 14:51:45 +00:00
a6a45fcfcf Oops! Typo in path for tag.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6941 51baf565-9d33-0410-a72c-fc3788e3496d
2009-05-07 03:13:18 +00:00
2b591b5500 tag for release
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6940 51baf565-9d33-0410-a72c-fc3788e3496d
2009-05-07 03:09:44 +00:00
5d3918e0ad Clean up of build and props file to remove unused jars, put docs in right place, etc.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6938 51baf565-9d33-0410-a72c-fc3788e3496d
2009-05-07 03:01:05 +00:00
6109cbd1c4 Made the rules option pane narrower so it would fit on smaller screens without scrolling.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6937 51baf565-9d33-0410-a72c-fc3788e3496d
2009-05-07 02:59:10 +00:00
8e16865ab7 Deleted unused jar files.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6936 51baf565-9d33-0410-a72c-fc3788e3496d
2009-05-07 02:58:06 +00:00
b7b091f81a tag for release
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6934 51baf565-9d33-0410-a72c-fc3788e3496d
2009-05-05 05:02:18 +00:00
0b6cefb273 Minor improvement to JavaRuleViolation, extraction of names and suppression status should be pretty explicit and clear now. Major improvements overall compared to the mess that is in 4.2.x.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6933 51baf565-9d33-0410-a72c-fc3788e3496d
2009-05-01 06:27:56 +00:00
614d00b258 Clean up ReportTree.addRuleViolation, to stop using String.split, and += on Strings. This removes a regex, and vastly reduces the number of memory/buffer allocations that are going on.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6932 51baf565-9d33-0410-a72c-fc3788e3496d
2009-05-01 04:57:10 +00:00
6157a3ce2c Use StringUtils.replaceString, instead of String.replace.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6931 51baf565-9d33-0410-a72c-fc3788e3496d
2009-05-01 04:53:57 +00:00
24cd90a0c1 Tune StringUtils.replaceString methods to delay buffer allocation until necessary, and to allocate a larger buffer up front if needed.
This is faster than String.replace(String, String), which uses regex under the hood.

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6930 51baf565-9d33-0410-a72c-fc3788e3496d
2009-05-01 04:53:26 +00:00
1a18003f2e Clean up RuleViolationComparator, implement without funky usage of .equals, instead of compareTo, etc. Runs a small bit faster too (when there are 100,000s of violations :)
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6929 51baf565-9d33-0410-a72c-fc3788e3496d
2009-05-01 04:09:24 +00:00
38b13aee84 Tweak InefficientStringBuffering Rule to not use Exceptions during normal evaluation. Thanks to YourKit profiling for making this apparent.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6928 51baf565-9d33-0410-a72c-fc3788e3496d
2009-05-01 02:10:31 +00:00
ee862dfec1 Dogfood now contains AvoidBranchingStatementAsLastInLoop.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6927 51baf565-9d33-0410-a72c-fc3788e3496d
2009-04-28 05:34:25 +00:00
8199ab32d8 Add new Java Basic Rule: AvoidBranchingStatementAsLastInLoop
Cleanup changelog.txt, and the 50.xml.

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6926 51baf565-9d33-0410-a72c-fc3788e3496d
2009-04-28 05:16:39 +00:00
11dddb5b87 Fix AIOOBE, remove stray sysouts.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6925 51baf565-9d33-0410-a72c-fc3788e3496d
2009-04-27 00:30:08 +00:00
bf6515d3c8 AvoidUsingHardCodedIP modified to not use InetAddress.getByName(String), instead does better pattern analysis. InetAddress.getByName(String) adds a dependency on the networking layer, and can easily add seconds per call to the Rule execution time.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6924 51baf565-9d33-0410-a72c-fc3788e3496d
2009-04-27 00:14:39 +00:00
482e804fd8 Remove unnecessary stand-alone test case, as the XML version works just fine, just needed to be marked as regressionTest="false".
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6923 51baf565-9d33-0410-a72c-fc3788e3496d
2009-04-25 04:56:49 +00:00