2017-06-15 17:17:32 +03:00
|
|
|
module LintConfig exposing (config)
|
2017-01-30 02:52:54 +03:00
|
|
|
|
2018-11-11 01:43:58 +03:00
|
|
|
import Lint.Rule exposing (Rule, Severity(..))
|
|
|
|
import Lint.Rule.DefaultPatternPosition
|
|
|
|
import Lint.Rule.NoConstantCondition
|
|
|
|
import Lint.Rule.NoDebug
|
|
|
|
import Lint.Rule.NoDuplicateImports
|
|
|
|
import Lint.Rule.NoExposingEverything
|
|
|
|
import Lint.Rule.NoImportingEverything
|
|
|
|
import Lint.Rule.NoNestedLet
|
|
|
|
import Lint.Rule.NoUnannotatedFunction
|
|
|
|
import Lint.Rule.NoUnusedVariables
|
|
|
|
import Lint.Rule.NoUselessIf
|
|
|
|
import Lint.Rule.NoUselessPatternMatching
|
|
|
|
import Lint.Rule.NoWarningComments
|
|
|
|
import Lint.Rule.SimplifyPiping
|
|
|
|
import Lint.Rule.SimplifyPropertyAccess
|
|
|
|
import Lint.Rule.ElmTest.NoDuplicateTestBodies
|
2017-01-30 02:52:54 +03:00
|
|
|
|
|
|
|
|
2018-11-11 01:37:18 +03:00
|
|
|
config : List ( Severity, Rule )
|
2017-06-15 17:17:32 +03:00
|
|
|
config =
|
2018-11-11 01:43:58 +03:00
|
|
|
[ ( Critical, Lint.Rule.DefaultPatternPosition.rule { position = Lint.Rule.DefaultPatternPosition.Last } )
|
|
|
|
, ( Critical, Lint.Rule.NoConstantCondition.rule )
|
|
|
|
, ( Critical, Lint.Rule.NoDebug.rule )
|
|
|
|
, ( Critical, Lint.Rule.NoDuplicateImports.rule )
|
|
|
|
, ( Critical, Lint.Rule.NoExposingEverything.rule )
|
|
|
|
, ( Critical, Lint.Rule.NoImportingEverything.rule { exceptions = [ "Html", "Ast.Expression", "Ast.Statement" ] } )
|
|
|
|
, ( Critical, Lint.Rule.NoNestedLet.rule )
|
|
|
|
, ( Critical, Lint.Rule.NoUnannotatedFunction.rule )
|
|
|
|
, ( Critical, Lint.Rule.NoUnusedVariables.rule )
|
|
|
|
, ( Critical, Lint.Rule.NoUselessIf.rule )
|
|
|
|
, ( Critical, Lint.Rule.NoUselessPatternMatching.rule )
|
|
|
|
, ( Warning, Lint.Rule.NoWarningComments.rule )
|
|
|
|
, ( Critical, Lint.Rule.SimplifyPiping.rule )
|
|
|
|
, ( Critical, Lint.Rule.SimplifyPropertyAccess.rule )
|
|
|
|
, ( Critical, Lint.Rule.ElmTest.NoDuplicateTestBodies.rule )
|
2017-01-30 02:52:54 +03:00
|
|
|
]
|