mirego / credo_naming

🏷 A suite of Credo checks to enforce naming best practices in an Elixir project
https://open.mirego.com
BSD 3-Clause "New" or "Revised" License
88 stars 9 forks source link

Improve term matching in AvoidSpecificTermsInModuleNames check #4

Closed remi closed 5 years ago

remi commented 5 years ago

This pull request adds support for two things related to terms matching in the AvoidSpecificTermsInModuleNames check:

  1. String terms are now case-insensitive
  2. A “term to avoid” can now be a regular expression, so instead of having this:

    terms: ["Helper", "Helpers"]

    You can now simple use:

    terms: [~r/^Helpers?$/]