feat(natu): detect single-use let bindings

This commit is contained in:
2026-09-30 10:41:42 -04:00
parent 2265dfc558
commit 852b14cff0
8 changed files with 154 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;
};