Wouter Zelle
0ac96b5f3b
generics
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5581 51baf565-9d33-0410-a72c-fc3788e3496d
2007-10-25 11:06:06 +00:00
Xavier Le Vourch
4e1d5e3024
java 1.5 is the default
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5580 51baf565-9d33-0410-a72c-fc3788e3496d
2007-10-25 02:01:23 +00:00
Xavier Le Vourch
e28103ddfa
more restrictive regexp in AvoidUsingHardCodedIP to limit false positives
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5579 51baf565-9d33-0410-a72c-fc3788e3496d
2007-10-25 01:12:51 +00:00
Xavier Le Vourch
d83c4ec977
Parser changes:
...
Java parser can now detect invalid usage of annotation in jdk 1.4
-> ASTAnnotationTest test cases are not ignored any longer.
new DEFAULT_JDK_VERSION constant in TargetJDKVersion to get consistent
default parser version
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5578 51baf565-9d33-0410-a72c-fc3788e3496d
2007-10-24 23:32:25 +00:00
Xavier Le Vourch
410d902956
rule name added to assert message
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5577 51baf565-9d33-0410-a72c-fc3788e3496d
2007-10-24 20:11:15 +00:00
Xavier Le Vourch
2753e751c3
Jaxen exception test case moved to SimplifyStartsWith as AddEmptyString doesn't use string-length expression any longer
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5576 51baf565-9d33-0410-a72c-fc3788e3496d
2007-10-24 19:59:23 +00:00
Xavier Le Vourch
ee020670b6
junit assert failures should not be converted into errors
...
AssertionError was caught by Throwable and rethrown as RuntimeException
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5575 51baf565-9d33-0410-a72c-fc3788e3496d
2007-10-24 18:19:19 +00:00
Xavier Le Vourch
5ba3fbbf6c
javadoc comments added
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5574 51baf565-9d33-0410-a72c-fc3788e3496d
2007-10-24 18:11:20 +00:00
Xavier Le Vourch
d752f1e9d1
test case description changed
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5573 51baf565-9d33-0410-a72c-fc3788e3496d
2007-10-24 15:41:43 +00:00
Xavier Le Vourch
1812d7df6d
Jaxen updated to 1.1.1, now Literal[@Image=''] works in XPath expressions.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5572 51baf565-9d33-0410-a72c-fc3788e3496d
2007-10-24 15:39:48 +00:00
Xavier Le Vourch
f8c66568a2
Fixed bug 1811506 - False - : UnusedFormalParameter (property checkall needs to be set)
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5571 51baf565-9d33-0410-a72c-fc3788e3496d
2007-10-24 15:36:26 +00:00
Tom Copeland
871bd0a62b
Fixed IDEAJ renderer
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5570 51baf565-9d33-0410-a72c-fc3788e3496d
2007-10-24 14:11:09 +00:00
Wouter Zelle
bd86a63706
Added rulesets/design.xml/SingularField
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5569 51baf565-9d33-0410-a72c-fc3788e3496d
2007-10-24 08:32:26 +00:00
Xavier Le Vourch
e2f2a702a7
code refactoring: testAll() moved to parent, rules are now added in setUp() using addRule().
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5568 51baf565-9d33-0410-a72c-fc3788e3496d
2007-10-24 04:42:51 +00:00
Xavier Le Vourch
06ad62b318
retroweaver changes for junit tests
...
report outputs are generated in build/reports and build/reports14
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5567 51baf565-9d33-0410-a72c-fc3788e3496d
2007-10-24 02:58:38 +00:00
Xavier Le Vourch
b8565167ca
FortranTokenizerTest and RubyTokenizerTest were not inserted correctly in test suite
...
incorrect token count in RubyTokenizerTest
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5566 51baf565-9d33-0410-a72c-fc3788e3496d
2007-10-24 00:11:56 +00:00
Xavier Le Vourch
a1f1135041
xml syntax errors fixed
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5565 51baf565-9d33-0410-a72c-fc3788e3496d
2007-10-23 17:46:09 +00:00
Wouter Zelle
0acce874a8
Added properties documentation
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5564 51baf565-9d33-0410-a72c-fc3788e3496d
2007-10-22 07:26:19 +00:00
Xavier Le Vourch
999e34e849
code cleanup: unused imports
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5563 51baf565-9d33-0410-a72c-fc3788e3496d
2007-10-19 19:21:30 +00:00
Wouter Zelle
86df2dc3dd
added SingularField
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5562 51baf565-9d33-0410-a72c-fc3788e3496d
2007-10-19 11:53:41 +00:00
Wouter Zelle
0097f87ccc
Fixed false positive when the first usage is an assignment to a field of the field (x.y = 5 instead of x = 5)
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5561 51baf565-9d33-0410-a72c-fc3788e3496d
2007-10-19 11:53:28 +00:00
Romain Pelisse
279ce698fa
Adding some code changes by Pierre Mathieu to detect more cases of badly closed resources.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5560 51baf565-9d33-0410-a72c-fc3788e3496d
2007-10-19 09:12:59 +00:00
Romain Pelisse
2091b36be3
Adding new test case to validate a new features in CloseResourceRule
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5559 51baf565-9d33-0410-a72c-fc3788e3496d
2007-10-19 09:10:14 +00:00
Wouter Zelle
f0600f7922
SingularField violations fixed
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5558 51baf565-9d33-0410-a72c-fc3788e3496d
2007-10-19 08:03:45 +00:00
Wouter Zelle
d23b3b3260
SingularField violations fixed
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5557 51baf565-9d33-0410-a72c-fc3788e3496d
2007-10-19 08:03:30 +00:00
Wouter Zelle
8fe436e1a2
SingularField greatly improved to generate very few false positives (none?). Moved from controversial to design. Two options added to restore old behaviour (mostly).
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5556 51baf565-9d33-0410-a72c-fc3788e3496d
2007-10-18 15:24:48 +00:00
Xavier Le Vourch
31ed60a519
new rule UseEqualsToCompareStrings added to strings.xml
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5555 51baf565-9d33-0410-a72c-fc3788e3496d
2007-10-18 04:00:00 +00:00
Xavier Le Vourch
bb9ac4ee60
Fixed false negative in UnnecessaryCaseChange
...
as test case was found in the pmd code itself, rule is also added to the "dogfood"
pmdOnPmd ruleset...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5554 51baf565-9d33-0410-a72c-fc3788e3496d
2007-10-18 01:32:25 +00:00
Xavier Le Vourch
b4f97dcd99
code cleanup: useless test for null removed
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5553 51baf565-9d33-0410-a72c-fc3788e3496d
2007-10-18 00:23:40 +00:00
Xavier Le Vourch
503168639d
code cleanup: use valueOf for primitive types
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5552 51baf565-9d33-0410-a72c-fc3788e3496d
2007-10-18 00:22:57 +00:00
Xavier Le Vourch
af6d712936
code cleanup: invalid string comparison
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5551 51baf565-9d33-0410-a72c-fc3788e3496d
2007-10-18 00:22:04 +00:00
Xavier Le Vourch
63527110d8
code cleanup
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5550 51baf565-9d33-0410-a72c-fc3788e3496d
2007-10-18 00:21:41 +00:00
Wouter Zelle
1b3eb203df
SingularField no longer complains on lock objects
...
Small performance improvement (improvement not measured)
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5549 51baf565-9d33-0410-a72c-fc3788e3496d
2007-10-17 13:26:28 +00:00
Romain Pelisse
32ef5cc2a8
Correction of a failing test case for RubyTokenizer.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5548 51baf565-9d33-0410-a72c-fc3788e3496d
2007-10-17 13:10:50 +00:00
Romain Pelisse
50ab6d0dc5
Adding test case to reproduce bugs 1415525 and 1811506.
...
I'm still working on both bugs, so for the moment those test case fail.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5547 51baf565-9d33-0410-a72c-fc3788e3496d
2007-10-17 13:10:24 +00:00
Wouter Zelle
ec2f9be6ed
Added wontfix testcase
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5546 51baf565-9d33-0410-a72c-fc3788e3496d
2007-10-17 12:41:33 +00:00
Wouter Zelle
8e77381155
generics
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5545 51baf565-9d33-0410-a72c-fc3788e3496d
2007-10-17 11:15:02 +00:00
Wouter Zelle
3becab3dd5
985989, ConstructorCallsOverridableMethodRule now also checks (inner) static classes
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5544 51baf565-9d33-0410-a72c-fc3788e3496d
2007-10-16 14:10:14 +00:00
Xavier Le Vourch
44ed1ac6aa
TRJunitStaticSuite removed from scratchpad.xml, JUnitStaticSuite exists
...
in junit.xml and also uses type resolution
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5543 51baf565-9d33-0410-a72c-fc3788e3496d
2007-10-16 05:07:52 +00:00
Xavier Le Vourch
86d34ba8e4
Jaxen test string updated to get same exception as on jdk
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5542 51baf565-9d33-0410-a72c-fc3788e3496d
2007-10-16 00:23:59 +00:00
Xavier Le Vourch
93c45bc95e
Commented out Jaxen exception test case, Bug 1814219 was filed on sourceforge
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5541 51baf565-9d33-0410-a72c-fc3788e3496d
2007-10-16 00:11:24 +00:00
Xavier Le Vourch
561f578817
optimization of xpath rule: on jdk benchmark, rules went from around 270s to 35s
...
(overall benchmark speed on all rules was cut in half by this change)
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5540 51baf565-9d33-0410-a72c-fc3788e3496d
2007-10-15 17:01:21 +00:00
Xavier Le Vourch
af3cbdb40f
xpath optimization: benchmark went from 43s to 0.8s on jdk source tree
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5539 51baf565-9d33-0410-a72c-fc3788e3496d
2007-10-15 16:54:53 +00:00
Xavier Le Vourch
e19382e0c0
new 4.1 rules are listed in releases/41.xml
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5538 51baf565-9d33-0410-a72c-fc3788e3496d
2007-10-15 16:52:00 +00:00
Wouter Zelle
0cb00e9b98
674394, now also for the implicit java.lang.* import
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5537 51baf565-9d33-0410-a72c-fc3788e3496d
2007-10-15 14:53:03 +00:00
Romain Pelisse
def1a00bb6
Correction most of the bug on the new rules i introduce.
...
I also remove some modification i shall not have commited.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5536 51baf565-9d33-0410-a72c-fc3788e3496d
2007-10-15 14:41:14 +00:00
Wouter Zelle
4115407080
674394, disambiguation import should be allowed
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5535 51baf565-9d33-0410-a72c-fc3788e3496d
2007-10-15 14:20:26 +00:00
Wouter Zelle
1546499726
generics
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5534 51baf565-9d33-0410-a72c-fc3788e3496d
2007-10-15 12:38:13 +00:00
Wouter Zelle
0790153263
Add false positive that needs to be fixed using class resolution
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5533 51baf565-9d33-0410-a72c-fc3788e3496d
2007-10-15 12:00:29 +00:00
Romain Pelisse
be13fce11d
Forget to translate some french comment into proper english
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5532 51baf565-9d33-0410-a72c-fc3788e3496d
2007-10-13 16:22:03 +00:00