Skip to content

Latest commit

 

History

History
 
 

elixir

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Elixir

Sample

  • 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.