2017-06-15 17:17:32 +03:00
|
|
|
module LintConfig exposing (config)
|
2017-01-30 02:52:54 +03:00
|
|
|
|
2017-06-16 20:08:25 +03:00
|
|
|
import Lint.Types exposing (LintRule, Severity(..))
|
2017-01-30 02:52:54 +03:00
|
|
|
import Lint.Rules.DefaultPatternPosition
|
|
|
|
import Lint.Rules.NoConstantCondition
|
|
|
|
import Lint.Rules.NoDebug
|
|
|
|
import Lint.Rules.NoDuplicateImports
|
|
|
|
import Lint.Rules.NoExposingEverything
|
|
|
|
import Lint.Rules.NoImportingEverything
|
|
|
|
import Lint.Rules.NoNestedLet
|
|
|
|
import Lint.Rules.NoUnannotatedFunction
|
|
|
|
import Lint.Rules.NoUnusedVariables
|
|
|
|
import Lint.Rules.NoUselessIf
|
|
|
|
import Lint.Rules.NoUselessPatternMatching
|
|
|
|
import Lint.Rules.NoWarningComments
|
|
|
|
import Lint.Rules.SimplifyPiping
|
|
|
|
import Lint.Rules.SimplifyPropertyAccess
|
|
|
|
|
|
|
|
|
2017-06-16 20:08:25 +03:00
|
|
|
config : List ( Severity, LintRule )
|
2017-06-15 17:17:32 +03:00
|
|
|
config =
|
2017-06-16 20:08:25 +03:00
|
|
|
[ ( Critical, Lint.Rules.DefaultPatternPosition.rule { position = Lint.Rules.DefaultPatternPosition.Last } )
|
|
|
|
, ( Critical, Lint.Rules.NoConstantCondition.rule )
|
|
|
|
, ( Critical, Lint.Rules.NoDebug.rule )
|
|
|
|
, ( Critical, Lint.Rules.NoDuplicateImports.rule )
|
|
|
|
, ( Critical, Lint.Rules.NoExposingEverything.rule )
|
2017-06-18 17:49:05 +03:00
|
|
|
, ( Critical, Lint.Rules.NoImportingEverything.rule { exceptions = [ "Html" ] } )
|
2017-06-16 20:08:25 +03:00
|
|
|
, ( Critical, Lint.Rules.NoNestedLet.rule )
|
|
|
|
, ( Critical, Lint.Rules.NoUnannotatedFunction.rule )
|
|
|
|
, ( Critical, Lint.Rules.NoUnusedVariables.rule )
|
|
|
|
, ( Critical, Lint.Rules.NoUselessIf.rule )
|
|
|
|
, ( Critical, Lint.Rules.NoUselessPatternMatching.rule )
|
|
|
|
, ( Warning, Lint.Rules.NoWarningComments.rule )
|
|
|
|
, ( Critical, Lint.Rules.SimplifyPiping.rule )
|
|
|
|
, ( Critical, Lint.Rules.SimplifyPropertyAccess.rule )
|
2017-01-30 02:52:54 +03:00
|
|
|
]
|