- Avoid macros
- Don't separate multiple declarations of functions of the same name with newlines.
- Indent pipes by two spaces when using the match operator (
=
). - Don't indent pipes when not using the match operator (
=
). - Prefer pattern matching and guards in function definitions over conditionals in the function body.
- Break long lines after 100 characters.
- Order the dependencies of a module as:
use
,import
,alias
. - Put an empty line between each type of dependency.
- Sort the dependencies in each section alphabetically.
Files
Latest commit
This branch is 3 commits behind thoughtbot/guides:main.
elixir
Folders and files
Name | Name | Last commit date | ||
---|---|---|---|---|
parent directory.. | ||||