Rename operation

This commit is contained in:
Jeroen Engels 2023-04-12 19:34:45 +02:00
parent dc71b04ef2
commit 73b8388d84

View File

@ -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