Commit 22a43204 authored by Dylan Araps's avatar Dylan Araps

docs: update

parent 5bad6ea5
...@@ -15,6 +15,9 @@ ...@@ -15,6 +15,9 @@
## Coding Conventions ## Coding Conventions
- Use `bash` built-ins wherever possible.
- Try not to pipe (`|`) at all.
- Limit usage of external commands `$(cmd)`.
- Indent 4 spaces. - Indent 4 spaces.
- Use [snake_case](https://en.wikipedia.org/wiki/Snake_case) for function - Use [snake_case](https://en.wikipedia.org/wiki/Snake_case) for function
and variable names. and variable names.
...@@ -42,6 +45,10 @@ request on the repo and our Travis.ci hook will run ShellCheck for you. ...@@ -42,6 +45,10 @@ request on the repo and our Travis.ci hook will run ShellCheck for you.
### No no's ### No no's
- Don’t use GNU conventions in commands.
- Use POSIX arguments and flags.
- Don’t use `cut`.
- Use `bash`'s built-in [parameter expansion](http://wiki.bash-hackers.org/syntax/pe).
- Don’t use `echo`. - Don’t use `echo`.
- Use `printf "%s\n"` - Use `printf "%s\n"`
- Don’t use `bc`. - Don’t use `bc`.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment