]> git.ipfire.org Git - thirdparty/git.git/blame - t/chainlint/for-loop.test
Merge branch 'en/fetch-negotiation-default-fix'
[thirdparty/git.git] / t / chainlint / for-loop.test
CommitLineData
ebcbbe06 1(
5459bc1b 2# LINT: "for", "do", "done" do not need "&&"
ebcbbe06
ES
3 for i in a b c
4 do
5459bc1b 5# LINT: missing "&&" on "echo"
ebcbbe06
ES
6 echo $i
7# LINT: last statement of while does not need "&&"
8 cat <<-\EOF
9 bar
10 EOF
5459bc1b 11# LINT: missing "&&" on "done"
ebcbbe06
ES
12 done
13
5459bc1b 14# LINT: "do" on same line as "for"
ebcbbe06
ES
15 for i in a b c; do
16 echo $i &&
17 cat $i
18 done
19)