{"repo":"oppiliappan/statix","free":true,"listed":false,"github":"https://github.com/oppiliappan/statix","clone":"git clone https://github.com/oppiliappan/statix.git","description":"lints and suggestions for the nix programming language","language":"Rust","stars":938,"topics":["nix","linter"],"license":"MIT","category":"dev-tools","readme_excerpt":"[!CAUTION] 1. This project is now hosted at tangled. 2. A significant fork by Molybdenum Software exists. 3. The source for the Nixpkgs statix package is the Molybdenum Software fork 4. The maintainer of the Molybdenum Software fork is eager to merge back. statix Lints and suggestions for the Nix programming language. statix check highlights antipatterns in Nix code. statix fix can fix several such occurrences. For the time-being, statix works only with ASTs produced by the rnix-parser crate and does not evaluate any nix code (imports, attr sets etc.). Examples Installation statix is available via a nix flake: Install from nixpkgs: Install with brew/linuxbrew Usage Basic usage is as simple as: Certain lints have suggestions. Apply suggestions back to the source with: statix supports a variety of output formats; standard, json and errfmt: Configuration Ignore lints and fixes by creating a statix.toml file at your project root: statix automatically discovers the configuration file by traversing parents of the current directory and looking for a statix.toml file. Alternatively, you can pass the path to the statix.toml file on the command line with the --config flag (available on statix check and statix fix ). The available lints are (see statix list for an updated list): All lints are enabled by default. Generate a minimal config with statix dump statix.toml .","default_branch":null,"files":null,"tree":[],"storefront":"/r/oppiliappan","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/oppiliappan/statix/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}