From d5bfa83e47d5b3debd31b51f8777a8d5704db5e2 Mon Sep 17 00:00:00 2001 From: Vidar Holen Date: Wed, 10 Oct 2018 21:26:44 -0700 Subject: [PATCH] Created SC1050 (markdown) --- SC1050.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 SC1050.md diff --git a/SC1050.md b/SC1050.md new file mode 100644 index 0000000..510a9d6 --- /dev/null +++ b/SC1050.md @@ -0,0 +1,27 @@ +## Expected 'then'. + +### Problematic code: + +```sh +if true + echo "True" +fi +``` + +### Correct code: + +```sh +if true +then + echo "True" +fi +``` +### Rationale: + +ShellCheck has found an `if` statement that appears to be missing a `then`. + +Make sure the `then` exists, and that it is the first word of the line (or immediately preceded by a semicolon). + +### Exceptions: + +None \ No newline at end of file