Upgrading to PMD 2.2

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3197 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Philippe Herlin
2005-01-31 23:43:36 +00:00
parent 5f7d145a19
commit 72535cdb01
3 changed files with 9 additions and 1 deletions

View File

Binary file not shown.

View File

@@ -9,6 +9,9 @@ import org.eclipse.core.runtime.QualifiedName;
* @version $Revision$
*
* $Log$
* Revision 1.3 2005/01/31 23:39:37 phherlin
* Upgrading to PMD 2.2
*
* Revision 1.2 2005/01/16 22:52:17 phherlin
* Upgrade to PMD 2.1: add new packaged rulesets
*
@@ -33,8 +36,10 @@ public interface PMDPluginConstants {
"rulesets/junit.xml",
"rulesets/logging-java.xml",
"rulesets/naming.xml",
"rulesets/optimizations.xml",
"rulesets/strictexception.xml",
"rulesets/strings.xml",
"rulesets/sunsecure.xml",
"rulesets/unusedcode.xml"};
public static final String[] RULESET_DEFAULTLIST = RULESET_ALLPMD;

View File

@@ -34,6 +34,9 @@ import org.w3c.dom.Text;
* @version $Revision$
*
* $Log$
* Revision 1.5 2005/01/31 23:39:37 phherlin
* Upgrading to PMD 2.2
*
* Revision 1.4 2005/01/16 22:53:03 phherlin
* Upgrade to PMD 2.1: take into account new rules attributes symboltable and dfa
*
@@ -103,7 +106,7 @@ public class RuleSetWriterImpl implements RuleSetWriter {
private Element getRuleSetElement(Document doc, RuleSet ruleSet) {
Element ruleSetElement = doc.createElement("ruleset");
ruleSetElement.setAttribute("name", ruleSet.getName());
ruleSetElement.setAttribute("include", ruleSet.include() ? "true" : "false");
// ruleSetElement.setAttribute("include", ruleSet.include() ? "true" : "false");
Element descriptionElement = getDescriptionElement(doc, ruleSet.getDescription());
ruleSetElement.appendChild(descriptionElement);