mirror of
https://github.com/jfmengels/elm-review.git
synced 2024-08-16 19:40:22 +03:00
DEBUG Add arbitrary visitor to one rule
This commit is contained in:
parent
77e9a1d702
commit
211358d8d9
@ -58,6 +58,15 @@ rule : List String -> Rule
|
||||
rule exceptions =
|
||||
Rule.newModuleRuleSchema "NoImportingEverything" ()
|
||||
|> Rule.withSimpleImportVisitor (importVisitor <| exceptionsToSet exceptions)
|
||||
|> Rule.withArbitraryFilesModuleVisitor
|
||||
[ "CHANGELOG.md" ]
|
||||
(\files context ->
|
||||
let
|
||||
_ =
|
||||
Debug.log "files" files
|
||||
in
|
||||
context
|
||||
)
|
||||
|> Rule.fromModuleRuleSchema
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user