You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
order :: [Part] when Part :: module | includes | types | … | everything_else (default: ??)
We need to come up with a list of all possible parts and a reasonable default for them. We can inspire ourselves in Credo (link below) but Erlang has some extra attribute types and we need to be able to correctly deal with -if, -ifdef, and all its friends.
Reasoning
Paraphrasing Credo documentation:
Like all Readability issues, this one is not a technical concern. But you can improve the odds of others reading and liking your code by making it easier to follow.
Strict Module Layout
Brief Description
Provide module parts in the required order.
Should be on by default?
YES
Options
order :: [Part] when Part :: module | includes | types | … | everything_else
(default: ??)We need to come up with a list of all possible parts and a reasonable default for them. We can inspire ourselves in Credo (link below) but Erlang has some extra attribute types and we need to be able to correctly deal with
-if
,-ifdef
, and all its friends.Reasoning
Paraphrasing Credo documentation:
Origin (#281)
Inspired by the
Consistency.Readability.StrictModuleLayout
rule from CredoThe text was updated successfully, but these errors were encountered: