Skip to content

Functional Inspections ​

Inspection (v2 / v0)Meaning
UsesAnonymousVariable / HasAnonymousVariableis the wildcard pattern _ used?
UsesComposition / HasCompositionis the composition operator used?
UsesComprehension / HasComprehensionis the functional for/do/list comprehension used?
UsesGuards / HasGuardsthe function has a guarded body?
UsesLambda / HasLambdais there a lambda in the body?
UsesOtherwise / HasOtherwiseis the otherwise keyword/guard used?
UsesPatternMatching / HasPatternMatchingis pattern matching used?
UsesYield / HasYieldis an expression yielded within a comprehension?

Code Smells ​

InspectionMeaning
HasRedundantGuardsthe function has redundant or unnecessary guards?
HasRedundantLambdathe function has a redundant lambda expression?
HasRedundantParameterthe function has an unused or redundant parameter?
ShouldUseOtherwisea boolean guard should use otherwise instead of True?