Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 856 Bytes

README.md

File metadata and controls

28 lines (20 loc) · 856 Bytes

CheckModuleAttrs

This library provided mix task check_module_attrs which will check for module attributes being set to values from config/releases.exs. This will fail in production and must be avoided.

Installation

If available in Hex, the package can be installed by adding check_module_attrs to your list of dependencies in mix.exs:

def deps do
  [
    {:check_module_attrs, "~> 0.1.0"}
  ]
end

Usage:

$ mix check_module_attrs

This tasks should be also run on CI - it will exit code 0, if everything is correct and 1 otherwise.

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/check_module_attrs.