Closed kyleVsteger closed 3 years ago
Hey hey!! I'm loving this change and it is actually something that has been in the backlog for some time #23. Do you think you could drop the ignore_module_prefixes
config value and make a function similar to filter_ignore_paths
but for modules via RegEx? That would make it a bit more flexible and could filter out any sort of pattern beyond just prefixes.
I went ahead and snagged some of your changes and published the 0.16.0 release. For your particular example, you would do something like so in your .doctor.exs file to ignore all modules prefixed with the provided patterns:
%Doctor.Config{
ignore_modules: [
~r(^Jason.Encoder),
~r(^Mix.Tasks)
],
...
}
Thanks for the contribution!
ignore_module_prefixes: [Jason.Encoder, Mix.Tasks]
to config