
org.sonar.java.checks.CheckList Maven / Gradle / Ivy
/*
* SonarQube Java
* Copyright (C) 2012 SonarSource
* [email protected]
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
package org.sonar.java.checks;
import com.google.common.collect.ImmutableList;
import org.sonar.plugins.java.api.JavaCheck;
import java.util.List;
public final class CheckList {
public static final String REPOSITORY_KEY = "squid";
private CheckList() {
}
public static List getChecks() {
return (List) (List) getJavaChecks();
}
public static List> getJavaChecks() {
return ImmutableList.of(
TabCharacter_S00105_Check.class,
TooLongLine_S00103_Check.class,
MissingNewLineAtEndOfFile_S00113_Check.class,
// AST
ParsingErrorCheck.class,
MethodComplexityCheck.class,
ClassComplexityCheck.class,
UndocumentedApiCheck.class,
NoSonarCheck.class,
CommentedOutCodeLineCheck.class,
EmptyFileCheck.class,
EmptyBlock_S00108_Check.class,
TooManyLinesOfCodeInFile_S00104_Check.class,
TooManyParameters_S00107_Check.class,
RawException_S00112_Check.class,
BadMethodName_S00100_Check.class,
BadClassName_S00101_Check.class,
BadInterfaceName_S00114_Check.class,
BadConstantName_S00115_Check.class,
BadFieldName_S00116_Check.class,
BadLocalVariableName_S00117_Check.class,
BadAbstractClassName_S00118_Check.class,
BadTypeParameterName_S00119_Check.class,
BadPackageName_S00120_Check.class,
MissingCurlyBraces_S00121_Check.class,
TooManyStatementsPerLine_S00122_Check.class,
LeftCurlyBraceStartLineCheck.class,
RightCurlyBraceSameLineAsNextBlockCheck.class,
RightCurlyBraceStartLineCheck.class,
RightCurlyBraceDifferentLineAsNextBlockCheck.class,
LeftCurlyBraceEndLineCheck.class,
UselessParenthesesCheck.class,
ObjectFinalizeCheck.class,
ObjectFinalizeOverridenCheck.class,
ObjectFinalizeOverridenCallsSuperFinalizeCheck.class,
ClassVariableVisibilityCheck.class,
ForLoopCounterChangedCheck.class,
LabelsShouldNotBeUsedCheck.class,
SwitchLastCaseIsDefaultCheck.class,
EmptyStatementUsageCheck.class,
ModifiersOrderCheck.class,
AssignmentInSubExpressionCheck.class,
StringEqualityComparisonCheck.class,
TrailingCommentCheck.class,
UselessImportCheck.class,
LowerCaseLongSuffixCheck.class,
MissingDeprecatedCheck.class,
IndentationCheck.class,
HiddenFieldCheck.class,
DeprecatedTagPresenceCheck.class,
FixmeTagPresenceCheck.class,
TodoTagPresenceCheck.class,
UtilityClassWithPublicConstructorCheck.class,
StringLiteralInsideEqualsCheck.class,
ReturnOfBooleanExpressionsCheck.class,
BooleanLiteralCheck.class,
ExpressionComplexityCheck.class,
NestedTryCatchCheck.class,
SystemExitCalledCheck.class,
ReturnInFinallyCheck.class,
IfConditionAlwaysTrueOrFalseCheck.class,
CaseInsensitiveComparisonCheck.class,
MethodWithExcessiveReturnsCheck.class,
CollectionIsEmptyCheck.class,
SynchronizedClassUsageCheck.class,
NonStaticClassInitializerCheck.class,
ReturnEmptyArrayNotNullCheck.class,
ConstantsShouldBeStaticFinalCheck.class,
ThrowsFromFinallyCheck.class,
SystemOutOrErrUsageCheck.class,
ExceptionsShouldBeImmutableCheck.class,
CollapsibleIfCandidateCheck.class,
NestedIfStatementsCheck.class,
CatchOfThrowableOrErrorCheck.class,
ImplementsEnumerationCheck.class,
CloneMethodCallsSuperCloneCheck.class,
SwitchCaseTooBigCheck.class,
SwitchCaseWithoutBreakCheck.class,
CatchUsesExceptionWithContextCheck.class,
MethodTooBigCheck.class,
EnumAsIdentifierCheck.class,
AnonymousClassesTooBigCheck.class,
SunPackagesUsedCheck.class,
SeveralBreakOrContinuePerLoopCheck.class,
EmptyMethodsCheck.class,
MethodOnlyCallsSuperCheck.class,
ObjectFinalizeOverridenNotPublicCheck.class,
ObjectFinalizeOverloadedCheck.class,
ConcatenationWithStringValueOfCheck.class,
PrintStackTraceCalledWithoutArgumentCheck.class,
ArrayDesignatorAfterTypeCheck.class,
ErrorClassExtendedCheck.class,
InstanceofUsedOnExceptionCheck.class,
StringLiteralDuplicatedCheck.class,
ToStringUsingBoxingCheck.class,
GarbageCollectorCalledCheck.class,
ArrayDesignatorOnVariableCheck.class,
DefaultPackageCheck.class,
MethodNamedHashcodeOrEqualCheck.class,
NestedBlocksCheck.class,
InterfaceAsConstantContainerCheck.class,
MethodNamedEqualsCheck.class,
EqualsNotOverridenWithCompareToCheck.class,
EqualsOverridenWithHashCodeCheck.class,
SwitchWithLabelsCheck.class,
SwitchAtLeastThreeCasesCheck.class,
ClassCouplingCheck.class,
OctalValuesCheck.class,
NoPmdTagPresenceCheck.class,
NoCheckstyleTagPresenceCheck.class,
ParameterReassignedToCheck.class,
HardcodedIpCheck.class,
LoggersDeclarationCheck.class,
ObjectEqualsNullCheck.class,
MethodNameSameAsClassCheck.class,
CollectionImplementationReferencedCheck.class,
IncorrectOrderOfMembersCheck.class,
PublicStaticFieldShouldBeFinalCheck.class,
WildcardReturnParameterTypeCheck.class,
UnusedLocalVariableCheck.class,
UnusedPrivateFieldCheck.class,
StringBufferAndBuilderWithCharCheck.class,
FileHeaderCheck.class,
IncrementDecrementInSubExpressionCheck.class,
CollectionsEmptyConstantsCheck.class,
UselessExtendsCheck.class,
// Bytecode
CycleBetweenPackagesCheck.class,
DITCheck.class,
ArchitectureCheck.class,
CallToDeprecatedMethodCheck.class,
CallToFileDeleteOnExitMethodCheck.class,
UnusedProtectedMethodCheck.class,
UnusedPrivateMethodCheck.class,
RedundantThrowsDeclarationCheck.class,
ThrowsSeveralCheckedExceptionCheck.class,
ThreadRunCheck.class,
DuplicateConditionIfElseIfCheck.class,
ImmediatelyReturnedVariableCheck.class,
LambdaSingleExpressionCheck.class,
LambdaOptionalParenthesisCheck.class,
AnonymousClassShouldBeLambdaCheck.class,
AbstractClassNoFieldShouldBeInterfaceCheck.class,
SAMAnnotatedCheck.class,
CatchNPECheck.class,
FieldNameMatchingTypeNameCheck.class,
AbstractClassWithoutAbstractMethodCheck.class,
UnusedMethodParameterCheck.class,
FieldMatchMethodNameCheck.class,
MagicNumberCheck.class,
StringConcatenationInLoopCheck.class,
CompareObjectWithEqualsCheck.class,
ArrayEqualsCheck.class,
RepeatAnnotationCheck.class,
NPEThrowCheck.class,
NullDereferenceInConditionalCheck.class,
SelfAssignementCheck.class,
MismatchPackageDirectoryCheck.class,
ReplaceLambdaByMethodRefCheck.class,
StaticFinalArrayNotPrivateCheck.class,
FieldModifierCheck.class,
SerializableFieldInSerializableClassCheck.class,
PackageInfoCheck.class,
SwitchWithTooManyCasesCheck.class,
IdenticalCasesInSwitchCheck.class,
IdenticalOperandOnBinaryExpressionCheck.class,
FloatEqualityCheck.class,
SQLInjectionCheck.class,
TernaryOperatorCheck.class,
OverrideAnnotationCheck.class,
ForLoopIncrementAndUpdateCheck.class,
EmptyClassCheck.class,
InstanceOfAlwaysTrueCheck.class,
RedundantTypeCastCheck.class,
ExtendDeprecatedSymbolCheck.class,
CollectionCallingItselfCheck.class,
UnusedLabelCheck.class,
ThrowCheckedExceptionCheck.class,
CastArithmeticOperandCheck.class,
IgnoredReturnValueCheck.class,
ToStringReturningNullCheck.class,
TransactionalMethodVisibilityCheck.class,
CompareToResultTestCheck.class,
SecureCookieCheck.class,
UselessObjectCreationCheck.class,
CatchIllegalMonitorStateExceptionCheck.class,
ForLoopTerminationConditionCheck.class,
HttpRefererCheck.class,
HardCodedCredentialsCheck.class,
PseudoRandomCheck.class,
MainMethodThrowsExceptionCheck.class,
ResultSetIsLastCheck.class,
HasNextCallingNextCheck.class,
ThreadWaitCallCheck.class,
WaitOnConditionCheck.class,
DisallowedMethodCheck.class,
ForLoopIncrementSignCheck.class,
ForLoopFalseConditionCheck.class,
DeprecatedHashAlgorithmCheck.class,
NullCipherCheck.class,
GetRequestedSessionIdCheck.class,
ConcurrentLinkedQueueSizeCheck.class,
ServletInstanceFieldCheck.class,
BigDecimalDoubleConstructorCheck.class,
ReflectionOnNonRuntimeAnnotationCheck.class,
WaitInSynchronizeCheck.class,
ThreadSleepCheck.class,
WaitInWhileLoopCheck.class,
IteratorNextExceptionCheck.class,
AvoidDESCheck.class,
RSAUsesOAEPCheck.class,
ConstructorCallingOverridableCheck.class,
EqualsOnAtomicClassCheck.class,
LDAPInjectionCheck.class,
NonShortCircuitLogicCheck.class,
OSCommandInjectionCheck.class,
ArrayHashCodeAndToStringCheck.class,
DefaultEncodingUsageCheck.class,
CloneableImplementingCloneCheck.class,
PrintfCheck.class,
ModulusEqualityCheck.class,
RunFinalizersCheck.class,
LongBitsToDoubleOnIntCheck.class,
SynchronizationOnStringOrBoxedCheck.class,
SerializableSuperConstructorCheck.class,
NonSerializableWriteCheck.class,
InnerClassOfSerializableCheck.class,
InnerClassOfNonSerializableCheck.class,
SerialVersionUidCheck.class,
SerializableComparatorCheck.class,
TransientFieldInNonSerializableCheck.class,
CustomSerializationMethodCheck.class,
InterfaceOrSuperclassShadowingCheck.class,
RedundantModifierCheck.class,
MathOnFloatCheck.class,
StringToPrimitiveConversionCheck.class,
ClassNamedLikeExceptionCheck.class,
ProtectedMemberInFinalClassCheck.class,
SuppressWarningsCheck.class,
ImmediateReverseBoxingCheck.class,
CustomCryptographicAlgorithmCheck.class,
UnusedTypeParameterCheck.class,
InterfaceStaticMutableMemberCheck.class,
ShiftOnIntOrLongCheck.class,
CompareToReturnValueCheck.class,
FinalizeFieldsSetCheck.class,
NotifyCheck.class,
ScheduledThreadPoolExecutorZeroCheck.class,
ThreadOverridesRunCheck.class,
CollectionInappropriateCallsCheck.class,
BooleanMethodReturnCheck.class,
PrimitiveTypeBoxingWithToStringCheck.class,
SillyBitOperationCheck.class,
InvalidDateValuesCheck.class,
EqualsNotOverriddenInSubclassCheck.class,
ClassComparedByNameCheck.class,
ClassWithOnlyStaticMethodsInstantiationCheck.class,
SerializableObjectInSessionCheck.class,
StaticFieldInitializationCheck.class,
UselessIncrementCheck.class,
ObjectCreatedOnlyToCallGetClassCheck.class,
PrimitiveWrappersInTernaryOperatorCheck.class,
SynchronizedLockCheck.class,
SymmetricEqualsCheck.class,
CallSuperMethodFromInnerClassCheck.class,
SelectorMethodArgumentCheck.class,
ThreadAsRunnableArgumentCheck.class,
SynchronizedFieldAssignmentCheck.class,
NullPointerCheck.class,
StaticFieldUpateCheck.class,
IgnoredStreamReturnValueCheck.class,
DateUtilsTruncateCheck.class,
PreparedStatementAndResultSetCheck.class,
URLHashCodeAndEqualsCheck.class
);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy