summaryrefslogtreecommitdiffstats
path: root/t/chainlint/if-in-loop.test
blob: 90c23976feccdd3f3851a39cf7b12cb5f643f628 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
(
	for i in a b c
	do
		if false
		then
# LINT: missing "&&" on "echo" okay since "exit 1" signals error explicitly
			echo "err"
			exit 1
# LINT: missing "&&" on "fi"
		fi
		foo
# LINT: missing "&&" on "done"
	done
	bar
)