diff --git a/pmd/etc/grammar/PldocAST.jjt b/pmd-plsql/etc/grammar/PldocAST.jjt similarity index 100% rename from pmd/etc/grammar/PldocAST.jjt rename to pmd-plsql/etc/grammar/PldocAST.jjt diff --git a/pmd-plsql/pom.xml b/pmd-plsql/pom.xml new file mode 100644 index 0000000000..2ea94392c6 --- /dev/null +++ b/pmd-plsql/pom.xml @@ -0,0 +1,185 @@ + + + 4.0.0 + pmd-plsql + PMD PL/SQL + + + net.sourceforge.pmd + pmd-aggregate + 5.1.4-SNAPSHOT + + + + + + maven-resources-plugin + + false + + ${*} + + + + + + org.apache.maven.plugins + maven-antrun-plugin + true + + + generate-sources + generate-sources + + + + + + + + + + run + + + + + + + org.codehaus.mojo + build-helper-maven-plugin + + + add-javacc-generated-sources + + add-source + + + + ${project.build.directory}/generated-sources/javacc + + + + + + + + + com.atlassian.maven.plugins + maven-clover2-plugin + + ${java.version} + ${basedir}/../pmd/licences/clover2.license + + + + pre-site + + instrument + + + + + + org.apache.maven.plugins + maven-site-plugin + + ${project.build.directory}/generated-xdocs + + + + + + + net.sourceforge.pmd + pmd + ${project.version} + + + net.sourceforge.pmd + pmd-test + ${project.version} + + + org.apache.ant + ant + provided + + + org.apache.ant + ant-testutil + test + + + jaxen + jaxen + + + xercesImpl + xerces + + + xalan + xalan + + + icu4j + com.ibm.icu + + + + + com.beust + jcommander + + + org.ow2.asm + asm + + + net.sourceforge.saxon + saxon + + + net.sourceforge.saxon + saxon + dom + runtime + + + junit + junit + test + + + xerces + xercesImpl + jar + compile + + + net.java.dev.javacc + javacc + + + commons-io + commons-io + + + org.mockito + mockito-all + test + + + org.apache.commons + commons-lang3 + + + org.slf4j + slf4j-api + test + + + diff --git a/pmd-plsql/src/main/ant/alljavacc.xml b/pmd-plsql/src/main/ant/alljavacc.xml new file mode 100644 index 0000000000..2cb7679a0f --- /dev/null +++ b/pmd-plsql/src/main/ant/alljavacc.xml @@ -0,0 +1,82 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + public class + + + + + + diff --git a/pmd/src/main/java/net/sourceforge/pmd/cpd/PLSQLLanguage.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/cpd/PLSQLLanguage.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/cpd/PLSQLLanguage.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/cpd/PLSQLLanguage.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/cpd/PLSQLTokenizer.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/cpd/PLSQLTokenizer.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/cpd/PLSQLTokenizer.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/cpd/PLSQLTokenizer.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/PLSQLDataFlowHandler.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/PLSQLDataFlowHandler.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/PLSQLDataFlowHandler.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/PLSQLDataFlowHandler.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/PLSQLHandler.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/PLSQLHandler.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/PLSQLHandler.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/PLSQLHandler.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/PLSQLLanguageModule.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/PLSQLLanguageModule.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/PLSQLLanguageModule.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/PLSQLLanguageModule.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/PLSQLParser.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/PLSQLParser.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/PLSQLParser.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/PLSQLParser.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/PLSQLTokenManager.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/PLSQLTokenManager.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/PLSQLTokenManager.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/PLSQLTokenManager.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTArguments.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTArguments.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTArguments.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTArguments.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTDatatype.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTDatatype.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTDatatype.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTDatatype.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTFormalParameter.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTFormalParameter.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTFormalParameter.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTFormalParameter.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTIfStatement.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTIfStatement.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTIfStatement.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTIfStatement.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTInput.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTInput.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTInput.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTInput.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTMethodDeclaration.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTMethodDeclaration.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTMethodDeclaration.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTMethodDeclaration.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTMethodDeclarator.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTMethodDeclarator.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTMethodDeclarator.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTMethodDeclarator.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTName.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTName.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTName.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTName.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTPackageBody.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTPackageBody.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTPackageBody.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTPackageBody.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTPackageSpecification.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTPackageSpecification.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTPackageSpecification.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTPackageSpecification.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTPrimaryPrefix.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTPrimaryPrefix.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTPrimaryPrefix.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTPrimaryPrefix.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTPrimarySuffix.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTPrimarySuffix.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTPrimarySuffix.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTPrimarySuffix.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTProgramUnit.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTProgramUnit.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTProgramUnit.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTProgramUnit.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTTriggerTimingPointSection.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTTriggerTimingPointSection.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTTriggerTimingPointSection.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTTriggerTimingPointSection.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTTriggerUnit.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTTriggerUnit.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTTriggerUnit.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTTriggerUnit.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTTypeMethod.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTTypeMethod.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTTypeMethod.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTTypeMethod.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTTypeSpecification.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTTypeSpecification.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTTypeSpecification.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTTypeSpecification.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTVariableOrConstantDeclaratorId.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTVariableOrConstantDeclaratorId.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTVariableOrConstantDeclaratorId.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTVariableOrConstantDeclaratorId.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/ast/AbstractPLSQLNode.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/ast/AbstractPLSQLNode.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/ast/AbstractPLSQLNode.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/ast/AbstractPLSQLNode.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/ast/DumpFacade.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/ast/DumpFacade.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/ast/DumpFacade.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/ast/DumpFacade.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ExecutableCode.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ExecutableCode.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ExecutableCode.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ExecutableCode.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/ast/OracleObject.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/ast/OracleObject.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/ast/OracleObject.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/ast/OracleObject.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/ast/PLSQLNode.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/ast/PLSQLNode.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/ast/PLSQLNode.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/ast/PLSQLNode.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/ast/PLSQLParserVisitorAdapter.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/ast/PLSQLParserVisitorAdapter.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/ast/PLSQLParserVisitorAdapter.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/ast/PLSQLParserVisitorAdapter.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/dfa/DFAPLSQLGraphRule.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/dfa/DFAPLSQLGraphRule.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/dfa/DFAPLSQLGraphRule.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/dfa/DFAPLSQLGraphRule.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/dfa/DataFlowFacade.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/dfa/DataFlowFacade.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/dfa/DataFlowFacade.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/dfa/DataFlowFacade.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/dfa/PLSQLDataFlowNode.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/dfa/PLSQLDataFlowNode.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/dfa/PLSQLDataFlowNode.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/dfa/PLSQLDataFlowNode.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/dfa/StatementAndBraceFinder.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/dfa/StatementAndBraceFinder.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/dfa/StatementAndBraceFinder.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/dfa/StatementAndBraceFinder.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/dfa/VariableAccessVisitor.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/dfa/VariableAccessVisitor.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/dfa/VariableAccessVisitor.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/dfa/VariableAccessVisitor.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/rule/AbstractPLSQLRule.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/rule/AbstractPLSQLRule.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/rule/AbstractPLSQLRule.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/rule/AbstractPLSQLRule.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/rule/AbstractStatisticalPLSQLRule.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/rule/AbstractStatisticalPLSQLRule.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/rule/AbstractStatisticalPLSQLRule.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/rule/AbstractStatisticalPLSQLRule.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/rule/PLSQLRuleChainVisitor.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/rule/PLSQLRuleChainVisitor.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/rule/PLSQLRuleChainVisitor.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/rule/PLSQLRuleChainVisitor.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/rule/PLSQLRuleViolationFactory.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/rule/PLSQLRuleViolationFactory.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/rule/PLSQLRuleViolationFactory.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/rule/PLSQLRuleViolationFactory.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/rule/codesize/AbstractNcssCountRule.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/rule/codesize/AbstractNcssCountRule.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/rule/codesize/AbstractNcssCountRule.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/rule/codesize/AbstractNcssCountRule.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/rule/codesize/CyclomaticComplexityRule.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/rule/codesize/CyclomaticComplexityRule.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/rule/codesize/CyclomaticComplexityRule.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/rule/codesize/CyclomaticComplexityRule.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/rule/codesize/ExcessiveMethodLengthRule.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/rule/codesize/ExcessiveMethodLengthRule.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/rule/codesize/ExcessiveMethodLengthRule.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/rule/codesize/ExcessiveMethodLengthRule.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/rule/codesize/ExcessiveObjectLengthRule.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/rule/codesize/ExcessiveObjectLengthRule.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/rule/codesize/ExcessiveObjectLengthRule.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/rule/codesize/ExcessiveObjectLengthRule.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/rule/codesize/ExcessivePackageBodyLengthRule.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/rule/codesize/ExcessivePackageBodyLengthRule.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/rule/codesize/ExcessivePackageBodyLengthRule.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/rule/codesize/ExcessivePackageBodyLengthRule.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/rule/codesize/ExcessivePackageSpecificationLengthRule.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/rule/codesize/ExcessivePackageSpecificationLengthRule.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/rule/codesize/ExcessivePackageSpecificationLengthRule.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/rule/codesize/ExcessivePackageSpecificationLengthRule.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/rule/codesize/ExcessiveParameterListRule.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/rule/codesize/ExcessiveParameterListRule.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/rule/codesize/ExcessiveParameterListRule.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/rule/codesize/ExcessiveParameterListRule.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/rule/codesize/ExcessiveTypeLengthRule.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/rule/codesize/ExcessiveTypeLengthRule.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/rule/codesize/ExcessiveTypeLengthRule.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/rule/codesize/ExcessiveTypeLengthRule.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/rule/codesize/NPathComplexityRule.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/rule/codesize/NPathComplexityRule.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/rule/codesize/NPathComplexityRule.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/rule/codesize/NPathComplexityRule.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/rule/codesize/NcssMethodCountRule.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/rule/codesize/NcssMethodCountRule.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/rule/codesize/NcssMethodCountRule.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/rule/codesize/NcssMethodCountRule.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/rule/codesize/NcssObjectCountRule.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/rule/codesize/NcssObjectCountRule.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/rule/codesize/NcssObjectCountRule.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/rule/codesize/NcssObjectCountRule.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/rule/codesize/TooManyFieldsRule.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/rule/codesize/TooManyFieldsRule.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/rule/codesize/TooManyFieldsRule.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/rule/codesize/TooManyFieldsRule.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/rule/design/ExcessiveLengthRule.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/rule/design/ExcessiveLengthRule.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/rule/design/ExcessiveLengthRule.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/rule/design/ExcessiveLengthRule.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/rule/design/ExcessiveNodeCountRule.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/rule/design/ExcessiveNodeCountRule.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/rule/design/ExcessiveNodeCountRule.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/rule/design/ExcessiveNodeCountRule.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/Applier.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/Applier.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/Applier.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/Applier.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/ClassNameDeclaration.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/ClassNameDeclaration.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/ClassNameDeclaration.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/ClassNameDeclaration.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/ClassScope.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/ClassScope.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/ClassScope.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/ClassScope.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/ImageFinderFunction.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/ImageFinderFunction.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/ImageFinderFunction.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/ImageFinderFunction.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/LocalScope.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/LocalScope.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/LocalScope.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/LocalScope.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/MethodNameDeclaration.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/MethodNameDeclaration.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/MethodNameDeclaration.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/MethodNameDeclaration.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/MethodScope.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/MethodScope.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/MethodScope.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/MethodScope.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/NameFinder.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/NameFinder.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/NameFinder.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/NameFinder.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/OccurrenceFinder.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/OccurrenceFinder.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/OccurrenceFinder.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/OccurrenceFinder.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/PLSQLNameOccurrence.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/PLSQLNameOccurrence.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/PLSQLNameOccurrence.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/PLSQLNameOccurrence.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/ScopeAndDeclarationFinder.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/ScopeAndDeclarationFinder.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/ScopeAndDeclarationFinder.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/ScopeAndDeclarationFinder.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/Search.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/Search.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/Search.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/Search.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/SourceFileScope.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/SourceFileScope.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/SourceFileScope.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/SourceFileScope.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/SymbolFacade.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/SymbolFacade.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/SymbolFacade.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/SymbolFacade.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/TypeSet.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/TypeSet.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/TypeSet.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/TypeSet.java diff --git a/pmd/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/VariableNameDeclaration.java b/pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/VariableNameDeclaration.java similarity index 100% rename from pmd/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/VariableNameDeclaration.java rename to pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/symboltable/VariableNameDeclaration.java diff --git a/pmd-plsql/src/main/resources/META-INF/services/net.sourceforge.pmd.lang.Language b/pmd-plsql/src/main/resources/META-INF/services/net.sourceforge.pmd.lang.Language new file mode 100644 index 0000000000..35b993aa78 --- /dev/null +++ b/pmd-plsql/src/main/resources/META-INF/services/net.sourceforge.pmd.lang.Language @@ -0,0 +1 @@ +net.sourceforge.pmd.lang.plsql.PLSQLLanguageModule diff --git a/pmd/src/main/resources/rulesets/plsql/TomKytesDespair.xml b/pmd-plsql/src/main/resources/rulesets/plsql/TomKytesDespair.xml similarity index 100% rename from pmd/src/main/resources/rulesets/plsql/TomKytesDespair.xml rename to pmd-plsql/src/main/resources/rulesets/plsql/TomKytesDespair.xml diff --git a/pmd/src/main/resources/rulesets/plsql/codesize.xml b/pmd-plsql/src/main/resources/rulesets/plsql/codesize.xml similarity index 100% rename from pmd/src/main/resources/rulesets/plsql/codesize.xml rename to pmd-plsql/src/main/resources/rulesets/plsql/codesize.xml diff --git a/pmd/src/main/resources/rulesets/plsql/dates.xml b/pmd-plsql/src/main/resources/rulesets/plsql/dates.xml similarity index 100% rename from pmd/src/main/resources/rulesets/plsql/dates.xml rename to pmd-plsql/src/main/resources/rulesets/plsql/dates.xml diff --git a/pmd/src/main/resources/rulesets/plsql/rulesets.properties b/pmd-plsql/src/main/resources/rulesets/plsql/rulesets.properties similarity index 100% rename from pmd/src/main/resources/rulesets/plsql/rulesets.properties rename to pmd-plsql/src/main/resources/rulesets/plsql/rulesets.properties diff --git a/pmd/src/test/java/net/sourceforge/pmd/lang/plsql/AbstractPLSQLParserTst.java b/pmd-plsql/src/test/java/net/sourceforge/pmd/lang/plsql/AbstractPLSQLParserTst.java similarity index 100% rename from pmd/src/test/java/net/sourceforge/pmd/lang/plsql/AbstractPLSQLParserTst.java rename to pmd-plsql/src/test/java/net/sourceforge/pmd/lang/plsql/AbstractPLSQLParserTst.java diff --git a/pmd/src/test/java/net/sourceforge/pmd/lang/plsql/PLSQLParserTest.java b/pmd-plsql/src/test/java/net/sourceforge/pmd/lang/plsql/PLSQLParserTest.java similarity index 100% rename from pmd/src/test/java/net/sourceforge/pmd/lang/plsql/PLSQLParserTest.java rename to pmd-plsql/src/test/java/net/sourceforge/pmd/lang/plsql/PLSQLParserTest.java diff --git a/pmd/src/test/java/net/sourceforge/pmd/lang/plsql/PLSQLXPathRuleTest.java b/pmd-plsql/src/test/java/net/sourceforge/pmd/lang/plsql/PLSQLXPathRuleTest.java similarity index 100% rename from pmd/src/test/java/net/sourceforge/pmd/lang/plsql/PLSQLXPathRuleTest.java rename to pmd-plsql/src/test/java/net/sourceforge/pmd/lang/plsql/PLSQLXPathRuleTest.java diff --git a/pmd/src/test/java/net/sourceforge/pmd/lang/plsql/dfa/StatementAndBraceFinderTest.java b/pmd-plsql/src/test/java/net/sourceforge/pmd/lang/plsql/dfa/StatementAndBraceFinderTest.java similarity index 100% rename from pmd/src/test/java/net/sourceforge/pmd/lang/plsql/dfa/StatementAndBraceFinderTest.java rename to pmd-plsql/src/test/java/net/sourceforge/pmd/lang/plsql/dfa/StatementAndBraceFinderTest.java diff --git a/pmd/src/test/java/net/sourceforge/pmd/lang/plsql/rule/codesize/CodesizeRulesTest.java b/pmd-plsql/src/test/java/net/sourceforge/pmd/lang/plsql/rule/codesize/CodesizeRulesTest.java similarity index 100% rename from pmd/src/test/java/net/sourceforge/pmd/lang/plsql/rule/codesize/CodesizeRulesTest.java rename to pmd-plsql/src/test/java/net/sourceforge/pmd/lang/plsql/rule/codesize/CodesizeRulesTest.java diff --git a/pmd/src/test/resources/net/sourceforge/pmd/lang/plsql/rule/codesize/xml/CyclomaticComplexity.xml b/pmd-plsql/src/test/resources/net/sourceforge/pmd/lang/plsql/rule/codesize/xml/CyclomaticComplexity.xml similarity index 100% rename from pmd/src/test/resources/net/sourceforge/pmd/lang/plsql/rule/codesize/xml/CyclomaticComplexity.xml rename to pmd-plsql/src/test/resources/net/sourceforge/pmd/lang/plsql/rule/codesize/xml/CyclomaticComplexity.xml diff --git a/pmd/src/test/resources/net/sourceforge/pmd/lang/plsql/rule/codesize/xml/ExcessiveMethodLength.xml b/pmd-plsql/src/test/resources/net/sourceforge/pmd/lang/plsql/rule/codesize/xml/ExcessiveMethodLength.xml similarity index 100% rename from pmd/src/test/resources/net/sourceforge/pmd/lang/plsql/rule/codesize/xml/ExcessiveMethodLength.xml rename to pmd-plsql/src/test/resources/net/sourceforge/pmd/lang/plsql/rule/codesize/xml/ExcessiveMethodLength.xml diff --git a/pmd/src/test/resources/net/sourceforge/pmd/lang/plsql/rule/codesize/xml/ExcessiveObjectLength.xml b/pmd-plsql/src/test/resources/net/sourceforge/pmd/lang/plsql/rule/codesize/xml/ExcessiveObjectLength.xml similarity index 100% rename from pmd/src/test/resources/net/sourceforge/pmd/lang/plsql/rule/codesize/xml/ExcessiveObjectLength.xml rename to pmd-plsql/src/test/resources/net/sourceforge/pmd/lang/plsql/rule/codesize/xml/ExcessiveObjectLength.xml diff --git a/pmd/src/test/resources/net/sourceforge/pmd/lang/plsql/rule/codesize/xml/ExcessivePackageBodyLength.xml b/pmd-plsql/src/test/resources/net/sourceforge/pmd/lang/plsql/rule/codesize/xml/ExcessivePackageBodyLength.xml similarity index 100% rename from pmd/src/test/resources/net/sourceforge/pmd/lang/plsql/rule/codesize/xml/ExcessivePackageBodyLength.xml rename to pmd-plsql/src/test/resources/net/sourceforge/pmd/lang/plsql/rule/codesize/xml/ExcessivePackageBodyLength.xml diff --git a/pmd/src/test/resources/net/sourceforge/pmd/lang/plsql/rule/codesize/xml/ExcessivePackageSpecificationLength.xml b/pmd-plsql/src/test/resources/net/sourceforge/pmd/lang/plsql/rule/codesize/xml/ExcessivePackageSpecificationLength.xml similarity index 100% rename from pmd/src/test/resources/net/sourceforge/pmd/lang/plsql/rule/codesize/xml/ExcessivePackageSpecificationLength.xml rename to pmd-plsql/src/test/resources/net/sourceforge/pmd/lang/plsql/rule/codesize/xml/ExcessivePackageSpecificationLength.xml diff --git a/pmd/src/test/resources/net/sourceforge/pmd/lang/plsql/rule/codesize/xml/ExcessiveParameterList.xml b/pmd-plsql/src/test/resources/net/sourceforge/pmd/lang/plsql/rule/codesize/xml/ExcessiveParameterList.xml similarity index 100% rename from pmd/src/test/resources/net/sourceforge/pmd/lang/plsql/rule/codesize/xml/ExcessiveParameterList.xml rename to pmd-plsql/src/test/resources/net/sourceforge/pmd/lang/plsql/rule/codesize/xml/ExcessiveParameterList.xml diff --git a/pmd/src/test/resources/net/sourceforge/pmd/lang/plsql/rule/codesize/xml/ExcessiveTypeLength.xml b/pmd-plsql/src/test/resources/net/sourceforge/pmd/lang/plsql/rule/codesize/xml/ExcessiveTypeLength.xml similarity index 100% rename from pmd/src/test/resources/net/sourceforge/pmd/lang/plsql/rule/codesize/xml/ExcessiveTypeLength.xml rename to pmd-plsql/src/test/resources/net/sourceforge/pmd/lang/plsql/rule/codesize/xml/ExcessiveTypeLength.xml diff --git a/pmd/src/test/resources/net/sourceforge/pmd/lang/plsql/rule/codesize/xml/NPathComplexity.xml b/pmd-plsql/src/test/resources/net/sourceforge/pmd/lang/plsql/rule/codesize/xml/NPathComplexity.xml similarity index 100% rename from pmd/src/test/resources/net/sourceforge/pmd/lang/plsql/rule/codesize/xml/NPathComplexity.xml rename to pmd-plsql/src/test/resources/net/sourceforge/pmd/lang/plsql/rule/codesize/xml/NPathComplexity.xml diff --git a/pmd/src/test/resources/net/sourceforge/pmd/lang/plsql/rule/codesize/xml/NcssMethodCount.xml b/pmd-plsql/src/test/resources/net/sourceforge/pmd/lang/plsql/rule/codesize/xml/NcssMethodCount.xml similarity index 100% rename from pmd/src/test/resources/net/sourceforge/pmd/lang/plsql/rule/codesize/xml/NcssMethodCount.xml rename to pmd-plsql/src/test/resources/net/sourceforge/pmd/lang/plsql/rule/codesize/xml/NcssMethodCount.xml diff --git a/pmd/src/test/resources/net/sourceforge/pmd/lang/plsql/rule/codesize/xml/NcssObjectCount.xml b/pmd-plsql/src/test/resources/net/sourceforge/pmd/lang/plsql/rule/codesize/xml/NcssObjectCount.xml similarity index 100% rename from pmd/src/test/resources/net/sourceforge/pmd/lang/plsql/rule/codesize/xml/NcssObjectCount.xml rename to pmd-plsql/src/test/resources/net/sourceforge/pmd/lang/plsql/rule/codesize/xml/NcssObjectCount.xml diff --git a/pmd/src/test/resources/net/sourceforge/pmd/lang/plsql/rule/codesize/xml/TooManyFields.xml b/pmd-plsql/src/test/resources/net/sourceforge/pmd/lang/plsql/rule/codesize/xml/TooManyFields.xml similarity index 100% rename from pmd/src/test/resources/net/sourceforge/pmd/lang/plsql/rule/codesize/xml/TooManyFields.xml rename to pmd-plsql/src/test/resources/net/sourceforge/pmd/lang/plsql/rule/codesize/xml/TooManyFields.xml diff --git a/pmd/src/main/ant/alljavacc.xml b/pmd/src/main/ant/alljavacc.xml index f2ffd9d646..16e5203830 100644 --- a/pmd/src/main/ant/alljavacc.xml +++ b/pmd/src/main/ant/alljavacc.xml @@ -4,7 +4,7 @@ + depends="checkUpToDate,init,dummyjjtree,jspjjtree,cppjavacc,cleanup" /> @@ -102,61 +102,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - public class - - - - - - diff --git a/pmd/src/main/java/net/sourceforge/pmd/util/viewer/gui/MainFrame.java b/pmd/src/main/java/net/sourceforge/pmd/util/viewer/gui/MainFrame.java index 49289a1649..68beb112e3 100644 --- a/pmd/src/main/java/net/sourceforge/pmd/util/viewer/gui/MainFrame.java +++ b/pmd/src/main/java/net/sourceforge/pmd/util/viewer/gui/MainFrame.java @@ -23,7 +23,6 @@ import net.sourceforge.pmd.PMD; import net.sourceforge.pmd.lang.LanguageRegistry; import net.sourceforge.pmd.lang.LanguageVersion; import net.sourceforge.pmd.lang.ast.ParseException; -import net.sourceforge.pmd.lang.plsql.PLSQLLanguageModule; import net.sourceforge.pmd.util.viewer.model.ViewerModel; import net.sourceforge.pmd.util.viewer.model.ViewerModelEvent; import net.sourceforge.pmd.util.viewer.model.ViewerModelListener; @@ -138,7 +137,7 @@ public class MainFrame } else if (jdk17MenuItem.isSelected()) { return LanguageRegistry.getLanguage(javaName).getVersion("1.7"); } else if (plsqlMenuItem.isSelected()) { - return LanguageRegistry.getLanguage(PLSQLLanguageModule.NAME).getDefaultVersion(); + return LanguageRegistry.getLanguage("PLSQL").getDefaultVersion(); } return LanguageRegistry.getLanguage(javaName).getVersion("1.5"); } diff --git a/pmd/src/main/resources/META-INF/services/net.sourceforge.pmd.lang.Language b/pmd/src/main/resources/META-INF/services/net.sourceforge.pmd.lang.Language index 0104075131..a77173966e 100644 --- a/pmd/src/main/resources/META-INF/services/net.sourceforge.pmd.lang.Language +++ b/pmd/src/main/resources/META-INF/services/net.sourceforge.pmd.lang.Language @@ -2,7 +2,6 @@ net.sourceforge.pmd.lang.cpp.CppLanguageModule net.sourceforge.pmd.lang.fortran.FortranLanguageModule net.sourceforge.pmd.lang.jsp.JspLanguageModule net.sourceforge.pmd.lang.php.PhpLanguageModule -net.sourceforge.pmd.lang.plsql.PLSQLLanguageModule net.sourceforge.pmd.lang.ruby.RubyLanguageModule net.sourceforge.pmd.lang.xml.XmlLanguageModule net.sourceforge.pmd.lang.xsl.XslLanguageModule \ No newline at end of file diff --git a/pom.xml b/pom.xml index bb987ed014..ef91a87a3e 100644 --- a/pom.xml +++ b/pom.xml @@ -631,6 +631,7 @@ pmd-java pmd-javascript pmd-vm + pmd-plsql pmd-dist