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

nixf doesn't report unused @args with function arguments #560

Closed
Aleksanaa opened this issue Jul 31, 2024 · 0 comments · Fixed by #561
Closed

nixf doesn't report unused @args with function arguments #560

Aleksanaa opened this issue Jul 31, 2024 · 0 comments · Fixed by #561
Labels
bug Something isn't working

Comments

@Aleksanaa
Copy link
Collaborator

Describe the bug

args in { foo, bar }@args isn't reported to be unused.

Logs (Required)

Configuration

If you have some custom configuration, please paste it here.

To Reproduce
Create a new Nix file and type this:

{ foo, bar }@args:

foo + bar

args is unused. nixd doesn't report this, also neither does nixf:

=> nixf-tidy < a.nix 
[]

Expected behavior
Report a warning on args being unused.

Screenshots
image

Additional context
Found in #558

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant