Browse Source

Add findbugs and pmd settings for SQE

Change-Id: Ie466d0ec49e35e1c039044ac48c315568151cece
Reviewed-on: http://gerrit.dmdirc.com/1375
Reviewed-by: Chris Smith <chris@dmdirc.com>
Automatic-Compile: Gregory Holmes <greg@dmdirc.com>
tags/0.6.4rc1
Greg Holmes 14 years ago
parent
commit
2b1808dcd2
2 changed files with 250 additions and 0 deletions
  1. 244
    0
      nbproject/findbugs.settings
  2. 6
    0
      nbproject/pmd.settings

+ 244
- 0
nbproject/findbugs.settings View File

@@ -0,0 +1,244 @@
1
+#FindBugs User Preferences
2
+#Wed Jun 02 00:55:40 BST 2010
3
+detectorAbnormalFinallyBlockReturn=AbnormalFinallyBlockReturn|false
4
+detectorAbstractClassEmptyMethods=AbstractClassEmptyMethods|false
5
+detectorAbstractOverriddenMethod=AbstractOverriddenMethod|false
6
+detectorAppendingToAnObjectOutputStream=AppendingToAnObjectOutputStream|true
7
+detectorArrayBasedCollections=ArrayBasedCollections|false
8
+detectorArrayWrappedCallByReference=ArrayWrappedCallByReference|false
9
+detectorBCPMethodReturnCheck=BCPMethodReturnCheck|false
10
+detectorBadAppletConstructor=BadAppletConstructor|false
11
+detectorBadResultSetAccess=BadResultSetAccess|true
12
+detectorBadSyntaxForRegularExpression=BadSyntaxForRegularExpression|true
13
+detectorBadUseOfReturnValue=BadUseOfReturnValue|true
14
+detectorBadlyOverriddenAdapter=BadlyOverriddenAdapter|true
15
+detectorBloatedAssignmentScope=BloatedAssignmentScope|false
16
+detectorBloatedSynchronizedBlock=BloatedSynchronizedBlock|false
17
+detectorBogusExceptionDeclaration=BogusExceptionDeclaration|false
18
+detectorBooleanReturnNull=BooleanReturnNull|true
19
+detectorBuildInterproceduralCallGraph=BuildInterproceduralCallGraph|false
20
+detectorBuildObligationPolicyDatabase=BuildObligationPolicyDatabase|true
21
+detectorCallToUnsupportedMethod=CallToUnsupportedMethod|false
22
+detectorCalledMethods=CalledMethods|true
23
+detectorCheckCalls=CheckCalls|false
24
+detectorCheckExpectedWarnings=CheckExpectedWarnings|false
25
+detectorCheckImmutableAnnotation=CheckImmutableAnnotation|true
26
+detectorCheckTypeQualifiers=CheckTypeQualifiers|true
27
+detectorClassEnvy=ClassEnvy|false
28
+detectorCloneIdiom=CloneIdiom|true
29
+detectorCollectStatistics=CollectStatistics|false
30
+detectorComparatorIdiom=ComparatorIdiom|true
31
+detectorConfusedInheritance=ConfusedInheritance|true
32
+detectorConfusingAutoboxedOverloading=ConfusingAutoboxedOverloading|false
33
+detectorConfusingFunctionSemantics=ConfusingFunctionSemantics|false
34
+detectorConfusionBetweenInheritedAndOuterMethod=ConfusionBetweenInheritedAndOuterMethod|true
35
+detectorConstantListIndex=ConstantListIndex|false
36
+detectorCopiedOverriddenMethod=CopiedOverriddenMethod|false
37
+detectorCrossSiteScripting=CrossSiteScripting|true
38
+detectorCustomBuiltXML=CustomBuiltXML|false
39
+detectorCyclomaticComplexity=CyclomaticComplexity|false
40
+detectorDateComparison=DateComparison|false
41
+detectorDeclaredRuntimeException=DeclaredRuntimeException|false
42
+detectorDeletingWhileIterating=DeletingWhileIterating|false
43
+detectorDeprecatedTypesafeEnumPattern=DeprecatedTypesafeEnumPattern|false
44
+detectorDoInsideDoPrivileged=DoInsideDoPrivileged|true
45
+detectorDontCatchIllegalMonitorStateException=DontCatchIllegalMonitorStateException|true
46
+detectorDontIgnoreResultOfPutIfAbsent=DontIgnoreResultOfPutIfAbsent|true
47
+detectorDontUseEnum=DontUseEnum|true
48
+detectorDroppedException=DroppedException|true
49
+detectorDubiousListCollection=DubiousListCollection|false
50
+detectorDubiousSetOfCollections=DubiousSetOfCollections|false
51
+detectorDumbMethodInvocations=DumbMethodInvocations|true
52
+detectorDumbMethods=DumbMethods|true
53
+detectorDuplicateBranches=DuplicateBranches|true
54
+detectorEmptyZipFileEntry=EmptyZipFileEntry|true
55
+detectorEqStringTest=EqStringTest|false
56
+detectorEqualsOperandShouldHaveClassCompatibleWithThis=EqualsOperandShouldHaveClassCompatibleWithThis|true
57
+detectorExceptionSoftening=ExceptionSoftening|false
58
+detectorFieldCouldBeLocal=FieldCouldBeLocal|false
59
+detectorFieldItemSummary=FieldItemSummary|true
60
+detectorFinalParameters=FinalParameters|false
61
+detectorFinalizerNullsFields=FinalizerNullsFields|true
62
+detectorFindBadCast=FindBadCast|false
63
+detectorFindBadCast2=FindBadCast2|true
64
+detectorFindBadEqualsImplementation=FindBadEqualsImplementation|false
65
+detectorFindBadForLoop=FindBadForLoop|true
66
+detectorFindBugsSummaryStats=FindBugsSummaryStats|true
67
+detectorFindCircularDependencies=FindCircularDependencies|false
68
+detectorFindDeadLocalStores=FindDeadLocalStores|true
69
+detectorFindDoubleCheck=FindDoubleCheck|true
70
+detectorFindEmptySynchronizedBlock=FindEmptySynchronizedBlock|true
71
+detectorFindFieldSelfAssignment=FindFieldSelfAssignment|true
72
+detectorFindFinalizeInvocations=FindFinalizeInvocations|true
73
+detectorFindFloatEquality=FindFloatEquality|true
74
+detectorFindFloatMath=FindFloatMath|false
75
+detectorFindHEmismatch=FindHEmismatch|true
76
+detectorFindInconsistentSync2=FindInconsistentSync2|true
77
+detectorFindJSR166LockMonitorenter=FindJSR166LockMonitorenter|true
78
+detectorFindLocalSelfAssignment2=FindLocalSelfAssignment2|true
79
+detectorFindMaskedFields=FindMaskedFields|true
80
+detectorFindMismatchedWaitOrNotify=FindMismatchedWaitOrNotify|true
81
+detectorFindNakedNotify=FindNakedNotify|true
82
+detectorFindNonSerializableStoreIntoSession=FindNonSerializableStoreIntoSession|true
83
+detectorFindNonSerializableValuePassedToWriteObject=FindNonSerializableValuePassedToWriteObject|true
84
+detectorFindNonShortCircuit=FindNonShortCircuit|true
85
+detectorFindNullDeref=FindNullDeref|true
86
+detectorFindNullDerefsInvolvingNonShortCircuitEvaluation=FindNullDerefsInvolvingNonShortCircuitEvaluation|true
87
+detectorFindOpenStream=FindOpenStream|true
88
+detectorFindPuzzlers=FindPuzzlers|true
89
+detectorFindRefComparison=FindRefComparison|true
90
+detectorFindReturnRef=FindReturnRef|true
91
+detectorFindRunInvocations=FindRunInvocations|true
92
+detectorFindSelfComparison=FindSelfComparison|true
93
+detectorFindSelfComparison2=FindSelfComparison2|true
94
+detectorFindSleepWithLockHeld=FindSleepWithLockHeld|true
95
+detectorFindSpinLoop=FindSpinLoop|true
96
+detectorFindSqlInjection=FindSqlInjection|true
97
+detectorFindTwoLockWait=FindTwoLockWait|true
98
+detectorFindUncalledPrivateMethods=FindUncalledPrivateMethods|true
99
+detectorFindUnconditionalWait=FindUnconditionalWait|true
100
+detectorFindUninitializedGet=FindUninitializedGet|true
101
+detectorFindUnrelatedTypesInGenericContainer=FindUnrelatedTypesInGenericContainer|true
102
+detectorFindUnreleasedLock=FindUnreleasedLock|true
103
+detectorFindUnsatisfiedObligation=FindUnsatisfiedObligation|true
104
+detectorFindUnsyncGet=FindUnsyncGet|true
105
+detectorFindUselessControlFlow=FindUselessControlFlow|true
106
+detectorFloatingPointLoops=FloatingPointLoops|false
107
+detectorFormatStringChecker=FormatStringChecker|true
108
+detectorHugeSharedStringConstants=HugeSharedStringConstants|true
109
+detectorIDivResultCastToDouble=IDivResultCastToDouble|true
110
+detectorInappropriateToStringUse=InappropriateToStringUse|false
111
+detectorIncompatMask=IncompatMask|true
112
+detectorInconsistentAnnotations=InconsistentAnnotations|true
113
+detectorIncorrectInternalClassUse=IncorrectInternalClassUse|false
114
+detectorInefficientMemberAccess=InefficientMemberAccess|false
115
+detectorInefficientStringBuffering=InefficientStringBuffering|false
116
+detectorInefficientToArray=InefficientToArray|true
117
+detectorInfiniteLoop=InfiniteLoop|true
118
+detectorInfiniteRecursiveLoop=InfiniteRecursiveLoop|true
119
+detectorInfiniteRecursiveLoop2=InfiniteRecursiveLoop2|false
120
+detectorInheritanceTypeChecking=InheritanceTypeChecking|false
121
+detectorInheritanceUnsafeGetResource=InheritanceUnsafeGetResource|true
122
+detectorInitializationChain=InitializationChain|true
123
+detectorInstantiateStaticClass=InstantiateStaticClass|true
124
+detectorInvalidJUnitTest=InvalidJUnitTest|true
125
+detectorIteratorIdioms=IteratorIdioms|true
126
+detectorJDBCVendorReliance=JDBCVendorReliance|false
127
+detectorJUnitAssertionOddities=JUnitAssertionOddities|false
128
+detectorLazyInit=LazyInit|true
129
+detectorListIndexedIterating=ListIndexedIterating|false
130
+detectorLiteralStringComparison=LiteralStringComparison|false
131
+detectorLoadOfKnownNullValue=LoadOfKnownNullValue|true
132
+detectorLocalSynchronizedCollection=LocalSynchronizedCollection|false
133
+detectorLockedFields=LockedFields|false
134
+detectorLoggerOddities=LoggerOddities|false
135
+detectorLostExceptionStackTrace=LostExceptionStackTrace|false
136
+detectorLostLoggerDueToWeakReference=LostLoggerDueToWeakReference|true
137
+detectorManualArrayCopy=ManualArrayCopy|false
138
+detectorMethodReturnCheck=MethodReturnCheck|true
139
+detectorMethodReturnsConstant=MethodReturnsConstant|false
140
+detectorMethods=Methods|true
141
+detectorMisleadingOverloadModel=MisleadingOverloadModel|false
142
+detectorMultithreadedInstanceAccess=MultithreadedInstanceAccess|true
143
+detectorMutableLock=MutableLock|true
144
+detectorMutableStaticFields=MutableStaticFields|true
145
+detectorNaming=Naming|true
146
+detectorNeedlessAutoboxing=NeedlessAutoboxing|false
147
+detectorNeedlessCustomSerialization=NeedlessCustomSerialization|false
148
+detectorNeedlessInstanceRetrieval=NeedlessInstanceRetrieval|false
149
+detectorNeedlessMemberCollectionSynchronization=NeedlessMemberCollectionSynchronization|false
150
+detectorNoise=Noise|false
151
+detectorNoiseNullDeref=NoiseNullDeref|false
152
+detectorNonCollectionMethodUse=NonCollectionMethodUse|false
153
+detectorNonOwnedSynchronization=NonOwnedSynchronization|false
154
+detectorNonRecycleableTaglibs=NonRecycleableTaglibs|false
155
+detectorNoteAnnotationRetention=NoteAnnotationRetention|true
156
+detectorNoteCheckReturnValue=NoteCheckReturnValue|true
157
+detectorNoteCheckReturnValueAnnotations=NoteCheckReturnValueAnnotations|true
158
+detectorNoteDirectlyRelevantTypeQualifiers=NoteDirectlyRelevantTypeQualifiers|true
159
+detectorNoteJCIPAnnotation=NoteJCIPAnnotation|true
160
+detectorNoteNonNullAnnotations=NoteNonNullAnnotations|true
161
+detectorNoteNonnullReturnValues=NoteNonnullReturnValues|true
162
+detectorNoteSuppressedWarnings=NoteSuppressedWarnings|true
163
+detectorNoteUnconditionalParamDerefs=NoteUnconditionalParamDerefs|true
164
+detectorNumberConstructor=NumberConstructor|true
165
+detectorOrphanedDOMNode=OrphanedDOMNode|false
166
+detectorOverlyConcreteParameter=OverlyConcreteParameter|false
167
+detectorOverridingEqualsNotSymmetrical=OverridingEqualsNotSymmetrical|true
168
+detectorParallelLists=ParallelLists|false
169
+detectorPartiallyConstructedObjectAccess=PartiallyConstructedObjectAccess|false
170
+detectorPossibleIncompleteSerialization=PossibleIncompleteSerialization|false
171
+detectorPossibleMemoryBloat=PossibleMemoryBloat|false
172
+detectorPossiblyRedundantMethodCalls=PossiblyRedundantMethodCalls|false
173
+detectorPreferZeroLengthArrays=PreferZeroLengthArrays|true
174
+detectorPublicSemaphores=PublicSemaphores|false
175
+detectorQuestionableBooleanAssignment=QuestionableBooleanAssignment|true
176
+detectorReadOfInstanceFieldInMethodInvokedByConstructorInSuperclass=ReadOfInstanceFieldInMethodInvokedByConstructorInSuperclass|true
177
+detectorReadReturnShouldBeChecked=ReadReturnShouldBeChecked|true
178
+detectorRedundantInterfaces=RedundantInterfaces|true
179
+detectorReflectiveClasses=ReflectiveClasses|true
180
+detectorRepeatedConditionals=RepeatedConditionals|true
181
+detectorResolveAllReferences=ResolveAllReferences|false
182
+detectorRuntimeExceptionCapture=RuntimeExceptionCapture|true
183
+detectorSQLInLoop=SQLInLoop|false
184
+detectorSection508Compliance=Section508Compliance|false
185
+detectorSerializableIdiom=SerializableIdiom|true
186
+detectorSillynessPotPourri=SillynessPotPourri|false
187
+detectorSloppyClassReflection=SloppyClassReflection|false
188
+detectorSluggishGui=SluggishGui|false
189
+detectorSpoiledChildInterfaceImplementor=SpoiledChildInterfaceImplementor|false
190
+detectorSpuriousThreadStates=SpuriousThreadStates|false
191
+detectorStartInConstructor=StartInConstructor|true
192
+detectorStaticArrayCreatedInMethod=StaticArrayCreatedInMethod|false
193
+detectorStaticCalendarDetector=StaticCalendarDetector|true
194
+detectorStaticMethodInstanceInvocation=StaticMethodInstanceInvocation|false
195
+detectorStringConcatenation=StringConcatenation|true
196
+detectorStutteredMethodArguments=StutteredMethodArguments|false
197
+detectorSuperfluousInstanceOf=SuperfluousInstanceOf|true
198
+detectorSuspiciousCloneAlgorithm=SuspiciousCloneAlgorithm|false
199
+detectorSuspiciousClusteredSessionSupport=SuspiciousClusteredSessionSupport|false
200
+detectorSuspiciousComparatorReturnValues=SuspiciousComparatorReturnValues|false
201
+detectorSuspiciousJDKVersionUse=SuspiciousJDKVersionUse|false
202
+detectorSuspiciousThreadInterrupted=SuspiciousThreadInterrupted|true
203
+detectorSuspiciousUninitializedArray=SuspiciousUninitializedArray|false
204
+detectorSuspiciousWaitOnConcurrentObject=SuspiciousWaitOnConcurrentObject|false
205
+detectorSwitchFallthrough=SwitchFallthrough|true
206
+detectorSyncCollectionIterators=SyncCollectionIterators|false
207
+detectorSynchronizationOnSharedBuiltinConstant=SynchronizationOnSharedBuiltinConstant|true
208
+detectorSynchronizeAndNullCheckField=SynchronizeAndNullCheckField|true
209
+detectorSynchronizeOnClassLiteralNotGetClass=SynchronizeOnClassLiteralNotGetClass|true
210
+detectorSynchronizingOnContentsOfFieldToProtectField=SynchronizingOnContentsOfFieldToProtectField|true
211
+detectorTailRecursion=TailRecursion|false
212
+detectorTestASM=TestASM|false
213
+detectorTestDataflowAnalysis=TestDataflowAnalysis|false
214
+detectorTestingGround=TestingGround|false
215
+detectorTrainFieldStoreTypes=TrainFieldStoreTypes|true
216
+detectorTrainNonNullAnnotations=TrainNonNullAnnotations|true
217
+detectorTrainUnconditionalDerefParams=TrainUnconditionalDerefParams|true
218
+detectorTristateBooleanPattern=TristateBooleanPattern|false
219
+detectorURLProblems=URLProblems|true
220
+detectorUncallableMethodOfAnonymousClass=UncallableMethodOfAnonymousClass|true
221
+detectorUnnecessaryMath=UnnecessaryMath|true
222
+detectorUnnecessaryNewNullCheck=UnnecessaryNewNullCheck|false
223
+detectorUnnecessaryStoreBeforeReturn=UnnecessaryStoreBeforeReturn|false
224
+detectorUnreadFields=UnreadFields|true
225
+detectorUnrelatedCollectionContents=UnrelatedCollectionContents|false
226
+detectorUnrelatedReturnValues=UnrelatedReturnValues|false
227
+detectorUseAddAll=UseAddAll|false
228
+detectorUseCharacterParameterizedMethod=UseCharacterParameterizedMethod|false
229
+detectorUseEnumCollections=UseEnumCollections|false
230
+detectorUseObjectEquals=UseObjectEquals|false
231
+detectorUseSplit=UseSplit|false
232
+detectorUseToArray=UseToArray|false
233
+detectorUselessSubclassMethod=UselessSubclassMethod|false
234
+detectorVarArgsProblems=VarArgsProblems|true
235
+detectorVolatileUsage=VolatileUsage|true
236
+detectorWaitInLoop=WaitInLoop|true
237
+detectorWeakExceptionMessaging=WeakExceptionMessaging|false
238
+detectorWrongMapIterator=WrongMapIterator|true
239
+detectorXMLFactoryBypass=XMLFactoryBypass|true
240
+detector_threshold=2
241
+effort=default
242
+filter_settings=Medium|BAD_PRACTICE,CORRECTNESS,EXPERIMENTAL,I18N,MALICIOUS_CODE,MT_CORRECTNESS,PERFORMANCE,SECURITY,STYLE|false
243
+filter_settings_neg=NOISE|
244
+run_at_full_build=true

+ 6
- 0
nbproject/pmd.settings View File

@@ -0,0 +1,6 @@
1
+ShortVariable
2
+AvoidInstantiatingObjectsInLoops
3
+BeanMembersShouldSerialize
4
+DoNotUseThreads
5
+AvoidUsingVolitile
6
+OnlyOneReturn

Loading…
Cancel
Save