aboutsummaryrefslogtreecommitdiff
path: root/readme.md
diff options
context:
space:
mode:
Diffstat (limited to 'readme.md')
-rw-r--r--readme.md49
1 files changed, 45 insertions, 4 deletions
diff --git a/readme.md b/readme.md
index 9ccb66e..68265cc 100644
--- a/readme.md
+++ b/readme.md
@@ -1,12 +1,53 @@
1## statix 1# statix
2 2
3`statix` intends to be a static analysis tool for the 3> Lints and suggestions for the Nix programming language.
4Nix programming language. 4
5`statix` highlights antipatterns in Nix code. `statix fix`
6can fix several such occurrences.
5 7
6For the time-being, `statix` works only with ASTs 8For the time-being, `statix` works only with ASTs
7produced by the `rnix-parser` crate and does not evaluate 9produced by the `rnix-parser` crate and does not evaluate
8any nix code (imports, attr sets etc.). 10any nix code (imports, attr sets etc.).
9 11
12## Installation
13
14`statix` is available via a nix flake:
15
16```
17nix run git+https://git.peppe.rs/languages/statix
18
19# or
20
21nix build git+https://git.peppe.rs/languages/statix
22./result/bin/statix --help
23```
24
25## Usage
26
27```
28statix 0.1.0
29
30Akshay <[email protected]>
31
32Lints and suggestions for the Nix programming language
33
34USAGE:
35 statix [FLAGS] [OPTIONS] [--] [TARGET]
36
37ARGS:
38 <TARGET> File or directory to run statix on [default: .]
39
40FLAGS:
41 -d, --dry-run Do not fix files in place, display a diff instead
42 -f, --fix Find and fix issues raised by statix
43 -h, --help Print help information
44 -V, --version Print version information
45
46OPTIONS:
47 -i, --ignore <IGNORE>... Globs of file patterns to skip
48 -o, --format <FORMAT> Output format. Supported values: errfmt, json (on feature flag only)
49```
50
10## Architecture 51## Architecture
11 52
12`statix` has the following components: 53`statix` has the following components:
@@ -37,5 +78,5 @@ their metadata.
37## TODO 78## TODO
38 79
39- Offline documentation for each lint 80- Offline documentation for each lint
40- Automatically fix all lints from suggestions generated
41- Test suite for lints and suggestions 81- Test suite for lints and suggestions
82- Output singleline/errfmt + vim plugin