mirror of
https://github.com/RGBCube/alejandra
synced 2025-07-31 12:37:45 +00:00
feat: health check
This commit is contained in:
parent
a5e92895fa
commit
e0b1bdc8c7
1 changed files with 33 additions and 1 deletions
34
README.md
34
README.md
|
@ -53,9 +53,14 @@
|
|||
|
||||
- ✔️ **Reliable**
|
||||
|
||||
Coverage is currently 80%,
|
||||
Coverage is currently 90%,
|
||||
and we'll have 💯% soon.
|
||||
|
||||
Plus, after formatting [Nixpkgs](https://github.com/nixos/nixpkgs)
|
||||
no semantically significant changes are made.
|
||||
From Nix's eyes, code is _just_ the same.
|
||||
[^semantic-changes]
|
||||
|
||||
- ✔️ **Reproducible**
|
||||
|
||||
Formatting many times yields the same results.
|
||||
|
@ -120,3 +125,30 @@ Let's get Alejandra on our systems:
|
|||
- MHz: 3800.00
|
||||
- BogoMips: 7599.80
|
||||
- Cache Size: 16384 KB
|
||||
|
||||
[^semantic-changes]:
|
||||
|
||||
The methodology to claim this is:
|
||||
|
||||
1. Checkout [Nixpkgs](https://github.com/nixos/nixpkgs) and run:
|
||||
|
||||
```bash
|
||||
$ nix-env -qaP --json --drv-path > before
|
||||
```
|
||||
|
||||
1. Now format with Alejandra and run:
|
||||
|
||||
```bash
|
||||
$ nix-env -qaP --json --drv-path > after
|
||||
```
|
||||
|
||||
As of 2022-01-28,
|
||||
there are 94 differences in a set of 34079 derivations
|
||||
because of things like this:
|
||||
|
||||
```
|
||||
goDeps = ./deps.nix;
|
||||
```
|
||||
|
||||
Since `./deps.nix` was also formatted
|
||||
you get a semantical difference.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue