forked from phoedos/pmd
843baf888d
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7551 51baf565-9d33-0410-a72c-fc3788e3496d
239 lines
11 KiB
XML
239 lines
11 KiB
XML
# select some default rules to help new users get started. The selected rules
|
|
# are those suggested by PMD best practices -- unused code, basic rules, some
|
|
# design rules, a few controversial rules, and imports rules.
|
|
options.pmd.rules.AbstractClassWithoutAbstractMethod=false
|
|
options.pmd.rules.AbstractClassWithoutAnyMethod=false
|
|
options.pmd.rules.AbstractNaming=false
|
|
options.pmd.rules.AccessorClassGeneration=false
|
|
options.pmd.rules.AddEmptyString=false
|
|
options.pmd.rules.AppendCharacterWithChar=true
|
|
options.pmd.rules.ArrayIsStoredDirectly=true
|
|
options.pmd.rules.AssignmentInOperand=false
|
|
options.pmd.rules.AssignmentToNonFinalStatic=false
|
|
options.pmd.rules.AtLeastOneConstructor=false
|
|
options.pmd.rules.AvoidAccessibilityAlteration=false
|
|
options.pmd.rules.AvoidArrayLoops=false
|
|
options.pmd.rules.AvoidAssertAsIdentifier=false
|
|
options.pmd.rules.AvoidCallingFinalize=false
|
|
options.pmd.rules.AvoidCatchingNPE=true
|
|
options.pmd.rules.AvoidCatchingThrowable=true
|
|
options.pmd.rules.AvoidConstantsInterface=false
|
|
options.pmd.rules.AvoidDecimalLiteralsInBigDecimalConstructor=true
|
|
options.pmd.rules.AvoidDeeplyNestedIfStmts=false
|
|
options.pmd.rules.AvoidDollarSigns=false
|
|
options.pmd.rules.AvoidDuplicateLiterals=true
|
|
options.pmd.rules.AvoidEnumAsIdentifier=false
|
|
options.pmd.rules.AvoidFieldNameMatchingMethodName=false
|
|
options.pmd.rules.AvoidFieldNameMatchingTypeName=false
|
|
options.pmd.rules.AvoidFinalLocalVariable=false
|
|
options.pmd.rules.AvoidInstanceofChecksInCatchClause=false
|
|
options.pmd.rules.AvoidInstantiatingObjectsInLoops=false
|
|
options.pmd.rules.AvoidMultipleUnaryOperators=true
|
|
options.pmd.rules.AvoidPrintStackTrace=false
|
|
options.pmd.rules.AvoidProtectedFieldInFinalClass=false
|
|
options.pmd.rules.AvoidReassigningParameters=false
|
|
options.pmd.rules.AvoidRethrowingException=true
|
|
options.pmd.rules.AvoidStringBufferField=true
|
|
options.pmd.rules.AvoidSynchronizedAtMethodLevel=false
|
|
options.pmd.rules.AvoidThreadGroup=true
|
|
options.pmd.rules.AvoidThrowingNewInstanceOfSameException=true
|
|
options.pmd.rules.AvoidThrowingNullPointerException=true
|
|
options.pmd.rules.AvoidThrowingRawExceptionTypes=true
|
|
options.pmd.rules.AvoidUsingHardCodedIP=true
|
|
options.pmd.rules.AvoidUsingNativeCode=false
|
|
options.pmd.rules.AvoidUsingOctalValues=true
|
|
options.pmd.rules.AvoidUsingShortType=false
|
|
options.pmd.rules.AvoidUsingVolatile=false
|
|
options.pmd.rules.BadComparison=false
|
|
options.pmd.rules.BeanMembersShouldSerialize=false
|
|
options.pmd.rules.BigIntegerInstantiation=true
|
|
options.pmd.rules.BooleanGetMethodName=false
|
|
options.pmd.rules.BooleanInstantiation=true
|
|
options.pmd.rules.BooleanInversion=false
|
|
options.pmd.rules.BrokenNullCheck=true
|
|
options.pmd.rules.ByteInstantiation=false
|
|
options.pmd.rules.CallSuperFirst=false
|
|
options.pmd.rules.CallSuperInConstructor=false
|
|
options.pmd.rules.CallSuperLast=false
|
|
options.pmd.rules.CheckResultSet=true
|
|
options.pmd.rules.ClassCastExceptionWithToArray=true
|
|
options.pmd.rules.ClassNamingConventions=false
|
|
options.pmd.rules.ClassWithOnlyPrivateConstructorsShouldBeFinal=false
|
|
options.pmd.rules.CloneMethodMustImplementCloneable=false
|
|
options.pmd.rules.CloneThrowsCloneNotSupportedException=false
|
|
options.pmd.rules.CloseResource=false
|
|
options.pmd.rules.CollapsibleIfStatements=true
|
|
options.pmd.rules.CompareObjectsWithEquals=false
|
|
options.pmd.rules.ConfusingTernary=false
|
|
options.pmd.rules.ConsecutiveLiteralAppends=true
|
|
options.pmd.rules.ConstructorCallsOverridableMethod=false
|
|
options.pmd.rules.CouplingBetweenObjects=false
|
|
options.pmd.rules.CyclomaticComplexity=false
|
|
options.pmd.rules.DataflowAnomalyAnalysis=false
|
|
options.pmd.rules.DefaultLabelNotLastInSwitchStmt=false
|
|
options.pmd.rules.DefaultPackage=false
|
|
options.pmd.rules.DoNotCallGarbageCollectionExplicitly=false
|
|
options.pmd.rules.DoNotCallSystemExit=false
|
|
options.pmd.rules.DoNotExtendJavaLangError=true
|
|
options.pmd.rules.DoNotThrowExceptionInFinally=true
|
|
options.pmd.rules.DoNotUseThreads=false
|
|
options.pmd.rules.DontImportJavaLang=true
|
|
options.pmd.rules.DontImportSun=false
|
|
options.pmd.rules.DoubleCheckedLocking=true
|
|
options.pmd.rules.DuplicateImports=true
|
|
options.pmd.rules.EmptyCatchBlock=true
|
|
options.pmd.rules.EmptyFinalizer=false
|
|
options.pmd.rules.EmptyFinallyBlock=true
|
|
options.pmd.rules.EmptyIfStmt=true
|
|
options.pmd.rules.EmptyInitializer=true
|
|
options.pmd.rules.EmptyMethodInAbstractClassShouldBeAbstract=false
|
|
options.pmd.rules.EmptyStatementNotInLoop=true
|
|
options.pmd.rules.EmptyStaticInitializer=true
|
|
options.pmd.rules.EmptySwitchStatements=true
|
|
options.pmd.rules.EmptySynchronizedBlock=true
|
|
options.pmd.rules.EmptyTryBlock=true
|
|
options.pmd.rules.EmptyWhileStmt=true
|
|
options.pmd.rules.EqualsNull=false
|
|
options.pmd.rules.ExceptionAsFlowControl=true
|
|
options.pmd.rules.ExcessiveClassLength=false
|
|
options.pmd.rules.ExcessiveImports=false
|
|
options.pmd.rules.ExcessiveMethodLength=false
|
|
options.pmd.rules.ExcessiveParameterList=false
|
|
options.pmd.rules.ExcessivePublicCount=false
|
|
options.pmd.rules.FinalFieldCouldBeStatic=false
|
|
options.pmd.rules.FinalizeDoesNotCallSuperFinalize=false
|
|
options.pmd.rules.FinalizeOnlyCallsSuperFinalize=false
|
|
options.pmd.rules.FinalizeOverloaded=false
|
|
options.pmd.rules.FinalizeShouldBeProtected=false
|
|
options.pmd.rules.ForLoopShouldBeWhileLoop=true
|
|
options.pmd.rules.ForLoopsMustUseBraces=false
|
|
options.pmd.rules.IdempotentOperations=false
|
|
options.pmd.rules.IfElseStmtsMustUseBraces=false
|
|
options.pmd.rules.IfStmtsMustUseBraces=false
|
|
options.pmd.rules.ImmutableField=false
|
|
options.pmd.rules.ImportFromSamePackage=true
|
|
options.pmd.rules.InefficientEmptyStringCheck=true
|
|
options.pmd.rules.InefficientStringBuffering=true
|
|
options.pmd.rules.InstantiationToGetClass=false
|
|
options.pmd.rules.InsufficientStringBufferDeclaration=true
|
|
options.pmd.rules.IntegerInstantiation=false
|
|
options.pmd.rules.JUnit4SuitesShouldUseSuiteAnnotation=false
|
|
options.pmd.rules.JUnit4TestShouldUseAfterAnnotation=false
|
|
options.pmd.rules.JUnit4TestShouldUseBeforeAnnotation=false
|
|
options.pmd.rules.JUnit4TestShouldUseTestAnnotation=false
|
|
options.pmd.rules.JUnitAssertionsShouldIncludeMessage=false
|
|
options.pmd.rules.JUnitSpelling=false
|
|
options.pmd.rules.JUnitStaticSuite=false
|
|
options.pmd.rules.JUnitTestsShouldIncludeAssert=false
|
|
options.pmd.rules.JUnitUseExpected=false
|
|
options.pmd.rules.JumbledIncrementer=true
|
|
options.pmd.rules.LocalHomeNamingConvention=false
|
|
options.pmd.rules.LocalInterfaceSessionNamingConvention=false
|
|
options.pmd.rules.LocalVariableCouldBeFinal=false
|
|
options.pmd.rules.LoggerIsNotStaticFinal=false
|
|
options.pmd.rules.LongInstantiation=false
|
|
options.pmd.rules.LongVariable=false
|
|
options.pmd.rules.LooseCoupling=false
|
|
options.pmd.rules.MDBAndSessionBeanNamingConvention=false
|
|
options.pmd.rules.MethodArgumentCouldBeFinal=false
|
|
options.pmd.rules.MethodNamingConventions=false
|
|
options.pmd.rules.MethodReturnsInternalArray=true
|
|
options.pmd.rules.MethodWithSameNameAsEnclosingClass=false
|
|
options.pmd.rules.MisleadingVariableName=false
|
|
options.pmd.rules.MisplacedNullCheck=true
|
|
options.pmd.rules.MissingBreakInSwitch=false
|
|
options.pmd.rules.MissingSerialVersionUID=false
|
|
options.pmd.rules.MissingStaticMethodInNonInstantiatableClass=false
|
|
options.pmd.rules.MoreThanOneLogger=false
|
|
options.pmd.rules.NPathComplexity=false
|
|
options.pmd.rules.NcssConstructorCount=false
|
|
options.pmd.rules.NcssMethodCount=false
|
|
options.pmd.rules.NcssTypeCount=false
|
|
options.pmd.rules.NoPackage=false
|
|
options.pmd.rules.NonCaseLabelInSwitchStatement=false
|
|
options.pmd.rules.NonStaticInitializer=false
|
|
options.pmd.rules.NonThreadSafeSingleton=false
|
|
options.pmd.rules.NullAssignment=false
|
|
options.pmd.rules.OnlyOneReturn=false
|
|
options.pmd.rules.OptimizableToArrayCall=false
|
|
options.pmd.rules.OverrideBothEqualsAndHashcode=true
|
|
options.pmd.rules.PackageCase=false
|
|
options.pmd.rules.PositionLiteralsFirstInComparisons=false
|
|
options.pmd.rules.PreserveStackTrace=false
|
|
options.pmd.rules.ProperCloneImplementation=false
|
|
options.pmd.rules.ProperLogger=false
|
|
options.pmd.rules.RemoteInterfaceNamingConvention=false
|
|
options.pmd.rules.RemoteSessionInterfaceNamingConvention=false
|
|
options.pmd.rules.ReplaceEnumerationWithIterator=false
|
|
options.pmd.rules.ReplaceHashtableWithMap=false
|
|
options.pmd.rules.ReplaceVectorWithList=false
|
|
options.pmd.rules.ReturnEmptyArrayRatherThanNull=false
|
|
options.pmd.rules.ReturnFromFinallyBlock=true
|
|
options.pmd.rules.ShortInstantiation=false
|
|
options.pmd.rules.ShortMethodName=false
|
|
options.pmd.rules.ShortVariable=false
|
|
options.pmd.rules.SignatureDeclareThrowsException=true
|
|
options.pmd.rules.SimpleDateFormatNeedsLocale=false
|
|
options.pmd.rules.SimplifyBooleanAssertion=false
|
|
options.pmd.rules.SimplifyBooleanExpressions=false
|
|
options.pmd.rules.SimplifyBooleanReturns=false
|
|
options.pmd.rules.SimplifyConditional=false
|
|
options.pmd.rules.SimplifyStartsWith=false
|
|
options.pmd.rules.SingularField=true
|
|
options.pmd.rules.StaticEJBFieldShouldBeFinal=false
|
|
options.pmd.rules.StringBufferInstantiationWithChar=true
|
|
options.pmd.rules.StringInstantiation=true
|
|
options.pmd.rules.StringToString=true
|
|
options.pmd.rules.SuspiciousConstantFieldName=false
|
|
options.pmd.rules.SuspiciousEqualsMethodName=false
|
|
options.pmd.rules.SuspiciousHashcodeMethodName=false
|
|
options.pmd.rules.SuspiciousOctalEscape=false
|
|
options.pmd.rules.SwitchDensity=false
|
|
options.pmd.rules.SwitchStmtsShouldHaveDefault=false
|
|
options.pmd.rules.SystemPrintln=false
|
|
options.pmd.rules.TestClassWithoutTestCases=false
|
|
options.pmd.rules.TooFewBranchesForASwitchStatement=false
|
|
options.pmd.rules.TooManyFields=false
|
|
options.pmd.rules.TooManyMethods=false
|
|
options.pmd.rules.TooManyStaticImports=true
|
|
options.pmd.rules.UncommentedEmptyConstructor=false
|
|
options.pmd.rules.UncommentedEmptyMethod=false
|
|
options.pmd.rules.UnconditionalIfStatement=true
|
|
options.pmd.rules.UnnecessaryBooleanAssertion=false
|
|
options.pmd.rules.UnnecessaryCaseChange=true
|
|
options.pmd.rules.UnnecessaryConstructor=false
|
|
options.pmd.rules.UnnecessaryConversionTemporary=true
|
|
options.pmd.rules.UnnecessaryFinalModifier=true
|
|
options.pmd.rules.UnnecessaryLocalBeforeReturn=false
|
|
options.pmd.rules.UnnecessaryParentheses=false
|
|
options.pmd.rules.UnnecessaryReturn=true
|
|
options.pmd.rules.UnnecessaryWrapperObjectCreation=false
|
|
options.pmd.rules.UnsynchronizedStaticDateFormatter=false
|
|
options.pmd.rules.UnusedFormalParameter=true
|
|
options.pmd.rules.UnusedImports=true
|
|
options.pmd.rules.UnusedLocalVariable=true
|
|
options.pmd.rules.UnusedModifier=false
|
|
options.pmd.rules.UnusedNullCheckInEquals=true
|
|
options.pmd.rules.UnusedPrivateField=true
|
|
options.pmd.rules.UnusedPrivateMethod=true
|
|
options.pmd.rules.UseArrayListInsteadOfVector=false
|
|
options.pmd.rules.UseArraysAsList=false
|
|
options.pmd.rules.UseAssertEqualsInsteadOfAssertTrue=false
|
|
options.pmd.rules.UseAssertNullInsteadOfAssertTrue=false
|
|
options.pmd.rules.UseAssertSameInsteadOfAssertTrue=false
|
|
options.pmd.rules.UseCollectionIsEmpty=false
|
|
options.pmd.rules.UseCorrectExceptionLogging=false
|
|
options.pmd.rules.UseEqualsToCompareStrings=true
|
|
options.pmd.rules.UseIndexOfChar=true
|
|
options.pmd.rules.UseLocaleWithCaseConversions=false
|
|
options.pmd.rules.UseNotifyAllInsteadOfNotify=false
|
|
options.pmd.rules.UseProperClassLoader=false
|
|
options.pmd.rules.UseSingleton=false
|
|
options.pmd.rules.UseStringBufferForStringAppends=false
|
|
options.pmd.rules.UseStringBufferLength=true
|
|
options.pmd.rules.UselessOperationOnImmutable=true
|
|
options.pmd.rules.UselessOverridingMethod=true
|
|
options.pmd.rules.UselessStringValueOf=true
|
|
options.pmd.rules.VariableNamingConventions=false
|
|
options.pmd.rules.WhileLoopsMustUseBraces=false
|