You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
statix correctly identifies that these assignments could be inherit statements instead:
$ statix check inherit-repeat.nix
[W04] Warning: Assignment instead of inherit from
╭─[inherit-repeat.nix:8:3]
│
8 │ host = config.host;
· ─────────┬─────────
· ╰─────────── This assignment is better written with inherit
───╯
[W04] Warning: Assignment instead of inherit from
╭─[inherit-repeat.nix:9:3]
│
9 │ user = config.user;
· ─────────┬─────────
· ╰─────────── This assignment is better written with inherit
───╯
[W04] Warning: Assignment instead of inherit from
╭─[inherit-repeat.nix:10:3]
│
10 │ port = config.port;
· ─────────┬─────────
· ╰─────────── This assignment is better written with inherit
────╯
But it creates three inherit statements when I run statix fix, rather than one:
With this code:
statix
correctly identifies that these assignments could beinherit
statements instead:But it creates three
inherit
statements when I runstatix fix
, rather than one:Expected
Version
The text was updated successfully, but these errors were encountered: