summaryrefslogtreecommitdiffstats
path: root/t/chainlint/block.test
diff options
context:
space:
mode:
Diffstat (limited to 't/chainlint/block.test')
-rw-r--r--t/chainlint/block.test15
1 files changed, 15 insertions, 0 deletions
diff --git a/t/chainlint/block.test b/t/chainlint/block.test
new file mode 100644
index 0000000..d859151
--- /dev/null
+++ b/t/chainlint/block.test
@@ -0,0 +1,15 @@
+(
+# LINT: missing "&&" in block not currently detected (for consistency with
+# LINT: --chain-lint at top level and to provide escape hatch if needed)
+ foo &&
+ {
+ echo a
+ echo b
+ } &&
+ bar &&
+# LINT: missing "&&" at closing "}"
+ {
+ echo c
+ }
+ baz
+)