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

Implement KnownFragmentNames validator #16

Merged
merged 1 commit into from
Jul 11, 2018

Conversation

vvakame
Copy link
Collaborator

@vvakame vvakame commented Jul 11, 2018

No description provided.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.04%) to 88.027% when pulling 5103e3e on vvakame:feat-knownfragmentnames into d98b18b on vektah:master.

return
}

message := fmt.Sprintf(`Unknown fragment "%s".`, fragmentSpread.Name)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Message works as sprintf, so you can inline these

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wow, nice.
I think we should use Messagef instead of Message.
https://golang.org/cmd/vet/#hdr-Printf_family

@vektah vektah merged commit fb3fc1d into vektah:master Jul 11, 2018
@vvakame vvakame deleted the feat-knownfragmentnames branch July 11, 2018 07:14
StevenACoffman pushed a commit that referenced this pull request Jan 31, 2022
fix(Parser): Add directive argument validator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants