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

Refactor comment writer #51

Merged
merged 10 commits into from
Dec 12, 2016
Merged

Refactor comment writer #51

merged 10 commits into from
Dec 12, 2016

Conversation

haya14busa
Copy link
Member

ref: #47

w io.Writer
}

func NewUnifiedCommentWriter(w io.Writer) *UnifiedCommentWriter {
Copy link
Member

Choose a reason for hiding this comment

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

[golint] reported by reviewdog 🐶
exported function NewUnifiedCommentWriter should have comment or be unexported

w io.Writer
}

func NewCommentWriter(w io.Writer) *CommentWriter {
return &CommentWriter{w: w}
func NewRawCommentWriter(w io.Writer) *RawCommentWriter {
Copy link
Member

Choose a reason for hiding this comment

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

[golint] reported by reviewdog 🐶
exported function NewRawCommentWriter should have comment or be unexported

}

func (s *CommentWriter) Post(c *Comment) error {
func (s *RawCommentWriter) Post(c *Comment) error {
Copy link
Member

Choose a reason for hiding this comment

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

[golint] reported by reviewdog 🐶
exported method RawCommentWriter.Post should have comment or be unexported

return &UnifiedCommentWriter{w: w}
}

func (mc *UnifiedCommentWriter) Post(c *Comment) error {
Copy link
Member

Choose a reason for hiding this comment

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

[golint] reported by reviewdog 🐶
exported method UnifiedCommentWriter.Post should have comment or be unexported

@@ -84,6 +91,9 @@ func (w *Reviewdog) Run(r io.Reader) error {
return err
}

if bulk, ok := w.c.(BulkCommentService); ok {
defer bulk.Flash()
Copy link
Member

Choose a reason for hiding this comment

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

[errcheck] reported by reviewdog 🐶
defer bulk.Flash()

@codecov-io
Copy link

codecov-io commented Dec 12, 2016

Current coverage is 77.47% (diff: 81.81%)

Merging #51 into master will increase coverage by 8.05%

@@             master        #51   diff @@
==========================================
  Files             8          9     +1   
  Lines           641        666    +25   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits            445        516    +71   
+ Misses          164        106    -58   
- Partials         32         44    +12   

Powered by Codecov. Last update b0e1360...6fc207e

want := `<sub>reported by [reviewdog](https://github.com/haya14busa/reviewdog) :dog:</sub>
[reviewdog] test`
if body != want {
t.Error("body: got %v, want %v", body, want)
Copy link
Member

Choose a reason for hiding this comment

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

[govet] reported by reviewdog 🐶
possible formatting directive in Error call

@haya14busa haya14busa merged commit d286d5d into master Dec 12, 2016
@haya14busa haya14busa deleted the project-run2 branch December 12, 2016 15:11
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.

None yet

3 participants