mirror of
https://github.com/jfmengels/elm-review.git
synced 2024-09-11 16:16:09 +03:00
Rename operation
This commit is contained in:
parent
dc71b04ef2
commit
73b8388d84
@ -5436,7 +5436,7 @@ type alias RuleProjectVisitorOperations =
|
||||
, dataExtractVisitor : ReviewOptionsData -> Dict String Encode.Value -> ( Dict String Encode.Value, RuleProjectVisitor )
|
||||
, getErrorsForModule : String -> List (Error {})
|
||||
, getErrors : () -> List (Error {})
|
||||
, setErrors : String -> List (Error {}) -> RuleProjectVisitor
|
||||
, setErrorsForModule : String -> List (Error {}) -> RuleProjectVisitor
|
||||
, backToRule : () -> Rule
|
||||
, requestedData : RequestedData
|
||||
}
|
||||
@ -5463,7 +5463,7 @@ createRuleProjectVisitor schema initialProject ruleData initialCache =
|
||||
|
||||
-- TODO This is called at the wrong moment: This contains the state of the project with fixes that haven't been applied.
|
||||
, getErrors = \() -> errorsFromCache (finalCacheMarker schema.name hidden.ruleData.ruleId cache)
|
||||
, setErrors = \filePath errors -> raiseCache { cache | moduleContexts = Dict.update filePath (Maybe.map (\entry -> Cache.setErrors errors entry)) cache.moduleContexts }
|
||||
, setErrorsForModule = \filePath errors -> raiseCache { cache | moduleContexts = Dict.update filePath (Maybe.map (\entry -> Cache.setErrors errors entry)) cache.moduleContexts }
|
||||
, backToRule =
|
||||
\() ->
|
||||
Rule
|
||||
|
Loading…
Reference in New Issue
Block a user