Preparing report...

Report for github.com/haya14busa/reviewdog

A+    Excellent!    Found 22 issues across 93 files

Tweet

gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


gocyclo94%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.


golint81%

Golint is a linter for Go source code.

    • reviewdog/service/github/githubutils/comment_writer.go
    • Line 14: warning: exported const MaxLoggingAnnotationsPerStep should have comment or be unexported (golint)
    • Line 31: warning: exported method GitHubActionLogWriter.Post should have comment or be unexported (golint)
    • Line 82: warning: exported function WarnTooManyAnnotationOnce should have comment or be unexported (golint)
    • reviewdog/cienv/github_actions.go
    • Line 9: warning: comment on exported type GitHubEvent should be of the form "GitHubEvent ..." (with optional leading article) (golint)
    • Line 28: warning: exported type GitHubRepo should have comment or be unexported (golint)
    • Line 34: warning: exported type GitHubPullRequest should have comment or be unexported (golint)
    • reviewdog/comment_iowriter.go
    • Line 17: warning: exported function NewRawCommentWriter should have comment or be unexported (golint)
    • Line 21: warning: exported method RawCommentWriter.Post should have comment or be unexported (golint)
    • Line 40: warning: exported function NewUnifiedCommentWriter should have comment or be unexported (golint)
    • Line 44: warning: exported method UnifiedCommentWriter.Post should have comment or be unexported (golint)
    • reviewdog/resultmap.go
    • Line 17: warning: exported type Result should have comment or be unexported (golint)
    • Line 77: warning: exported type FilteredResult should have comment or be unexported (golint)
    • reviewdog/diff.go
    • Line 11: warning: exported type DiffString should have comment or be unexported (golint)
    • Line 16: warning: exported function NewDiffString should have comment or be unexported (golint)
    • Line 20: warning: exported method DiffString.Diff should have comment or be unexported (golint)
    • Line 24: warning: exported method DiffString.Strip should have comment or be unexported (golint)
    • Line 30: warning: exported type DiffCmd should have comment or be unexported (golint)
    • Line 38: warning: exported function NewDiffCmd should have comment or be unexported (golint)
    • Line 60: warning: exported method DiffCmd.Strip should have comment or be unexported (golint)
    • Line 67: warning: exported method EmptyDiff.Diff should have comment or be unexported (golint)
    • Line 71: warning: exported method EmptyDiff.Strip should have comment or be unexported (golint)
    • reviewdog/doghouse/server/doghouse.go
    • Line 33: warning: exported type Checker should have comment or be unexported (golint)
    • Line 38: warning: exported function NewChecker should have comment or be unexported (golint)
    • Line 42: warning: exported method Checker.Check should have comment or be unexported (golint)
    • reviewdog/doghouse/appengine/github.go
    • Line 26: warning: exported type GitHubHandler should have comment or be unexported (golint)
    • Line 40: warning: exported function NewGitHubHandler should have comment or be unexported (golint)
    • Line 103: warning: exported method GitHubHandler.HandleAuthCallback should have comment or be unexported (golint)
    • Line 140: warning: exported method GitHubHandler.HandleLogout should have comment or be unexported (golint)
    • Line 145: warning: exported method GitHubHandler.LogInHandler should have comment or be unexported (golint)
    • Line 222: warning: exported method GitHubHandler.HandleGitHubTop should have comment or be unexported (golint)
    • Line 376: warning: exported function NewAuthClient should have comment or be unexported (golint)
    • reviewdog/doghouse/server/token.go
    • Line 12: warning: exported function GenerateRepositoryToken should have comment or be unexported (golint)
    • Line 22: warning: exported function GetOrGenerateRepoToken should have comment or be unexported (golint)
    • Line 35: warning: exported function RegenerateRepoToken should have comment or be unexported (golint)
    • reviewdog/doghouse/appengine/github_webhook.go
    • Line 89: warning: comment on exported type InstallationEvent should be of the form "InstallationEvent ..." (with optional leading article) (golint)
    • Line 101: warning: comment on exported type CheckSuiteEvent should be of the form "CheckSuiteEvent ..." (with optional leading article) (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!