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

clj-kondo marks args in definterface as unused #1871

Closed
dpsutton opened this issue Nov 8, 2022 · 0 comments · Fixed by #1906
Closed

clj-kondo marks args in definterface as unused #1871

dpsutton opened this issue Nov 8, 2022 · 0 comments · Fixed by #1906
Projects

Comments

@dpsutton
Copy link

dpsutton commented Nov 8, 2022

version

clj-kondo v2022.08.03

platform

native

problem

Clj-kondo marks args in definterface as unused

repro

echo "(definterface Foo (foo [x]) (bar [x]))" | clj-kondo --lint -
<stdin>:1:35: warning: unused binding x
linting took 12ms, errors: 0, warnings: 1

The example from (doc definterface):
image

The two args in the second method are marked as unused (ignore the unresolved type names). Interestingly, the args in the first method are not marked as unused.

expected behavior

There should be no unused args warning for definterface.

@borkdude borkdude added this to Needs triage in clj-kondo via automation Nov 8, 2022
@borkdude borkdude moved this from Needs triage to High priority (next release) in clj-kondo Nov 8, 2022
@borkdude borkdude moved this from High priority (next release) to In progress in clj-kondo Dec 7, 2022
borkdude added a commit that referenced this issue Dec 7, 2022
clj-kondo automation moved this from In progress to Done Dec 7, 2022
borkdude added a commit that referenced this issue Dec 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
clj-kondo
  
Done
Development

Successfully merging a pull request may close this issue.

1 participant