Improve guidelines
This commit is contained in:
parent
cede08c518
commit
55f60d849f
10
README.md
10
README.md
|
@ -44,11 +44,15 @@ multiple ways of feeding data to loops easily covers the needs
|
||||||
previously requiring Python and Perl scripts. Bash scripts are also much
|
previously requiring Python and Perl scripts. Bash scripts are also much
|
||||||
more powerful, safer, flexible, and performant than POSIX shell or Zsh.
|
more powerful, safer, flexible, and performant than POSIX shell or Zsh.
|
||||||
|
|
||||||
## Caveats
|
## Guidelines
|
||||||
|
|
||||||
|
* Write GitHub Flavored Markdown only
|
||||||
|
* Use present tense ("outputs" over "will output")
|
||||||
|
* Prefer "output" and "display" over ~~print~~
|
||||||
|
* Follow the [naming conventions](#naming-conventions)
|
||||||
* Use the official bash path: `#!/usr/bin/bash`
|
* Use the official bash path: `#!/usr/bin/bash`
|
||||||
* Using `#!/usr/bin/env bash` introduces unnecessary risk
|
* Using `#!/usr/bin/env bash` introduces unnecessary risk
|
||||||
* Always set the acceptable `PATH` at beginning of script
|
* Explicitly export `PATH` in script when possible
|
||||||
* Always check script with [`shellcheck`] before releasing
|
* Always check script with [`shellcheck`] before releasing
|
||||||
* Always use `bc` for *any* floating point math
|
* Always use `bc` for *any* floating point math
|
||||||
|
|
||||||
|
@ -102,5 +106,5 @@ Displays a summary of usage.
|
||||||
|
|
||||||
----
|
----
|
||||||
|
|
||||||
*Autogenerated Tue Aug 10 07:18:16 PM EDT 2021*
|
*Autogenerated Tue Aug 10 07:37:40 PM EDT 2021*
|
||||||
|
|
||||||
|
|
8
command
8
command
|
@ -60,11 +60,15 @@ multiple ways of feeding data to loops easily covers the needs
|
||||||
previously requiring Python and Perl scripts. Bash scripts are also much
|
previously requiring Python and Perl scripts. Bash scripts are also much
|
||||||
more powerful, safer, flexible, and performant than POSIX shell or Zsh.
|
more powerful, safer, flexible, and performant than POSIX shell or Zsh.
|
||||||
|
|
||||||
## Caveats
|
## Guidelines
|
||||||
|
|
||||||
|
* Write GitHub Flavored Markdown only
|
||||||
|
* Use present tense ("outputs" over "will output")
|
||||||
|
* Prefer "output" and "display" over ~~print~~
|
||||||
|
* Follow the [naming conventions](#naming-conventions)
|
||||||
* Use the official bash path: `#!/usr/bin/bash`
|
* Use the official bash path: `#!/usr/bin/bash`
|
||||||
* Using `#!/usr/bin/env bash` introduces unnecessary risk
|
* Using `#!/usr/bin/env bash` introduces unnecessary risk
|
||||||
* Always set the acceptable `PATH` at beginning of script
|
* Explicitly export `PATH` in script when possible
|
||||||
* Always check script with [`shellcheck`] before releasing
|
* Always check script with [`shellcheck`] before releasing
|
||||||
* Always use `bc` for *any* floating point math
|
* Always use `bc` for *any* floating point math
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue