diff --git a/SC1058.md b/SC1058.md new file mode 100644 index 0000000..4dc7506 --- /dev/null +++ b/SC1058.md @@ -0,0 +1,27 @@ +## Expected `do`. + +### Problematic code: + +```sh +for file in * + echo "$file" +done +``` + +### Correct code: + +```sh +for file in * +do + echo "$file" +done +``` +### Rationale: + +ShellCheck has found a loop that appears to be missing a `do` statement. In the problematic code, it was simply forgotten. + +Verify that the `do` exists, and that it's in the correct place. + +### Exceptions: + +None \ No newline at end of file