From 11066fbbddffb09a25ebaedff429d5ff6192d8be Mon Sep 17 00:00:00 2001 From: Akshay Date: Sat, 4 Jun 2022 21:52:57 +0530 Subject: raise, don't fix for empty_let_in with comments --- bin/tests/data/empty_let_in.nix | 3 ++- bin/tests/snapshots/main__empty_let_in.snap | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'bin') 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 @@ ) ( let - # don't match this, we have a comment + # don't fix this, we have a comment + # raise the lint though in null ) 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" · │ · ╰────────────── This let-in expression has no entries ───╯ +[W02] Warning: Useless let-in expression + ╭─[data/empty_let_in.nix:8:5] + │ + 8 │ ╭─▶ let + 12 │ ├─▶ null + · │ + · ╰────────────── This let-in expression has no entries +────╯ -- cgit v1.2.3