aboutsummaryrefslogtreecommitdiff
path: root/bin/tests
diff options
context:
space:
mode:
authorAkshay <[email protected]>2022-06-04 17:22:57 +0100
committerAkshay <[email protected]>2022-06-04 17:24:01 +0100
commit11066fbbddffb09a25ebaedff429d5ff6192d8be (patch)
treec354c2e939323d357efb1d2cac792c32b99a6b83 /bin/tests
parent33490aa211fdd2b2292c396002123035e0b1fe54 (diff)
raise, don't fix for empty_let_in with comments
Diffstat (limited to 'bin/tests')
-rw-r--r--bin/tests/data/empty_let_in.nix3
-rw-r--r--bin/tests/snapshots/main__empty_let_in.snap8
2 files changed, 10 insertions, 1 deletions
diff --git a/bin/tests/data/empty_let_in.nix b/bin/tests/data/empty_let_in.nix
index 54fee2a..6b916d9 100644
--- a/bin/tests/data/empty_let_in.nix
+++ b/bin/tests/data/empty_let_in.nix
@@ -6,7 +6,8 @@
6 ) 6 )
7 ( 7 (
8 let 8 let
9 # don't match this, we have a comment 9 # don't fix this, we have a comment
10 # raise the lint though
10 in 11 in
11 null 12 null
12 ) 13 )
diff --git a/bin/tests/snapshots/main__empty_let_in.snap b/bin/tests/snapshots/main__empty_let_in.snap
index df0911d..1aa0cb5 100644
--- a/bin/tests/snapshots/main__empty_let_in.snap
+++ b/bin/tests/snapshots/main__empty_let_in.snap
@@ -11,4 +11,12 @@ expression: "&out"
11 · │ 11 · │
12 · ╰────────────── This let-in expression has no entries 12 · ╰────────────── This let-in expression has no entries
13───╯ 13───╯
14[W02] Warning: Useless let-in expression
15 ╭─[data/empty_let_in.nix:8:5]
16
17 8 │ ╭─▶ let
18 12 │ ├─▶ null
19 · │
20 · ╰────────────── This let-in expression has no entries
21────╯
14 22