stan-0.1.2.1: Haskell STatic ANalyser
Copyright(c) 2020 Kowainik
LicenseMPL-2.0
MaintainerKowainik <xrom.xkov@gmail.com>
Safe HaskellSafe-Inferred
LanguageHaskell2010

Stan.Inspection.AntiPattern

Description

Contains all Inspections for known anti-patterns.

The anti-pattern inspections are in ranges:

  • STAN-0201 .. STAN-0300
Synopsis

Anti-pattern inspections

Anti-pattern [0 .. length xs]

stan0201 :: Inspection Source #

Inspection[0 .. length xs] STAN-0201.

Anti-pattern foldl

stan0202 :: Inspection Source #

Inspectionfoldl STAN-0202.

Anti-pattern pack

Anti-pattern slow size for HashMap

stan0204 :: Inspection Source #

Inspection — slow size and length STAN-0204.

Anti-pattern slow size for HashSet

stan0205 :: Inspection Source #

Inspection — slow size STAN-0205.

Anti-pattern: Lazy fields

stan0206 :: Inspection Source #

Inspection — missing strictness declaration STAN-0206.

Anti-pattern: Foldable methods on tuples, Maybe, Either

stan0207 :: Inspection Source #

InspectionFoldable methods on possibly error-prone structures STAN-0207.

Anti-pattern: slow length for Text

stan0208 :: Inspection Source #

Inspection — slow length for Text STAN-0208.

Anti-pattern: Slow nub for lists

stan0209 :: Inspection Source #

Inspection — slow nub for lists STAN-0209.

Anti-pattern: Slow for_ on ranges

stan0210 :: Inspection Source #

Inspection — slow for_ and forM_ for ranges STAN-0210.

Anti-pattern: </> for URLs

stan0211 :: Inspection Source #

Inspection/ on URLs STAN-0211.

Anti-pattern: unsafe functions

stan0212 :: Inspection Source #

Inspection — usage of unsafe* functions STAN-0212.

Anti-pattern: Pattern-matching on _

stan0213 :: Inspection Source #

Inspection — Pattent matching on _ for sum types — STAN-0213.

Anti-pattern: use compare

Anti-pattern: Slashes in paths

stan0215 :: Inspection Source #

Inspection — Slashes in paths STAN-0215.

All inspections