DEBUG Add arbitrary visitor to one rule

This commit is contained in:
Jeroen Engels 2023-05-31 18:23:31 +02:00
parent 77e9a1d702
commit 211358d8d9

View File

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