tvl-depot/third_party/git/t/chainlint/complex-if-in-cuddled-loop.test
Vincent Ambo 7ef0d62730 merge(third_party/git): Merge squashed git subtree at v2.23.0
Merge commit '1b593e1ea4d2af0f6444d9a7788d5d99abd6fde5' as 'third_party/git'
2020-01-11 23:40:29 +00:00

11 lines
297 B
Text

# LINT: 'for' loop cuddled with "(" and ")" and nested 'if' with complex
# LINT: multi-line condition; indented with spaces, not tabs
(for i in a b c; do
if test "$(echo $(waffle bat))" = "eleventeen" &&
test "$x" = "$y"; then
:
else
echo >file
fi
done) &&
test ! -f file