mirror of
https://github.com/jfmengels/elm-review.git
synced 2024-10-27 00:25:49 +03:00
Add ignoreFiles to RequestedData
This commit is contained in:
parent
51a018f0f2
commit
ccca25f6bb
@ -1246,7 +1246,7 @@ fromProjectRuleSchema ((ProjectRuleSchema schema) as projectRuleSchema) =
|
|||||||
requestedData
|
requestedData
|
||||||
|
|
||||||
Nothing ->
|
Nothing ->
|
||||||
RequestedData { moduleNameLookupTable = False, sourceCodeExtractor = False }
|
noRequestedData
|
||||||
, extractsData = schema.dataExtractor /= Nothing
|
, extractsData = schema.dataExtractor /= Nothing
|
||||||
, providesFixes = schema.providesFixes
|
, providesFixes = schema.providesFixes
|
||||||
, ruleImplementation =
|
, ruleImplementation =
|
||||||
@ -1313,7 +1313,7 @@ fromProjectRuleSchemaToRunnableProjectVisitor (ProjectRuleSchema schema) =
|
|||||||
requestedData
|
requestedData
|
||||||
|
|
||||||
Nothing ->
|
Nothing ->
|
||||||
RequestedData { moduleNameLookupTable = False, sourceCodeExtractor = False }
|
noRequestedData
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1550,7 +1550,7 @@ configurationError name configurationError_ =
|
|||||||
{ name = name
|
{ name = name
|
||||||
, id = 0
|
, id = 0
|
||||||
, exceptions = Exceptions.init
|
, exceptions = Exceptions.init
|
||||||
, requestedData = RequestedData { moduleNameLookupTable = False, sourceCodeExtractor = False }
|
, requestedData = noRequestedData
|
||||||
, extractsData = False
|
, extractsData = False
|
||||||
, providesFixes = False
|
, providesFixes = False
|
||||||
, ruleImplementation = \_ _ _ fixedErrors project -> { errors = [], fixedErrors = fixedErrors, rule = configurationError name configurationError_, project = project, extract = Nothing }
|
, ruleImplementation = \_ _ _ fixedErrors project -> { errors = [], fixedErrors = fixedErrors, rule = configurationError name configurationError_, project = project, extract = Nothing }
|
||||||
@ -5799,6 +5799,7 @@ type RequestedData
|
|||||||
= RequestedData
|
= RequestedData
|
||||||
{ moduleNameLookupTable : Bool
|
{ moduleNameLookupTable : Bool
|
||||||
, sourceCodeExtractor : Bool
|
, sourceCodeExtractor : Bool
|
||||||
|
, ignoredFiles : Bool
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -5821,11 +5822,16 @@ initContextCreator fromProjectToModule =
|
|||||||
-- TODO Try to get rid of the ()/from when using in a module rule
|
-- TODO Try to get rid of the ()/from when using in a module rule
|
||||||
ContextCreator
|
ContextCreator
|
||||||
(always fromProjectToModule)
|
(always fromProjectToModule)
|
||||||
(RequestedData
|
noRequestedData
|
||||||
{ moduleNameLookupTable = False
|
|
||||||
, sourceCodeExtractor = False
|
|
||||||
}
|
noRequestedData : RequestedData
|
||||||
)
|
noRequestedData =
|
||||||
|
RequestedData
|
||||||
|
{ moduleNameLookupTable = False
|
||||||
|
, sourceCodeExtractor = False
|
||||||
|
, ignoredFiles = False
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
applyContextCreator : AvailableData -> ContextCreator from to -> from -> to
|
applyContextCreator : AvailableData -> ContextCreator from to -> from -> to
|
||||||
@ -5934,10 +5940,10 @@ withIsInSourceDirectories (ContextCreator fn requestedData) =
|
|||||||
|
|
||||||
-}
|
-}
|
||||||
withIsFileIgnored : ContextCreator Bool (from -> to) -> ContextCreator from to
|
withIsFileIgnored : ContextCreator Bool (from -> to) -> ContextCreator from to
|
||||||
withIsFileIgnored (ContextCreator fn requestedData) =
|
withIsFileIgnored (ContextCreator fn (RequestedData requested)) =
|
||||||
ContextCreator
|
ContextCreator
|
||||||
(\data -> fn data data.isFileIgnored)
|
(\data -> fn data data.isFileIgnored)
|
||||||
requestedData
|
(RequestedData { requested | ignoredFiles = True })
|
||||||
|
|
||||||
|
|
||||||
{-| Requests the module name lookup table for the types and functions inside a module.
|
{-| Requests the module name lookup table for the types and functions inside a module.
|
||||||
|
Loading…
Reference in New Issue
Block a user