feat(natu): detect single-use let bindings

This commit was merged in pull request #116.
This commit is contained in:
2026-09-30 10:43:05 -04:00
parent 2265dfc558
commit 78492739f3
7 changed files with 153 additions and 16 deletions

View File

@@ -2,18 +2,18 @@
let
first = 1;
second = first;
second = first; # NOLINT(single_use_binding)
in {
firstField = first;
secondField = second;
nested = let
innerSecond = innerFirst;
innerFirst = first;
innerSecond = innerFirst; # NOLINT(single_use_binding)
innerFirst = first; # NOLINT(single_use_binding)
in {
result = innerSecond;
};
parameter = first: let
usesParameter = first;
usesParameter = first; # NOLINT(single_use_binding)
in {
result = usesParameter;
};