Created SC1058 (markdown)

Vidar Holen
2018-10-10 21:12:06 -07:00
parent b077f17265
commit f626b5aa17

27
SC1058.md Normal file

@@ -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