Skip to content

Template

koalaman edited this page Jan 20, 2018 · 21 revisions

ShellCheck

Each individual ShellCheck warning has its own wiki page like SC1000. Use GitHub Wiki's "Pages" feature above to find a specific one, or see Checks.

Clone this wiki locally

(Message goes here, use code and foo wisely)

Problematic code:

# Simple example of problematic code

Correct code:

# Simple example of above code, only fixed

Rationale:

(An explanation of why the code is problematic and how the correct code is an improvement)

Exceptions:

(Cases where the user may choose to ignore this warning, if any.)

Related resources:

  • Help by adding links to BashFAQ, StackOverflow, man pages, POSIX, etc!