Styleguide
DC* edited this page Dec 29, 2016
·
1 revision
Clone this wiki locally
General style guide
- Always use spaces
- 2 spaces for indentation
- Keep line length below 80 characters
Conventions
- Underscore for variable names (
$this_is_a_variable) - Dash for function names (
this-is-a-function) - Prefix '-' for "private" functions
- Always use
if/then/elsefor conditionals
Running shellcheck
Shellcheck is run on TravisCI, but you can run it manually this way:
shellcheck bin/antigen.zsh --shell=ksh
Wiki - Bug tracker - Roadmap - Contact - Copyright