feat(natu): detect redundant let expressions #125

Merged
alexion merged 1 commits from feat/natu-redundant-let into main 2026-10-04 21:24:05 -04:00
Owner

Summary

  • detect let expressions that return one nonrecursive binding unchanged
  • preserve bindings that are recursive or referenced by sibling bindings
  • inline the registry validator reported by the new rule

Validation

  • nix run .#fix
  • bazel test //src/natu:natu_test
  • bazel run //src/natu:natu -- src/dotfiles/registry/validation.nix
  • nix eval --raw .#nixosConfigurations.neogaia.config.networking.hostName
## Summary - detect `let` expressions that return one nonrecursive binding unchanged - preserve bindings that are recursive or referenced by sibling bindings - inline the registry validator reported by the new rule ## Validation - `nix run .#fix` - `bazel test //src/natu:natu_test` - `bazel run //src/natu:natu -- src/dotfiles/registry/validation.nix` - `nix eval --raw .#nixosConfigurations.neogaia.config.networking.hostName`
alexion added 1 commit 2026-10-04 21:23:37 -04:00
alexion force-pushed feat/natu-redundant-let from 676cc44702 to 3e9295134e 2026-10-04 21:23:37 -04:00 Compare
alexion merged commit 3e9295134e into main 2026-10-04 21:24:05 -04:00
alexion deleted branch feat/natu-redundant-let 2026-10-04 21:24:05 -04:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: alexion/dev#125