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

Sample Pull Request #24

Closed
wants to merge 1 commit into from
Closed

Sample Pull Request #24

wants to merge 1 commit into from

Conversation

haya14busa
Copy link
Member

No description provided.

@@ -36,6 +40,8 @@ type CheckResult struct {
Lines []string // Original error lines (often one line)
}

var vetError = fmt.Sprintf("", 1, 2, 3) // TODO: revert
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 🐶
no formatting directive in Sprintf call

@@ -21,11 +21,15 @@ type Reviewdog struct {
d DiffService
}

var ExportedVarWithoutComment = 1 // TODO: revert
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 var ExportedVarWithoutComment should have comment or be unexported

Copy link
Member Author

Choose a reason for hiding this comment

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

Nice catch! 🐕

@@ -36,6 +40,8 @@ type CheckResult struct {
Lines []string // Original error lines (often one line)
}

var vetError = fmt.Sprintf("", 1, 2, 3) // TODO: revert
Copy link
Member

Choose a reason for hiding this comment

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

reported by reviewdog 🐶
var vetError is unused

// NewReviewdog returns a new Reviewdog.
func NewReviewdog(toolname string, p Parser, c CommentService, d DiffService) *Reviewdog {
return &Reviewdog{p: p, c: c, d: d, toolname: toolname}
}

var unusedVar = 2 // TODO: revert
Copy link
Member

Choose a reason for hiding this comment

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

reported by reviewdog 🐶
var unusedVar is unused

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.

2 participants