Tom Copeland
476d2ce797
Poking around the type resolution code
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5446 51baf565-9d33-0410-a72c-fc3788e3496d
2007-08-04 00:26:14 +00:00
Tom Copeland
c1229fb790
typo
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5445 51baf565-9d33-0410-a72c-fc3788e3496d
2007-08-04 00:26:00 +00:00
Ryan Gustafson
eafe5af965
Updated XPath2 grammar to use already defined tokens.
...
Completed translation of abbreviated XPath2 into XPath/XQuery Core. Full of tons of bugs I'm sure! Working on a Core parser next.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5444 51baf565-9d33-0410-a72c-fc3788e3496d
2007-08-03 07:48:23 +00:00
Wouter Zelle
14574cfbff
New rules:
...
Controversial ruleset: AvoidFinalLocalVariable
Design ruleset: ClassWithOnlyPrivateConstructorsShouldBeFinal
Imports ruleset: TooManyStaticImports
J2ee ruleset: DoNotCallSystemExit, StaticEJBFieldShouldBeFinal
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5443 51baf565-9d33-0410-a72c-fc3788e3496d
2007-07-31 15:00:54 +00:00
Wouter Zelle
340071ae75
removed a cast
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5442 51baf565-9d33-0410-a72c-fc3788e3496d
2007-07-31 07:26:56 +00:00
Wouter Zelle
3b6f36f97d
The Java 1.5 source code parser is now the default for testcode.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5441 51baf565-9d33-0410-a72c-fc3788e3496d
2007-07-31 06:47:24 +00:00
Wouter Zelle
d9508bed2b
Prep for Java 1.5 as default parser for testcode.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5440 51baf565-9d33-0410-a72c-fc3788e3496d
2007-07-30 15:03:37 +00:00
Wouter Zelle
0895cae2f8
Prep for Java 1.5 as default parser for testcode.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5439 51baf565-9d33-0410-a72c-fc3788e3496d
2007-07-30 14:26:40 +00:00
Wouter Zelle
c201218ae3
generics
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5438 51baf565-9d33-0410-a72c-fc3788e3496d
2007-07-30 13:44:28 +00:00
Wouter Zelle
d2cc36f9bc
fixed description
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5437 51baf565-9d33-0410-a72c-fc3788e3496d
2007-07-30 13:43:00 +00:00
Wouter Zelle
dc0dcb9df1
Merged patch 1757669 to fix bug 1522517
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5436 51baf565-9d33-0410-a72c-fc3788e3496d
2007-07-29 18:34:13 +00:00
Wouter Zelle
58cbba5cea
Merged patch 1757414 to fix bug 1472195
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5435 51baf565-9d33-0410-a72c-fc3788e3496d
2007-07-29 18:02:55 +00:00
Wouter Zelle
e8a48cc6ba
Merged patch 1752540 to fix bug 1744065 (false positive for custom Boolean)
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5434 51baf565-9d33-0410-a72c-fc3788e3496d
2007-07-27 15:19:50 +00:00
Tom Copeland
cfbcf2a4a6
Oops, 1.5 is default now
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5433 51baf565-9d33-0410-a72c-fc3788e3496d
2007-07-24 14:24:47 +00:00
Ryan Gustafson
55d3eb5696
Add Maven2 pom.xml from Romain Pelisse. Added Romain as contributor. Added emma for code coverage, see comments in pom.xml and use 'mvn emma:emma' to get emma reports for JUnit tests. Fixed a few PMD identified issues.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5432 51baf565-9d33-0410-a72c-fc3788e3496d
2007-07-24 05:10:38 +00:00
Xavier Le Vourch
dc3acc15cd
Support spaces in CLASSPATH for Windows .bat files. Some software, when installed, likes to modify the System CLASSPATH environment variable to have locations from within \Program Files\.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5431 51baf565-9d33-0410-a72c-fc3788e3496d
2007-07-21 23:24:22 +00:00
Ryan Gustafson
9648c965e0
Additional work to get CoreXPath2ParserVisitor working to get a XPath2 Core query output. About 90% complete. Also, need more work on the Tests, they are incomplete and fail.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5430 51baf565-9d33-0410-a72c-fc3788e3496d
2007-07-21 22:34:38 +00:00
Ryan Gustafson
6aeb860ea2
Support spaces in CLASSPATH for Windows .bat files. Some software, when installed, likes to modify the System CLASSPATH environment variable to have locations from within \Program Files\.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5429 51baf565-9d33-0410-a72c-fc3788e3496d
2007-07-21 22:17:56 +00:00
Ryan Gustafson
8cf5c103dd
Added JUnit tests to validate PMD RuleSet XML files against the XML Schema and the DTD, this'll help keep everything in sync. Don't confuse these Test case implementations with elegance. ;) I'm unsure if they work in JVMs other than Sun's Windoze 1.5 JDK, as I had to configure some Xerces properties to get the SAXParser to validate against XML Schema.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5428 51baf565-9d33-0410-a72c-fc3788e3496d
2007-07-21 02:58:02 +00:00
Tom Copeland
f210a26f82
Added Ryan's article
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5427 51baf565-9d33-0410-a72c-fc3788e3496d
2007-07-20 23:20:23 +00:00
Tom Copeland
3478291ac1
Updated nav links
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5426 51baf565-9d33-0410-a72c-fc3788e3496d
2007-07-20 13:37:52 +00:00
Tom Copeland
517b13a39d
rls preps
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5424 51baf565-9d33-0410-a72c-fc3788e3496d
2007-07-20 13:18:18 +00:00
Ryan Gustafson
42fc221d93
Update XPath2.jjt to produce a simplified AST when intermediate grammar productions are not necessary. Completed XPath abbreviate/unabbreviate operations. All test cases now work for expected abbreviate/unabbreviate results, and that abbreviate/unabbreviate are inverses of each other. Next up: translate XPath AST to a XPath Core.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5423 51baf565-9d33-0410-a72c-fc3788e3496d
2007-07-19 17:36:12 +00:00
Ryan Gustafson
48547398ca
Updates for abbreviation/unabbreviation.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5422 51baf565-9d33-0410-a72c-fc3788e3496d
2007-07-18 08:11:32 +00:00
Ryan Gustafson
6f493b9751
Initial import.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5421 51baf565-9d33-0410-a72c-fc3788e3496d
2007-07-18 05:36:43 +00:00
Ryan Gustafson
7d6eb54d96
Initial import.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5420 51baf565-9d33-0410-a72c-fc3788e3496d
2007-07-18 05:31:32 +00:00
Ryan Gustafson
423836fba4
Mention -benchmark option
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5419 51baf565-9d33-0410-a72c-fc3788e3496d
2007-07-17 17:37:48 +00:00
Tom Copeland
2a62e68afc
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5418 51baf565-9d33-0410-a72c-fc3788e3496d
2007-07-17 01:25:11 +00:00
Tom Copeland
b3c3714ecc
Removed redundant rule, thanks to Romain Pelisse for the performance testing!
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5417 51baf565-9d33-0410-a72c-fc3788e3496d
2007-07-17 01:16:51 +00:00
Tom Copeland
e93c36b16b
A false positive cleanup from Romain Pelisse and Thomas Leplus; thanks!
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5416 51baf565-9d33-0410-a72c-fc3788e3496d
2007-07-16 02:16:15 +00:00
Tom Copeland
5921ace60c
A false positive cleanup from Romain Pelisse and Thomas Leplus; thanks!
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5415 51baf565-9d33-0410-a72c-fc3788e3496d
2007-07-16 02:14:50 +00:00
Tom Copeland
a21e975843
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5414 51baf565-9d33-0410-a72c-fc3788e3496d
2007-07-13 01:30:40 +00:00
Tom Copeland
5a36b20121
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5413 51baf565-9d33-0410-a72c-fc3788e3496d
2007-07-13 01:20:44 +00:00
Tom Copeland
644a9be0bb
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5412 51baf565-9d33-0410-a72c-fc3788e3496d
2007-07-13 01:16:12 +00:00
Tom Copeland
aaecd1ece3
Added junit dependency
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5410 51baf565-9d33-0410-a72c-fc3788e3496d
2007-07-13 01:14:57 +00:00
Tom Copeland
232a38aa5b
rls preps
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5409 51baf565-9d33-0410-a72c-fc3788e3496d
2007-07-13 00:50:48 +00:00
Tom Copeland
b45dc1219e
A bit simpler
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5408 51baf565-9d33-0410-a72c-fc3788e3496d
2007-07-13 00:35:09 +00:00
Tom Copeland
6474fe101c
Fixed duplicated descriptions
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5407 51baf565-9d33-0410-a72c-fc3788e3496d
2007-07-13 00:34:55 +00:00
Xavier Le Vourch
6ad5f936f4
AppendCharacterWithChar rule added
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5406 51baf565-9d33-0410-a72c-fc3788e3496d
2007-07-12 16:53:53 +00:00
Wouter Zelle
905dc93273
Fixed bug 1698550 - CloneMethodMustImplementCloneable now accepts a clone method that throws CloneNotSupportedException in a final class
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5405 51baf565-9d33-0410-a72c-fc3788e3496d
2007-07-12 11:27:57 +00:00
Ryan Gustafson
6898082b28
Bring XML Schema and DTD up to date w.r.t. actual usage. Correct minor validation violation in basic.xml.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5404 51baf565-9d33-0410-a72c-fc3788e3496d
2007-07-12 04:19:20 +00:00
Tom Copeland
2ad7f6f0a5
Modified to allow for multiple examples per ruleset file
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5403 51baf565-9d33-0410-a72c-fc3788e3496d
2007-07-12 01:41:02 +00:00
Tom Copeland
15c935fd7a
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5402 51baf565-9d33-0410-a72c-fc3788e3496d
2007-07-12 00:50:51 +00:00
Wouter Zelle
5d811ee59f
The new typeresolution SignatureDeclareThrowsException rule can now ignore JUnit classes completely by setting the IgnoreJUnitCompletely property
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5401 51baf565-9d33-0410-a72c-fc3788e3496d
2007-07-11 11:18:40 +00:00
Wouter Zelle
0c5b90b2fe
Typeresolution version of SignatureDeclareThrowsException to fix bug 1680568
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5400 51baf565-9d33-0410-a72c-fc3788e3496d
2007-07-11 09:44:25 +00:00
Tom Copeland
0d97bb25da
Commented out a failing 'test'; really it's more of a demo, I think
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5399 51baf565-9d33-0410-a72c-fc3788e3496d
2007-07-11 01:14:45 +00:00
Tom Copeland
df9c7f3bc6
Applied patch from Romain Pelisse to reduce false positives for this rule
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5398 51baf565-9d33-0410-a72c-fc3788e3496d
2007-07-11 01:14:23 +00:00
Wouter Zelle
4b0a491f15
Fixed crash if the second ASTVariableDeclaratorId is returned instead of the first
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5397 51baf565-9d33-0410-a72c-fc3788e3496d
2007-07-10 21:09:14 +00:00
Wouter Zelle
58b2362ecc
Fixed bug where search for alternative MethodNameDeclaration results in a ClassCastException
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5396 51baf565-9d33-0410-a72c-fc3788e3496d
2007-07-10 20:44:26 +00:00
Wouter Zelle
7736bdd3f8
Fixed issue with a failing LanguageFactoryTest on Windows due to case issues. Most likely, this also fixes some 'real' cases where the parser could not be found.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5395 51baf565-9d33-0410-a72c-fc3788e3496d
2007-07-10 15:41:25 +00:00