Xavier Le Vourch
6045d9e147
version change before new beta to test recent changes
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6571 51baf565-9d33-0410-a72c-fc3788e3496d
2008-10-06 19:30:16 +00:00
Xavier Le Vourch
49b0968c8c
code cleanup: removal of $Log$ and $Revision$
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6570 51baf565-9d33-0410-a72c-fc3788e3496d
2008-10-06 19:26:32 +00:00
Xavier Le Vourch
a44f3a73ec
bump pmd-build version number as jdk14 pom is no longer built
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6569 51baf565-9d33-0410-a72c-fc3788e3496d
2008-10-06 18:22:57 +00:00
Xavier Le Vourch
c862010a1d
undo last change as there's problems with the reports target, specifically the clover target calling clean to make sure the classes are instrumented
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6568 51baf565-9d33-0410-a72c-fc3788e3496d
2008-10-06 18:09:27 +00:00
Xavier Le Vourch
3ae6746eff
'clean' target removed reports directory
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6567 51baf565-9d33-0410-a72c-fc3788e3496d
2008-10-06 17:11:47 +00:00
Ryan Gustafson
28e409d901
Revert inadvertent commit.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6566 51baf565-9d33-0410-a72c-fc3788e3496d
2008-10-06 05:39:25 +00:00
Ryan Gustafson
302e38ba8d
Remove support for Java 1.4 runtime. Primarily this entails removal of the build processes and scripts used to support running with retroweaver. Additional changes are made to code which made checks for running on a 1.4 JVM (found via searches).
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6565 51baf565-9d33-0410-a72c-fc3788e3496d
2008-10-06 05:20:27 +00:00
Ryan Gustafson
c1f5d18669
Correct documentation.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6564 51baf565-9d33-0410-a72c-fc3788e3496d
2008-10-06 04:24:22 +00:00
Ryan Gustafson
6055d7d222
Comment cleanup.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6563 51baf565-9d33-0410-a72c-fc3788e3496d
2008-10-06 03:16:21 +00:00
Ryan Gustafson
34de466006
Rename OntheFlyRenderer to AbstractIncrementalRenderer.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6562 51baf565-9d33-0410-a72c-fc3788e3496d
2008-10-06 03:12:43 +00:00
Ryan Gustafson
d1cb839b37
Rework Renderer to support standardized option passing, as well as a more rigorous definition of those options. This approach allows for a RendererFactory to create Renderer instances, as well as a means to programmatically output details on all available Renderers. Both the PMD command line and Ant tasks now take advantage of the RendererFactory, and have been enhanced to support generic report option passing (ie. -parameter and <param> respectively). Removed obsoleted Renderer specific options from command line and Ant task (e.g. linkPrefix, etc). Finally, some Renderers were given more appropriate names. We should consider dropping some of these goofy Renderers out of the tree (there's about 4-5 Renderers for HTML!).
...
Added missing -showsuppresse option for PMD command line. The default is the same as the Ant task (false), which is a change from prior PMD behavior, but I think this is justified for consistency's sake and the fact that most people likely use the Ant task anyway.
While working on CommandLineOptions, the argument processed code was cleaned up a bit so that missing parameters for options will now give better error messages. This isn't to say there's not work that could still be done in this area, as the code is still rather too loosey-goosey for my tastes.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6561 51baf565-9d33-0410-a72c-fc3788e3496d
2008-10-06 03:06:55 +00:00
Ryan Gustafson
11bbd666ae
JavaDoc fixes. Curiously the Ant build does not seem to report these as problems, Eclipse pointed them out for me.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6560 51baf565-9d33-0410-a72c-fc3788e3496d
2008-10-04 05:45:53 +00:00
Ryan Gustafson
b7d7a056b0
Delete unused file.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6559 51baf565-9d33-0410-a72c-fc3788e3496d
2008-10-04 01:27:32 +00:00
Ryan Gustafson
34ecdafcf1
Changelog update.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6558 51baf565-9d33-0410-a72c-fc3788e3496d
2008-10-04 01:06:42 +00:00
Ryan Gustafson
95d65ea2ec
Provide full file path to PMD, instead of workspace relative path.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6557 51baf565-9d33-0410-a72c-fc3788e3496d
2008-10-04 00:52:32 +00:00
Xavier Le Vourch
5b92ce62f7
cpd ant task documentation for attributes
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6556 51baf565-9d33-0410-a72c-fc3788e3496d
2008-10-03 23:47:11 +00:00
Xavier Le Vourch
6669e7fdf1
Eclipse plugin should work with Eclipse 3.2+: dependency on 3.4 removed
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6554 51baf565-9d33-0410-a72c-fc3788e3496d
2008-10-03 22:13:02 +00:00
Xavier Le Vourch
17159a5f56
version update for new beta package
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6553 51baf565-9d33-0410-a72c-fc3788e3496d
2008-10-03 00:22:59 +00:00
Xavier Le Vourch
ca4303a790
code cleanup: javadoc warning
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6552 51baf565-9d33-0410-a72c-fc3788e3496d
2008-10-02 23:44:48 +00:00
Xavier Le Vourch
0add112542
wrong resource file name during refactoring
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6551 51baf565-9d33-0410-a72c-fc3788e3496d
2008-10-02 22:54:22 +00:00
Ryan Gustafson
a1b27d280a
Remove deprecated APIs and classes.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6550 51baf565-9d33-0410-a72c-fc3788e3496d
2008-10-02 05:33:16 +00:00
Ryan Gustafson
2679c9eca5
Remove XPath 2.0 for XML rules, for now. I thought it would be a nice test case, but it's broken on Java 1.4.
...
I thought I had verified Saxon worked on Java 1.4, but apparently it cannot due in part to dependencies on the DefaultHandler2 class which is only available in Java 1.5 and later (or Java 1.4 with JAXP extension). I think we'll just have to document this limitation for folks wanting to continue to use Java 1.4.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6549 51baf565-9d33-0410-a72c-fc3788e3496d
2008-10-02 05:07:08 +00:00
Ryan Gustafson
7b4f809b41
Add MistypeCDATASection Rule to detect potential extra [ or ].
...
This is not in dogfood, as PMD does a lot of CDATASections which are the end of XPath steps, and this last character is a ]. We could reformat to work around the check (add a newline before the ]]>), but it seems a bit kludgy.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6548 51baf565-9d33-0410-a72c-fc3788e3496d
2008-10-02 03:21:38 +00:00
Ryan Gustafson
7534aedf0c
Remove 'language' attribute from the <ruleset> element in the XML Schema and DTD. Remove from the JSP/JSF RuleSets.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6547 51baf565-9d33-0410-a72c-fc3788e3496d
2008-10-02 01:43:58 +00:00
Ryan Gustafson
e6eac94c0b
Remove Language from RuleSet class. Previous changes which associated Language with Rule are now the driver for processing instead of the RuleSet.
...
Work still needs to be done to clean up the XML Schema and DTD. Nothing too complex there.
Slightly more complicated work needs to be done allow PMD to appropriately associate an source file based LanguageVersion on the RuleContext. Once that is done, it will be technically possible to use a single RuleSet containing Rules for different Languages and actually run it against a mixed set of source files.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6546 51baf565-9d33-0410-a72c-fc3788e3496d
2008-10-01 04:39:43 +00:00
Ryan Gustafson
0481bba385
Fix JavaDoc warning.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6545 51baf565-9d33-0410-a72c-fc3788e3496d
2008-10-01 02:22:08 +00:00
Ryan Gustafson
ad38760383
Update description of the 'xpath' property to be technically accurate.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6544 51baf565-9d33-0410-a72c-fc3788e3496d
2008-09-30 03:20:53 +00:00
Ryan Gustafson
454d19e6a9
Replace magic String with constant.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6543 51baf565-9d33-0410-a72c-fc3788e3496d
2008-09-30 03:17:26 +00:00
Ryan Gustafson
98d32e0341
Change version property to have choices and labels be identical.
...
EnumeratedProperty is really odd in that it wants to serialize out the label. I had assumed it would serialize out the value, and the label was merely used to provide a description in some GUI, and was not the externalized form. Regardless, a verbose value is not what I want people to have to enter when manually providing a the version for XPathRule in XML.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6542 51baf565-9d33-0410-a72c-fc3788e3496d
2008-09-30 03:13:16 +00:00
Xavier Le Vourch
671f8f5b1e
misc changes: properties, version number
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6541 51baf565-9d33-0410-a72c-fc3788e3496d
2008-09-30 01:01:18 +00:00
Xavier Le Vourch
1e93bbdb81
package name refactoring: extension point mappings were incorrect
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6540 51baf565-9d33-0410-a72c-fc3788e3496d
2008-09-30 00:59:06 +00:00
Xavier Le Vourch
478718bfbe
package name refactoring: new mapping file name was incorrect
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6539 51baf565-9d33-0410-a72c-fc3788e3496d
2008-09-29 20:53:20 +00:00
Xavier Le Vourch
027c7b8a1f
package name refactoring: backward compatibility loading of preference file
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6538 51baf565-9d33-0410-a72c-fc3788e3496d
2008-09-29 20:49:36 +00:00
Ryan Gustafson
0d9a71482a
Simplify logic.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6537 51baf565-9d33-0410-a72c-fc3788e3496d
2008-09-29 06:58:15 +00:00
Ryan Gustafson
32221af50d
Add support for an 'Image' attribute on Text/CDATA elements. This allows use of XPaths like:
...
//cdata-section[starts-with(@Image, '[')]
Curiously, this is need for Jaxen to run this query, but Saxon seems to work without it. Something is different in how the AttributeAxisIterator is working for the two cases that is escaping me.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6536 51baf565-9d33-0410-a72c-fc3788e3496d
2008-09-29 06:44:22 +00:00
Ryan Gustafson
3763c8f232
Correct the DocumentNavigator import to use PMD's instead of Jaxen's.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6535 51baf565-9d33-0410-a72c-fc3788e3496d
2008-09-29 06:26:07 +00:00
Ryan Gustafson
8a8a752aa7
Apply escaping to attribute values as well.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6534 51baf565-9d33-0410-a72c-fc3788e3496d
2008-09-29 06:24:11 +00:00
Ryan Gustafson
45495dca8e
Minor optimization to ASTTreeNode to have the parent node be the actual parent which created the node.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6533 51baf565-9d33-0410-a72c-fc3788e3496d
2008-09-29 06:20:59 +00:00
Ryan Gustafson
cc640a1d91
Remove unused imports.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6532 51baf565-9d33-0410-a72c-fc3788e3496d
2008-09-28 22:36:02 +00:00
Ryan Gustafson
2e17cf9da4
Correct issue with using DOM Level 3 APIs on Java 1.4.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6531 51baf565-9d33-0410-a72c-fc3788e3496d
2008-09-28 22:10:45 +00:00
Ryan Gustafson
fdc569b45f
Rule Designer enhanced to save all settings in an XML format, which includes:
...
o Code
o Language Version
o XPath Query
o XPath Version
This should be much more user friendly across restarts (quite helpful when you're developing PMD itself).
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6530 51baf565-9d33-0410-a72c-fc3788e3496d
2008-09-28 21:52:03 +00:00
Ryan Gustafson
e99180d5ba
Remove 'final' from addViolation() methods. Needed to override one of these to easily make the Designer work. There's no comments on why these were marked final, so should be no harm in opening them up.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6529 51baf565-9d33-0410-a72c-fc3788e3496d
2008-09-27 07:02:53 +00:00
Ryan Gustafson
52dfba8203
Designer updated to support specifying the XPath version to use for the query.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6528 51baf565-9d33-0410-a72c-fc3788e3496d
2008-09-27 07:00:55 +00:00
Ryan Gustafson
c08563eca5
Fixed mistake in replace call.
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6527 51baf565-9d33-0410-a72c-fc3788e3496d
2008-09-27 06:59:54 +00:00
Ryan Gustafson
224af751ac
XMLNode.toString() needs to change node names like '#cdata-section' to remove the '#' characters, which are not value node names for use in XPath query steps.
...
The conversion produces the following element names, which while they may collide with some XML documents, they are easy to use:
cdata-section
comment
document
document-fragment
text
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6526 51baf565-9d33-0410-a72c-fc3788e3496d
2008-09-27 06:48:22 +00:00
Xavier Le Vourch
914913113f
'clean' removes .../bin directories
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6525 51baf565-9d33-0410-a72c-fc3788e3496d
2008-09-26 23:02:56 +00:00
Xavier Le Vourch
cafe20aded
code refactoring: core, runtime and ui packages moved to net/sourceforge/pmd/eclipse subpackages
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6524 51baf565-9d33-0410-a72c-fc3788e3496d
2008-09-26 22:58:58 +00:00
Xavier Le Vourch
e8c2626a41
code refactoring: core, runtime and ui packages moved to net/sourceforge/pmd/eclipse subpackages
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6523 51baf565-9d33-0410-a72c-fc3788e3496d
2008-09-26 22:57:05 +00:00
Xavier Le Vourch
6265940d56
plugin reorganization: test projects updated to reflect changes in plugin architecture
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6522 51baf565-9d33-0410-a72c-fc3788e3496d
2008-09-26 22:12:10 +00:00
Xavier Le Vourch
5f847aa32d
'clean' target also cleans stuff in features and plugins subdirectories
...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6521 51baf565-9d33-0410-a72c-fc3788e3496d
2008-09-26 21:41:41 +00:00