-
-
Notifications
You must be signed in to change notification settings - Fork 457
refactor: create parser package #690
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
Conversation
haya14busa
commented
Jul 25, 2020
- Updated Unreleased section in CHANGELOG or it's not notable changes.
return &CheckStyleParser{} | ||
} | ||
|
||
func (p *CheckStyleParser) Parse(r io.Reader) ([]*rdf.Diagnostic, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[golint-circleci] reported by reviewdog 🐶
exported method CheckStyleParser.Parse should have comment or be unexported
return NewErrorformatParser(efm), nil | ||
} | ||
|
||
func (p *ErrorformatParser) Parse(r io.Reader) ([]*rdf.Diagnostic, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[golint-circleci] reported by reviewdog 🐶
exported method ErrorformatParser.Parse should have comment or be unexported
parser/parser.go
Outdated
|
||
// ParserOpt represents option to create Parser. Either FormatName or | ||
// Errorformat should be specified. | ||
type ParserOpt struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[golint-circleci] reported by reviewdog 🐶
type name will be used as parser.ParserOpt by other packages, and that stutters; consider calling this Opt
// RDJSONLParser is parser for rdjsonl format. | ||
type RDJSONLParser struct{} | ||
|
||
func NewRDJSONLParser() *RDJSONLParser { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[golint-circleci] reported by reviewdog 🐶
exported function NewRDJSONLParser should have comment or be unexported
return &RDJSONLParser{} | ||
} | ||
|
||
func (p *RDJSONLParser) Parse(r io.Reader) ([]*rdf.Diagnostic, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[golint-circleci] reported by reviewdog 🐶
exported method RDJSONLParser.Parse should have comment or be unexported
return &CheckStyleParser{} | ||
} | ||
|
||
func (p *CheckStyleParser) Parse(r io.Reader) ([]*rdf.Diagnostic, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[golint-pr-review] reported by reviewdog 🐶
exported method CheckStyleParser.Parse should have comment or be unexported
return NewErrorformatParser(efm), nil | ||
} | ||
|
||
func (p *ErrorformatParser) Parse(r io.Reader) ([]*rdf.Diagnostic, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[golint-pr-review] reported by reviewdog 🐶
exported method ErrorformatParser.Parse should have comment or be unexported
parser/parser.go
Outdated
|
||
// ParserOpt represents option to create Parser. Either FormatName or | ||
// Errorformat should be specified. | ||
type ParserOpt struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[golint-pr-review] reported by reviewdog 🐶
type name will be used as parser.ParserOpt by other packages, and that stutters; consider calling this Opt
// RDJSONLParser is parser for rdjsonl format. | ||
type RDJSONLParser struct{} | ||
|
||
func NewRDJSONLParser() *RDJSONLParser { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[golint-pr-review] reported by reviewdog 🐶
exported function NewRDJSONLParser should have comment or be unexported
return &RDJSONLParser{} | ||
} | ||
|
||
func (p *RDJSONLParser) Parse(r io.Reader) ([]*rdf.Diagnostic, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[golint-pr-review] reported by reviewdog 🐶
exported method RDJSONLParser.Parse should have comment or be unexported