Skip to content

Generic Inspections ​

Inspection (v2 / v0)Meaning
Assignsthe given variable or attribute assigned?
Callsis the given method, function or procedure called?
Declares / HasBindingis the given element declared?
DeclaresComputationdoes the given computation (method, predicate, function, etc.) exist?
DeclaresComputationWithArity / HasAritydoes the given computation have the target arity?
DeclaresEntryPointis there a program entry point, like a main procedure?
DeclaresFunctionis a given function declared?
DeclaresRecursivelyis a given computation declared using recursion?
DeclaresTypeAlias / HasTypeDeclarationis a given type synonym declared?
DeclaresTypeSignature / HasTypeSignatureis a given computation type signature declared?
DeclaresVariable / HasVariableis a given local or global variable declared?
HasBindingchecks if a given binding/declaration exists in scope
HasDirectRecursiondoes the computation call itself directly?
Raisesis the given exception type raised?
Rescuesis the given exception type rescued?
SubordinatesDeclarationsToare all the declarations in the code called from the given declaration?
SubordinatesDeclarationsToEntryPointare all the declarations in the code called from an entry point?
TypesAsis the given type used to type a variable?
TypesParameterAsis a parameter typed as a given type?
TypesReturnAsis the given type used to type a return?
Uses / HasUsageis there any reference to the given element?
UsesArithmetic / UsesMathare arithmetic operators used?
UsesConditional / UsesIf / HasConditional / HasIfare any conditional control structures used?
UsesExceptionHandlingis any exception handled?
UsesExceptionsis any exception raised or handled?
UsesLogicare boolean operators used?
UsesPrintis a print statement used?
UsesTypeis the given type used in a signature?

Code Smells ​

InspectionMeaning
DiscardsExceptionsare exceptions discarded within an empty catch block?
DoesConsolePrintis there any console-print-statement like System.out.println, puts or console.log?
HasDeclarationTyposis an identifier not declared but a very similar one declared instead?
HasEmptyIfBrancheshas the given code an empty if branch?
HasLongParameterListdoes a given method/function/predicate take too many parameters?
HasMisspelledIdentifiersan identifier is not a domain language dictionary's word and not part of its jargon
HasRedundantBooleanComparisonis there a redundant boolean comparison (e.g. x == true)?
HasRedundantIfcan a combination of ifs, assignments and returns be replaced by a boolean expression?
HasRedundantLocalVariableReturndoes a callable declare and return a variable just after declaring it?
HasTooShortIdentifierswhether an identifier is too short and not part of domain language's jargon
HasUsageTyposis an identifier not called but a very similar one called instead?
HasWrongCaseIdentifiers / UsesWrongCaseBindingswhether an identifier does not match the domain language's case style
IsLongCodehas the code long sequences of statements?
ShouldInvertIfConditionhas the given code an if with an empty then but a non-empty else?