Closed paveltyk closed 10 months ago
Hi @paveltyk,
Thatβs great! Regarding this:
Consider passing module name in
:plugins
opt. This will follow the Open Closed principle, i.e. plugins: [CredoNaming.Check.Consistency.ModuleFilename.Plugins.Phoenix
]
I agree! Iβll make the change in README.md
after merging this.
π Description and reason
Currently,
:plugins
option supports only:phoenix
. It would be nice to add some flexibility by supporting one arity function.In my case the project folder structure does not match with the Phoenix naming convention, i.e. instead of
app_web
I haveapp_api
. That prevents the predefined:phoenix
plugin to do its' magic. This PR will allow forplugins: [&MyApp.Credo.check_module_fIlename/1]
π· Work done
Tasks
Additional notes
Consider passing module name in
:plugins
opt. This will follow the Open Closed principle, i.e.plugins: [CredoNaming.Check.Consistency.ModuleFilename.Plugins.Phoenix]
π Result
Not needed
π¦ Dispatch
#dispatch/elixir