Skip to content

Implement KnownFragmentNames validator#16

Merged
vektah merged 1 commit into
vektah:masterfrom
vvakame:feat-knownfragmentnames
Jul 11, 2018
Merged

Implement KnownFragmentNames validator#16
vektah merged 1 commit into
vektah:masterfrom
vvakame:feat-knownfragmentnames

Conversation

@vvakame

@vvakame vvakame commented Jul 11, 2018

Copy link
Copy Markdown
Collaborator

No description provided.

@coveralls

Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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