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

False positive with no unused variable rule #61

Closed
jbttn opened this issue Jul 20, 2020 · 3 comments · Fixed by #133
Closed

False positive with no unused variable rule #61

jbttn opened this issue Jul 20, 2020 · 3 comments · Fixed by #133
Labels

Comments

@jbttn
Copy link
Contributor

jbttn commented Jul 20, 2020

Variables contained within objects are not detected by the "no unused variable" rule:

query Foo($a: String) {
  field(object: { a: $a })
}

"Variable "$a" is never used in operation "Foo"."

@paulofaria paulofaria added the bug label Aug 26, 2020
@kumararvind
Copy link

kumararvind commented Jun 7, 2021

Any update on this, I am also facing similar issue with swift Graphiti Library.

@kumararvind
Copy link

Commented NoUnusedVariablesRule to fix nested variable issue

#85

@paulofaria please check and update if it work, I have verified it is working fine.

@kumararvind
Copy link

@paulofaria , Could you please review PR

NeedleInAJayStack added a commit to NeedleInAJayStack/GraphQL that referenced this issue Nov 6, 2023
NeedleInAJayStack added a commit to NeedleInAJayStack/GraphQL that referenced this issue Nov 6, 2023
NeedleInAJayStack added a commit to NeedleInAJayStack/GraphQL that referenced this issue Nov 6, 2023
NeedleInAJayStack added a commit to NeedleInAJayStack/GraphQL that referenced this issue Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants