Statix, is a linter for the Nix programming language, written in Rust with
rnix-parser. Here is an excerpt from the readme:
statix checkhighlights antipatterns in Nix code.
statix fixcan fix several such occurrences.
It detects around 11 antipatterns at the moment (it can also fix these with
statix fix!). The
fix subcommand is beautiful in that it is idempotent and can fix all issues in one go.
Feel free to open issues on Github with lint ideas and things you’d like to see! Here is a little screenshot of
statix check in action: