VBT.Credo.Check.Consistency.ModuleLayout (vbt v0.1.0) View Source
This check has a base priority of high
and works with any version of Elixir.
Explanation
Module parts should appear in the following order:
- @shortdoc
- @moduledoc
- @behaviour
- use
- import
- alias
- require
- custom module attributes
- defstruct
- @opaque
- @type
- @typep
- @callback
- @macrocallback
- @optional_callbacks
- public guards
- public macros
- public functions
- behaviour callbacks
- private functions
This order has been adapted from https://github.com/christopheradams/elixir_style_guide#module-attribute-ordering.
Configuration parameters
There are no specific parameters for this check.
Like with all checks, general params can be applied.
Parameters can be configured via the .credo.exs
config file.