Welcome to mirror list, hosted at ThFree Co, Russian Federation.

if-in-loop.test « chainlint « t - git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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
)