4722 Commits

Author SHA1 Message Date
Xavier Le Vourch
ca9602b1ab code cleanup, extra comments, benchmark changes (patch from Ryan Gustafson)
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4939 51baf565-9d33-0410-a72c-fc3788e3496d
2007-01-12 19:28:35 +00:00
Xavier Le Vourch
74acaa7dd8 rewrite of rule to allow chaining (patch from Ryan Gustafson)
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4938 51baf565-9d33-0410-a72c-fc3788e3496d
2007-01-12 19:00:51 +00:00
Sven Jacob
1c7f22237f changed cpd dialog title
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4937 51baf565-9d33-0410-a72c-fc3788e3496d
2007-01-12 13:26:39 +00:00
Xavier Le Vourch
ae332824a3 false + in CompareObjectsWithEquals for allocation expressions such as 'new File(b).exists() == false'
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4936 51baf565-9d33-0410-a72c-fc3788e3496d
2007-01-12 00:23:14 +00:00
Xavier Le Vourch
be6d20b76f XPath rules are now chained together for an extra speedup in processing (patch from Ryan Gustafson)
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4935 51baf565-9d33-0410-a72c-fc3788e3496d
2007-01-11 20:42:26 +00:00
Xavier Le Vourch
89bf798e71 use canonical form before getting absolute path
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4934 51baf565-9d33-0410-a72c-fc3788e3496d
2007-01-11 01:47:51 +00:00
Xavier Le Vourch
b9f84865d3 code cleanup
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4933 51baf565-9d33-0410-a72c-fc3788e3496d
2007-01-11 01:07:17 +00:00
Sven Jacob
dbac10139b added descriptions for the properties of the dataflowanomalyanalysis rule
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4932 51baf565-9d33-0410-a72c-fc3788e3496d
2007-01-09 13:58:21 +00:00
Sven Jacob
eb2cc5ab3a added url for dataflow anomaly analysis
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4931 51baf565-9d33-0410-a72c-fc3788e3496d
2007-01-09 13:47:26 +00:00
Tom Copeland
6bc6397ed6 Optimized lpad, thanks to Radim Kubacki for the code!
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4930 51baf565-9d33-0410-a72c-fc3788e3496d
2007-01-09 13:39:11 +00:00
Tom Copeland
d4d8d5be61 Checked in a much-improved benchmarking system; thanks to Ryan Gustafson for the excellent patch!
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4929 51baf565-9d33-0410-a72c-fc3788e3496d
2007-01-09 12:00:14 +00:00
Radim Kubacki
4070fe0569 no dependency on Jakarta-ORO
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4928 51baf565-9d33-0410-a72c-fc3788e3496d
2007-01-08 16:59:06 +00:00
Radim Kubacki
350bfbe658 version 1.9
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4926 51baf565-9d33-0410-a72c-fc3788e3496d
2007-01-07 12:08:24 +00:00
Tom Copeland
a17cfb76de Moving up to Jaxen 1.1
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4925 51baf565-9d33-0410-a72c-fc3788e3496d
2007-01-07 11:23:20 +00:00
Sven Jacob
ea6862e541 disabled the experimental option since it can now be enabled over the DataflowAnomalyAnalysis rule
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4924 51baf565-9d33-0410-a72c-fc3788e3496d
2007-01-06 11:58:08 +00:00
Tom Copeland
315cd7f667 Access level back to public
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4923 51baf565-9d33-0410-a72c-fc3788e3496d
2007-01-05 21:45:38 +00:00
Radim Kubacki
19f212747f wrong path for concurrent-util
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4922 51baf565-9d33-0410-a72c-fc3788e3496d
2007-01-05 17:50:55 +00:00
Radim Kubacki
de89727238 wrong path for jakarta-oro include
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4921 51baf565-9d33-0410-a72c-fc3788e3496d
2007-01-05 17:32:50 +00:00
Radim Kubacki
4f2cc27c9d updating to pmd-3.9
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4920 51baf565-9d33-0410-a72c-fc3788e3496d
2007-01-05 16:59:08 +00:00
Allan Caplan
aba82176ff Added descriptions and priorities for the NCSS rules
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4919 51baf565-9d33-0410-a72c-fc3788e3496d
2007-01-05 13:55:55 +00:00
Wouter Zelle
f5ee7bd3f1 Bugfix for 1626715. UseAssertSameInsteadOfAssertTrue now works for classes which use the null constant.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4918 51baf565-9d33-0410-a72c-fc3788e3496d
2007-01-03 17:52:23 +00:00
Wouter Zelle
b4c3b965d0 Tweak for Ryan's Java rule generator, should also make the rule slightly fater and more robust
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4917 51baf565-9d33-0410-a72c-fc3788e3496d
2007-01-03 17:50:40 +00:00
Wouter Zelle
8056367f7a typo
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4916 51baf565-9d33-0410-a72c-fc3788e3496d
2007-01-03 17:46:49 +00:00
Allan Caplan
f7df1ce3d0 Fix test
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4915 51baf565-9d33-0410-a72c-fc3788e3496d
2007-01-03 13:17:37 +00:00
Allan Caplan
4f64aaa7a5 Applied patch 1612455 from Jason B
RFE 1411022 CompareObjectsWithEquals now catches the case where comparison is against new Object


git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4914 51baf565-9d33-0410-a72c-fc3788e3496d
2007-01-03 02:45:46 +00:00
Wouter Zelle
dfd2dc3622 Tweak for Ryan's Java rule generator
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4913 51baf565-9d33-0410-a72c-fc3788e3496d
2007-01-02 21:58:07 +00:00
Wouter Zelle
6d578f87f9 Bugfixes for 1626232 and 1626201
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4912 51baf565-9d33-0410-a72c-fc3788e3496d
2007-01-02 18:14:00 +00:00
Wouter Zelle
9391aaba78 Broken null check rule rewritten to Java and now finds more problems
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4911 51baf565-9d33-0410-a72c-fc3788e3496d
2007-01-02 18:08:21 +00:00
Wouter Zelle
307e59391d Fixed serious bugs in both commons logging rules (bug 1626232)
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4910 51baf565-9d33-0410-a72c-fc3788e3496d
2007-01-02 18:01:13 +00:00
Tom Copeland
98762f13d6 Hm, somehow the xml|csv format handling got munged
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4909 51baf565-9d33-0410-a72c-fc3788e3496d
2006-12-29 05:55:41 +00:00
Tom Copeland
77797e9489 A hopeful comment...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4908 51baf565-9d33-0410-a72c-fc3788e3496d
2006-12-29 05:38:31 +00:00
Tom Copeland
ab576ff5c0 Added an optional --encoding parameter to CPD. It defaults to the file.encoding property, but this lets you specify another encoding for the input files if you're so inclined. Do we also need to allow an output encoding?
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4907 51baf565-9d33-0410-a72c-fc3788e3496d
2006-12-29 05:30:14 +00:00
Tom Copeland
45c4b31436 Getting the changelog rolling for 4.0
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4906 51baf565-9d33-0410-a72c-fc3788e3496d
2006-12-29 04:53:12 +00:00
Sven Jacob
8fdab14c82 fixed bug when pressing cancel
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4905 51baf565-9d33-0410-a72c-fc3788e3496d
2006-12-22 14:20:32 +00:00
Sven Jacob
7e57f6b6cb removed unused variable
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4904 51baf565-9d33-0410-a72c-fc3788e3496d
2006-12-22 14:19:39 +00:00
Sven Jacob
24e4419261 fixed bug when ressource changes and methods are deleted that are displayed in the CFG
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4903 51baf565-9d33-0410-a72c-fc3788e3496d
2006-12-22 14:17:46 +00:00
Sven Jacob
0bf2e1410e fixed bug
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4902 51baf565-9d33-0410-a72c-fc3788e3496d
2006-12-22 14:15:09 +00:00
Sven Jacob
48262206e5 removed unused imports
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4901 51baf565-9d33-0410-a72c-fc3788e3496d
2006-12-22 14:12:57 +00:00
Tom Copeland
671f9bf052 *** empty log message ***
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4900 51baf565-9d33-0410-a72c-fc3788e3496d
2006-12-22 02:21:18 +00:00
Tom Copeland
47287851b5 Added Maven bundle creation to release process
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4899 51baf565-9d33-0410-a72c-fc3788e3496d
2006-12-22 02:19:30 +00:00
Tom Copeland
1be2b58e9e Doh! I had forgotten to upload the site
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4898 51baf565-9d33-0410-a72c-fc3788e3496d
2006-12-22 01:52:33 +00:00
Xavier Le Vourch
463bd02c30 bug fix: //ConditionalExpression//ConditionalExpression raised a java.lang.StringIndexOutOfBoundsException
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4897 51baf565-9d33-0410-a72c-fc3788e3496d
2006-12-19 19:19:13 +00:00
Tom Copeland
fd96acd61d rls preps
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4895 51baf565-9d33-0410-a72c-fc3788e3496d
2006-12-19 14:23:15 +00:00
Tom Copeland
ad6246cdd0 More suppression tests; thanks to Ryan Gustafson for the patch!
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4894 51baf565-9d33-0410-a72c-fc3788e3496d
2006-12-19 04:07:02 +00:00
Tom Copeland
df56bd7746 Added note about ignore PMD annotations; thank to Jason Bennett for the research
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4893 51baf565-9d33-0410-a72c-fc3788e3496d
2006-12-19 04:04:36 +00:00
Allan Caplan
9e7deee88f I've refactored this class to not cache the results any more. This is a
tradeoff in testing I've found the CPU tradeoff is negligeable. With the
cache, large codebases consumed a lot of memory and slowed down greatly when approaching 3,000 classes.

Also fixes some false positives.


git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4892 51baf565-9d33-0410-a72c-fc3788e3496d
2006-12-19 01:02:12 +00:00
Tom Copeland
9f6ee02e66 Patch [ 1615410 ] Various fixes for build with maven 1.x; thanks to Lukas Theussl!
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4891 51baf565-9d33-0410-a72c-fc3788e3496d
2006-12-18 14:10:10 +00:00
Xavier Le Vourch
aa787a7e26 Oops, 1.5 constructs integrated in previous commit...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4890 51baf565-9d33-0410-a72c-fc3788e3496d
2006-12-17 01:54:49 +00:00
Xavier Le Vourch
70ef1ccc2f bug fixes: multithreading issues reported by Ryan Gustafson in the forum
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4889 51baf565-9d33-0410-a72c-fc3788e3496d
2006-12-17 01:44:19 +00:00
Allan Caplan
958c6bf91a Fixing some false positives Xavier pointed out
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4888 51baf565-9d33-0410-a72c-fc3788e3496d
2006-12-16 01:35:13 +00:00