-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce nixf-tidy #777
Labels
enhancement
New feature or request
Comments
💭 Without this, zed and the default nixd integration displays many warnings |
Draft git ls-files '*.nix' | xargs -I{} bash <<'BASH'
echo -n '{}: '
git diff --exit-code --quiet <(printf '[]\n') <(<{} nixf-tidy --pretty-print --variable-lookup)
echo "$?"
BASH
git ls-files '*.nix' | xargs -I{} bash <(<<'BASH'
echo -n "$1: "
BASH
) {}
git ls-files '*.nix' | xargs -I{} bash -c '
echo -n "{}: "
git diff --exit-code --quiet <(printf "[]\n") <(<{} nixf-tidy --pretty-print --variable-lookup)
echo "$?"
' |
When refactoring in #943, it throws much I'm not positive for these, because of I wish nixfmt-rfc-style should cover these if need. And nixf-tidy does not take CLI options to modify behavior. And the returned JSON does not include severity. Might be dropped 🤔 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nix-community/nixd#497
https://discourse.nixos.org/t/list-of-nix-linters/19279/9
NixOS/nixpkgs#330066
NixOS/nixpkgs#332695
https://github.com/inclyc/flakes/blob/168b2fb0c66c9946037afaf1b4bb884e3b58b465/.github/workflows/nixf-tidy.yml#L25C13-L25C36
The text was updated successfully, but these errors were encountered: