mirror of
https://github.com/jfmengels/elm-review.git
synced 2024-11-23 14:55:35 +03:00
Annotate rules as providing fixes
This commit is contained in:
parent
c94d90d470
commit
a198634521
@ -130,6 +130,7 @@ rule phantomTypes =
|
||||
, fromModuleToProject = fromModuleToProject
|
||||
, foldProjectContexts = foldProjectContexts
|
||||
}
|
||||
|> Rule.providesFixesForProjectRule
|
||||
|> Rule.withContextFromImportedModules
|
||||
|> Rule.withFinalProjectEvaluation finalProjectEvaluation
|
||||
|> Rule.fromProjectRuleSchema
|
||||
|
@ -52,6 +52,7 @@ rule =
|
||||
, foldProjectContexts = foldProjectContexts
|
||||
}
|
||||
|> Rule.withFinalProjectEvaluation finalEvaluationForProject
|
||||
|> Rule.providesFixesForProjectRule
|
||||
|> Rule.fromProjectRuleSchema
|
||||
|
||||
|
||||
|
@ -64,6 +64,7 @@ rule =
|
||||
}
|
||||
|> Rule.withElmJsonProjectVisitor (\elmJson context -> ( [], elmJsonVisitor elmJson context ))
|
||||
|> Rule.withFinalProjectEvaluation finalEvaluationForProject
|
||||
|> Rule.providesFixesForProjectRule
|
||||
|> Rule.fromProjectRuleSchema
|
||||
|
||||
|
||||
|
@ -70,6 +70,7 @@ rule =
|
||||
|> Rule.withCaseBranchEnterVisitor caseBranchEnterVisitor
|
||||
|> Rule.withCaseBranchExitVisitor caseBranchExitVisitor
|
||||
|> NameVisitor.withValueVisitor valueVisitor
|
||||
|> Rule.providesFixesForModuleRule
|
||||
|> Rule.fromModuleRuleSchema
|
||||
|
||||
|
||||
|
@ -110,6 +110,7 @@ rule =
|
||||
, foldProjectContexts = foldProjectContexts
|
||||
}
|
||||
|> Rule.withContextFromImportedModules
|
||||
|> Rule.providesFixesForProjectRule
|
||||
|> Rule.fromProjectRuleSchema
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user