org.hammurapi.inspectors |
|
Java Source File Name | Type | Comment |
AbstractMethodFromConstructorRule.java | Class | |
AbstractMethodInConstructorRule.java | Class | |
AccessToStaticMembersRule.java | Class | |
AlphabeticalImportRule.java | Class | |
AnnotationTest.java | Class | |
ArrayDeclarationRule.java | Class | |
AssignmentInsideConditionalRule.java | Class | Assignment statements shouldn't be placed inside conditions of if statements. |
BooleanEqualityRule.java | Class | ER-046
Avoid equality operations on 'true' and 'false' boolean literals. |
BraceRule.java | Class | Complex statements like do, while, for, if, else need a brace enclosed block. |
CastingPrimitiveTypesRule.java | Class | |
CatchTooGeneralExceptionTypeRule.java | Class | ER-036
Catching too general exception type. |
CloseJdbcResourcesRule.java | Class | |
CloseStreamsInFinallyBlockRule.java | Class | |
CodeTooLongRule.java | Class | |
CommonPrefixRule.java | Class | |
ConditionalExpressionRule.java | Class | |
ConstructorsInCloneRule.java | Class | |
ConstructorWithoutSuperRule.java | Class | |
ContinueRule.java | Class | |
CyclomaticComplexityRule.java | Class | Cyclomatic complexity exceeds specified maximum. |
DeadlockRule.java | Class | |
DeclareStaticFieldsFinalInEjbRule.java | Class | |
DefineFinalizeInEjbRule.java | Class | |
DefineLoggerForClassRule.java | Class | |
DirectoryStructureRule.java | Class | Files should reside in the directory structure according to the package structure. |
DoNotUseNewForStringsRule.java | Class | |
DoNotUseTypeRule.java | Class | ER-117
Copyrights information should be present in each file. |
DotChainInspector.java | Class | |
DuplicateImportRule.java | Class | |
EjbClassModifiersRule.java | Class | |
EjbCreateModifiersRule.java | Class | |
EjbPostCreateModifiersRule.java | Class | |
EmptyBodiesRule.java | Class | ER-097
Avoid "for", "do", "while", "if" and "if ... |
EmptyCatchBlockRule.java | Class | |
EmptyCompilationUnitRule.java | Class | |
EmptyFinallyBlockRule.java | Class | Avoid empty finally block. |
EmptyStatements.java | Class | |
EnsureEjbCreateRule.java | Class | |
EnsureEjbPostCreateRule.java | Class | |
EnsureVoidReturnTypeForEjbPostCreateRule.java | Class | |
EnsureVoidReturnTypeForSessionBeanEjbCreateRule.java | Class | |
FileHeaderRule.java | Class | ER-100
Copyrights information should be present in each file. |
FilesPerPackage.java | Class | ER-059
Packages should be neither too lean nor too fat. |
FinalParametersRule.java | Class | For comprehensibility, formal parameters should be final. |
FinderModifiersRule.java | Class | |
ForConditionRule.java | Class | For statement requires conditional clause (2nd argument). |
ForInitRule.java | Class | For statement requires initialization clause (1st argument). |
ForIteratorRule.java | Class | For statement requires update clause (3rd argument). |
ForLoopControlVariablesRule.java | Class | |
FormattingRule.java | Class | |
HardcodedCharacterLiteralsRule.java | Class | ER-010
Avoid hardwired character literals. |
HardcodedLiteralsRule.java | Class | ER-010
Avoid hardwired character literals. |
HardcodedNumericLiteralsRule.java | Class | |
HardcodedStringLiteralsRule.java | Class | |
HeterogenousCollection.java | Class | |
HidingInheritedFieldsRule.java | Class | |
IndentationRule.java | Class |
Hammurapi inspector for checking the indentation of the source code.
The parameter standard-indentation-level specifies the default
indentation for blocks in curly braces. |
InnerClassNestingRule.java | Class | |
InnerClassVisibilityRule.java | Class | |
InterfaceMethodModifiersRule.java | Class | |
InvokeFinalizeRule.java | Class | |
JavaDocInspector.java | Class | |
JavaLangImportRule.java | Class | |
LineLengthRule.java | Class | |
LoadNativeLibrariesInEjbRule.java | Class | |
LogExceptionsRule.java | Class | |
LogicalNestingRule.java | Class | |
ManageThreadsFromEjbRule.java | Class | |
MaxLinesInFileRule.java | Class | |
MethodNameSameAsConstructorRule.java | Class | |
MinimalInstanceVariableLengthRule.java | Class | ER-201
Discourage usage of instance variables like a, j by enforcing minimal variable name length. |
MinimizeScopeRule.java | Class | ER-132
Variables shall be declared at the place of first use or right before it. |
MissingPackageDeclarationRule.java | Class | Missing package declaration. |
ModifiersOrderRule.java | Class | |
NamingStandardRule.java | Class | Classes, methods and variables should be named according to Sun's naming convention. |
NoPublicFieldsRule.java | Class | Checks if the class has only static final, or final public fields. |
NoStarImportsRule.java | Class | |
NotifyRule.java | Class | |
OneStatementPerLineRule.java | Class | |
OneTypePerFileRule.java | Class | One class per file. |
OperationParameterNamesRule.java | Class | |
OperationWithRuntimeExceptionInThrowsRule.java | Class | |
OperationWithTooGeneralExceptonTypeInThrowsRule.java | Class | |
ParameterAssignmentInspector.java | Class | |
PrintStackTraceRule.java | Class | ER-069
Do not use printStackTrace(), use logger(<Message>, <exception>) instead. |
PrioritizingInspector.java | Class | ER-117
Copyrights information should be present in each file. |
PublicStaticArrayFieldsRule.java | Class | |
RedundantParenthesisRule.java | Class | |
ResourceHandlingRule.java | Class | The rule checks if allocated resource is properly diposed. |
ResultSetMetaData.java | Class | ER-070
ResultSetMetaData is banned. |
ReturnFromFinallyRule.java | Class | Avoid return in finally block. |
ReturnThisFromEjbRule.java | Class | ER-084
Avoid returning "this" from public methods. |
RootPackageRule.java | Class | Packages should begin with the root (project/organization) package. |
SimpleAnnotationSample.java | Class | |
SqlCreateStatementWithinLoop.java | Class | |
SqlCreateStatementWithoutCloseRule.java | Class | |
SqlStatementAsInstanceVariableRule.java | Class | |
StatelessSingleton.java | Class | |
StatelessStrutsAction.java | Class | |
StaticCollectionsRule.java | Class | |
StringArraysRule.java | Class | |
StringLiteralEqualsRule.java | Class | |
StringTokenizerDeprecatedInspector.java | Class | |
SuperCloneRule.java | Class | |
SwitchCaseBreakRule.java | Class | |
SwitchDefaultRule.java | Class | |
SynchronizationInServletsRule.java | Class | |
SynchronizedRule.java | Class | |
SynchronizedRunnableRunMethodRule.java | Class | |
SystemGcMisuseRule.java | Class | |
SystemPrintlnLoggingRule.java | Class | |
TestInspector.java | Class | |
TextLabelsInSwitchStatementRule.java | Class | |
ThisReferenceAsArgumentInEjbRule.java | Class | |
ThreadGroupRule.java | Class | |
ThreadSubclassesRule.java | Class | |
ThreadYieldRule.java | Class | |
ThrowsClauseRule.java | Class | |
ThrowTooGeneralExceptionTypeRule.java | Class | |
TooManyParametersRule.java | Class | Too many parameters. |
TooManyThrowsRule.java | Class | |
TooMuchLoggingRule.java | Class | ER-068
Amount of logging code is comparable to the amount of business code. |
UnnecessaryConstructorRule.java | Class | author: Janos Czako author: Unnecessary constructor detects when a constructor is not author: necessary; i.e., when there's only one constructor, it's public, has an author: empty body, and takes no arguments. |
UnusedVariablesRule.java | Class | ER-131
Unused private variables. |
UpperLRule.java | Class | At the end of the long constants uppercase "L" should be used. |
UseBigDecimalInsteadOfFloatAndDoubleRule.java | Class | |
UseCollectionsInsteadOfArraysRule.java | Class | |
UseEqualsInsteadOfCompareToInspector.java | Class | |
VariableNameClashesWithTypeNameRule.java | Class | |
VariablesAndMethodsNameClashingRule.java | Class | |
VariablesRule.java | Class | ER-023
Variables should be declared in individual statements. |
VendorNameViolation.java | Class | ER-209 as a variant of ER-100
Copyrights information should be present in each file. |
WaitAndNotifyInsteadOfPollingRule.java | Class | |
WaitAndNotifyRule.java | Class | ER-109
wait(), notify() and notifyAll() shall be called from "synchronized" method or block. |
WaitInLoopRule.java | Class | |