Skip to content
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

Open
kachick opened this issue Sep 8, 2024 · 2 comments
Open

Introduce nixf-tidy #777

kachick opened this issue Sep 8, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@kachick kachick added the enhancement New feature or request label Sep 8, 2024
@kachick
Copy link
Owner Author

kachick commented Sep 12, 2024

💭 Without this, zed and the default nixd integration displays many warnings

@kachick
Copy link
Owner Author

kachick commented Sep 12, 2024

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 "$?"
'

kachick added a commit that referenced this issue Sep 16, 2024
Preparation for GH-527
Part of GH-777

Fixes GH-680 and closes GH-742
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 💪
Development

No branches or pull requests

1 participant