From b8fe282b901300e59b9039a4324798df8a7a8267 Mon Sep 17 00:00:00 2001 From: Philippe Herlin Date: Sun, 8 Oct 2006 22:01:38 +0000 Subject: [PATCH] Revert pmd-eclipse project to a Java Project to fix build path errors git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4596 51baf565-9d33-0410-a72c-fc3788e3496d --- pmd-eclipse/.classpath | 6 ++++++ pmd-eclipse/.pmd | 2 ++ pmd-eclipse/.project | 7 ++++++- 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 pmd-eclipse/.classpath create mode 100644 pmd-eclipse/.pmd diff --git a/pmd-eclipse/.classpath b/pmd-eclipse/.classpath new file mode 100644 index 0000000000..fb5011632c --- /dev/null +++ b/pmd-eclipse/.classpath @@ -0,0 +1,6 @@ + + + + + + diff --git a/pmd-eclipse/.pmd b/pmd-eclipse/.pmd new file mode 100644 index 0000000000..380b569db0 --- /dev/null +++ b/pmd-eclipse/.pmd @@ -0,0 +1,2 @@ + +falseAbstractClassWithoutAbstractMethodDesign RulesAbstractNamingNaming RulesAccessorClassGenerationDesign RulesAppendCharacterWithCharString and StringBuffer RulesArrayIsStoredDirectlySecurity Code GuidelinesAssignmentInOperandControversial RulesAssignmentToNonFinalStaticDesign RulesAtLeastOneConstructorControversial RulesAvoidArrayLoopsOptimization RulesAvoidAssertAsIdentifierMigration RulesAvoidCallingFinalizeFinalizer RulesAvoidCatchingNPEStrict Exception RulesAvoidCatchingThrowableStrict Exception RulesAvoidConstantsInterfaceDesign RulesAvoidDecimalLiteralsInBigDecimalConstructorBasic RulesAvoidDeeplyNestedIfStmtsDesign RulesAvoidDollarSignsNaming RulesAvoidDuplicateLiteralsString and StringBuffer RulesAvoidEnumAsIdentifierMigration RulesAvoidFieldNameMatchingMethodNameNaming RulesAvoidFieldNameMatchingTypeNameNaming RulesAvoidInstanceofChecksInCatchClauseDesign RulesAvoidInstantiatingObjectsInLoopsOptimization RulesAvoidNonConstructorMethodsWithClassNameNaming RulesAvoidPrintStackTraceJava Logging RulesAvoidProtectedFieldInFinalClassDesign RulesAvoidReassigningParametersDesign RulesAvoidRethrowingExceptionStrict Exception RulesAvoidSynchronizedAtMethodLevelDesign RulesAvoidThreadGroupBasic RulesAvoidThrowingNullPointerExceptionStrict Exception RulesAvoidThrowingRawExceptionTypesStrict Exception RulesBadComparisonDesign RulesBeanMembersShouldSerializeJavaBean RulesBooleanInstantiationBasic RulesBooleanInversionControversial RulesBrokenNullCheckBasic RulesCallSuperInConstructorControversial RulesClassCastExceptionWithToArrayBasic RulesClassNamingConventionsNaming RulesCloneMethodMustImplementCloneableClone Implementation RulesCloneThrowsCloneNotSupportedExceptionClone Implementation RulesCloseResourceDesign RulesCollapsibleIfStatementsBasic RulesCompareObjectsWithEqualsDesign RulesConfusingTernaryDesign RulesConsecutiveLiteralAppendsString and StringBuffer RulesConstructorCallsOverridableMethodDesign RulesCouplingBetweenObjectsCoupling RulesCyclomaticComplexityCode Size RulesDefaultLabelNotLastInSwitchStmtDesign RulesDefaultPackageControversial RulesDontImportJavaLangImport Statement RulesDontImportSunControversial RulesDoubleCheckedLockingBasic RulesDuplicateImportsImport Statement RulesEmptyCatchBlockBasic RulesEmptyFinalizerFinalizer RulesEmptyFinallyBlockBasic RulesEmptyIfStmtBasic RulesEmptyStatementNotInLoopBasic RulesEmptyStaticInitializerBasic RulesEmptySwitchStatementsBasic RulesEmptySynchronizedBlockBasic RulesEmptyTryBlockBasic RulesEmptyWhileStmtBasic RulesEqualsNullDesign RulesExceptionAsFlowControlStrict Exception RulesExcessiveClassLengthCode Size RulesExcessiveImportsCoupling RulesExcessiveMethodLengthCode Size RulesExcessiveParameterListCode Size RulesExcessivePublicCountCode Size RulesFinalFieldCouldBeStaticDesign RulesFinalizeDoesNotCallSuperFinalizeFinalizer RulesFinalizeOnlyCallsSuperFinalizeFinalizer RulesFinalizeOverloadedFinalizer RulesFinalizeShouldBeProtectedFinalizer RulesForLoopShouldBeWhileLoopBasic RulesForLoopsMustUseBracesBraces RulesIdempotentOperationsDesign RulesIfElseStmtsMustUseBracesBraces RulesIfStmtsMustUseBracesBraces RulesImmutableFieldDesign RulesImportFromSamePackageImport Statement RulesInefficientEmptyStringCheckString and StringBuffer RulesInefficientStringBufferingString and StringBuffer RulesInstantiationToGetClassDesign RulesInsufficientStringBufferDeclarationString and StringBuffer RulesIntegerInstantiationMigration RulesJUnitAssertionsShouldIncludeMessageJUnit RulesJUnitSpellingJUnit RulesJUnitStaticSuiteJUnit RulesJUnitTestsShouldIncludeAssertJUnit RulesJumbledIncrementerBasic RulesLocalVariableCouldBeFinalOptimization RulesLoggerIsNotStaticFinalJava Logging RulesLongVariableNaming RulesLooseCouplingCoupling RulesMethodArgumentCouldBeFinalOptimization RulesMethodNamingConventionsNaming RulesMethodReturnsInternalArraySecurity Code GuidelinesMethodWithSameNameAsEnclosingClassNaming RulesMisleadingVariableNameNaming RulesMisplacedNullCheckBasic RulesMissingBreakInSwitchDesign RulesMissingSerialVersionUIDJavaBean RulesMissingStaticMethodInNonInstantiatableClassDesign RulesMoreThanOneLoggerJava Logging RulesNoPackageNaming RulesNonCaseLabelInSwitchStatementDesign RulesNonStaticInitializerDesign RulesNonThreadSafeSingletonDesign RulesNullAssignmentControversial RulesOnlyOneReturnControversial RulesOptimizableToArrayCallDesign RulesOverrideBothEqualsAndHashcodeBasic RulesPackageCaseNaming RulesPositionLiteralsFirstInComparisonsDesign RulesPreserveStackTraceDesign RulesProperCloneImplementationClone Implementation RulesProperLoggerJakarta Commons Logging RulesReplaceEnumerationWithIteratorMigration RulesReplaceHashtableWithMapMigration RulesReplaceVectorWithListMigration RulesReturnFromFinallyBlockBasic RulesShortMethodNameNaming RulesShortVariableNaming RulesSignatureDeclareThrowsExceptionStrict Exception RulesSimpleDateFormatNeedsLocaleDesign RulesSimplifyBooleanAssertionJUnit RulesSimplifyBooleanExpressionsDesign RulesSimplifyBooleanReturnsDesign RulesSimplifyConditionalDesign RulesSimplifyStartsWithOptimization RulesSingularFieldControversial RulesStringInstantiationString and StringBuffer RulesStringToStringString and StringBuffer RulesSuspiciousConstantFieldNameNaming RulesSuspiciousEqualsMethodNameNaming RulesSuspiciousHashcodeMethodNameNaming RulesSuspiciousOctalEscapeControversial RulesSwitchDensityDesign RulesSwitchStmtsShouldHaveDefaultDesign RulesSystemPrintlnJava Logging RulesTestClassWithoutTestCasesJUnit RulesTooManyFieldsCode Size RulesUncommentedEmptyConstructorDesign RulesUncommentedEmptyMethodDesign RulesUnconditionalIfStatementBasic RulesUnnecessaryBooleanAssertionJUnit RulesUnnecessaryCaseChangeString and StringBuffer RulesUnnecessaryConstructorControversial RulesUnnecessaryConversionTemporaryBasic RulesUnnecessaryFinalModifierBasic RulesUnnecessaryLocalBeforeReturnDesign RulesUnnecessaryParenthesesControversial RulesUnnecessaryReturnBasic RulesUnnecessaryWrapperObjectCreationOptimization RulesUnsynchronizedStaticDateFormatterDesign RulesUnusedFormalParameterUnused Code RulesUnusedImportsImport Statement RulesUnusedLocalVariableUnused Code RulesUnusedModifierControversial RulesUnusedNullCheckInEqualsBasic RulesUnusedPrivateFieldUnused Code RulesUnusedPrivateMethodUnused Code RulesUseArrayListInsteadOfVectorOptimization RulesUseArraysAsListOptimization RulesUseAssertEqualsInsteadOfAssertTrueJUnit RulesUseAssertNullInsteadOfAssertTrueJUnit RulesUseAssertSameInsteadOfAssertTrueJUnit RulesUseCorrectExceptionLoggingJakarta Commons Logging RulesUseIndexOfCharString and StringBuffer RulesUseLocaleWithCaseConversionsDesign RulesUseNotifyAllInsteadOfNotifyDesign RulesUseProperClassLoaderJ2EE RulesUseSingletonDesign RulesUseStringBufferForStringAppendsOptimization RulesUseStringBufferLengthString and StringBuffer RulesUselessOperationOnImmutableBasic RulesUselessOverridingMethodBasic RulesUselessStringValueOfString and StringBuffer RulesVariableNamingConventionsNaming RulesWhileLoopsMustUseBracesBraces Rulesfalse \ No newline at end of file diff --git a/pmd-eclipse/.project b/pmd-eclipse/.project index d89f61b1b1..33dd8dd6bf 100644 --- a/pmd-eclipse/.project +++ b/pmd-eclipse/.project @@ -3,9 +3,13 @@ pmd-eclipse - pmd-eclipse-pmd + + org.eclipse.jdt.core.javabuilder + + + org.eclipse.pde.ManifestBuilder @@ -19,5 +23,6 @@ org.eclipse.pde.PluginNature + org.eclipse.jdt.core.javanature