refactor(natu): remove single-use binding rule

This commit was merged in pull request #123.
This commit is contained in:
2026-10-04 14:08:13 -04:00
parent 11b490d1e8
commit c91094234f
10 changed files with 16 additions and 222 deletions

View File

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

View File

@@ -1,9 +1,9 @@
let
second = first; # NOLINT(single_use_binding)
second = first;
first = 1;
nested = let # NOLINT(single_use_binding)
nestedFirst = first; # NOLINT(single_use_binding)
nestedSecond = nestedFirst; # NOLINT(single_use_binding)
nested = let
nestedFirst = first;
nestedSecond = nestedFirst;
in {
result = nestedSecond;
};