diff options
Diffstat (limited to 'third_party/git/t/chainlint/nested-cuddled-subshell.test')
-rw-r--r-- | third_party/git/t/chainlint/nested-cuddled-subshell.test | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/third_party/git/t/chainlint/nested-cuddled-subshell.test b/third_party/git/t/chainlint/nested-cuddled-subshell.test new file mode 100644 index 000000000000..8fd656c7b598 --- /dev/null +++ b/third_party/git/t/chainlint/nested-cuddled-subshell.test @@ -0,0 +1,31 @@ +( +# LINT: opening "(" cuddled with first nested subshell statement + (cd foo && + bar + ) && + +# LINT: same but "&&" missing + (cd foo && + bar + ) + +# LINT: closing ")" cuddled with final nested subshell statement + ( + cd foo && + bar) && + +# LINT: same but "&&" missing + ( + cd foo && + bar) + +# LINT: "(" and ")" cuddled with first and final subshell statements + (cd foo && + bar) && + +# LINT: same but "&&" missing + (cd foo && + bar) + + foobar +) |