We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a49909 commit 9dbe780Copy full SHA for 9dbe780
Documentation/CodingGuidelines
@@ -107,6 +107,17 @@ For shell scripts specifically (not exhaustive):
107
"then" should be on the next line for if statements, and "do"
108
should be on the next line for "while" and "for".
109
110
+ (incorrect)
111
+ if test -f hello; then
112
+ do this
113
+ fi
114
+
115
+ (correct)
116
+ if test -f hello
117
+ then
118
119
120
121
- We prefer "test" over "[ ... ]".
122
123
- We do not write the noiseword "function" in front of shell
0 commit comments