Gofmt formats Go programs. We run gofmt -s
on your code, where -s
is for the "simplify" command
No problems detected. Good job!
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!
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.
Golint is a linter for Go source code.
-
github-comment/pkg/comment/mock.go
- Line 10: warning: exported type Mock should have comment or be unexported (golint)
- Line 16: warning: exported method Mock.Create should have comment or be unexported (golint)
- Line 28: warning: exported method Mock.HideComment should have comment or be unexported (golint)
- Line 32: warning: exported method Mock.List should have comment or be unexported (golint)
- Line 36: warning: exported method Mock.GetAuthenticatedUser should have comment or be unexported (golint)
-
github-comment/pkg/config/config.go
- Line 11: warning: exported type Config should have comment or be unexported (golint)
- Line 23: warning: exported type Base should have comment or be unexported (golint)
- Line 28: warning: exported type PostConfig should have comment or be unexported (golint)
- Line 33: warning: exported method PostConfig.UnmarshalYAML should have comment or be unexported (golint)
- Line 62: warning: exported type ExecConfig should have comment or be unexported (golint)
- Line 69: warning: exported type ExistFile should have comment or be unexported (golint)
- Line 71: warning: exported type Reader should have comment or be unexported (golint)
- Line 106: warning: exported method Reader.FindAndRead should have comment or be unexported (golint)
-
github-comment/pkg/api/hide.go
- Line 15: warning: exported type HideController should have comment or be unexported (golint)
- Line 30: warning: exported method HideController.Hide should have comment or be unexported (golint)
- Line 113: warning: exported type ParamListHiddenComments should have comment or be unexported (golint)
-
github-comment/pkg/execute/execute.go
- Line 14: warning: exported type Executor should have comment or be unexported (golint)
- Line 20: warning: exported type Result should have comment or be unexported (golint)
- Line 28: warning: exported type Params should have comment or be unexported (golint)
- Line 34: warning: exported method Executor.Run should have comment or be unexported (golint)
-
github-comment/pkg/config/complement_template.go
- Line 12: warning: exported type ComplementTemplateEntry should have comment or be unexported (golint)
- Line 16: warning: exported method ComplementTemplateEntry.Type should have comment or be unexported (golint)
- Line 20: warning: exported method ComplementTemplateEntry.Entry should have comment or be unexported (golint)
-
github-comment/pkg/api/exec.go
- Line 20: warning: exported type ExecController should have comment or be unexported (golint)
- Line 35: warning: exported method ExecController.Exec should have comment or be unexported (golint)
- Line 117: warning: exported type ExecCommentParams should have comment or be unexported (golint)
- Line 138: warning: exported type Executor should have comment or be unexported (golint)
- Line 142: warning: exported type Expr should have comment or be unexported (golint)
-
github-comment/pkg/api/post.go
- Line 17: warning: exported type PostController should have comment or be unexported (golint)
- Line 34: warning: exported method PostController.Post should have comment or be unexported (golint)
- Line 59: warning: exported type Renderer should have comment or be unexported (golint)
- Line 63: warning: exported type PostTemplateParams should have comment or be unexported (golint)
- Line 76: warning: exported type Platform should have comment or be unexported (golint)
-
github-comment/pkg/comment/comment.go
- Line 17: warning: exported type Comment should have comment or be unexported (golint)
- Line 29: warning: exported type Commenter should have comment or be unexported (golint)
- Line 36: warning: exported function New should have comment or be unexported (golint)
- Line 46: warning: exported type ValidationErrors should have comment or be unexported (golint)
- Line 50: warning: exported type ValidationError should have comment or be unexported (golint)
- Line 82: warning: exported method Commenter.Create should have comment or be unexported (golint)
- Line 101: warning: exported type PullRequest should have comment or be unexported (golint)
- Line 107: warning: comment on exported type IssueComment should be of the form "IssueComment ..." (with optional leading article) (golint)
- Line 192: warning: exported method Commenter.List should have comment or be unexported (golint)
- Line 204: warning: exported method Commenter.GetAuthenticatedUser should have comment or be unexported (golint)
-
github-comment/pkg/expr/expr.go
- Line 10: warning: exported type Expr should have comment or be unexported (golint)
- Line 12: warning: exported method Expr.Match should have comment or be unexported (golint)
- Line 27: warning: exported type Program should have comment or be unexported (golint)
- Line 31: warning: exported method Expr.Compile should have comment or be unexported (golint)
- Line 41: warning: exported type Prog should have comment or be unexported (golint)
- Line 45: warning: exported method Prog.Run should have comment or be unexported (golint)
-
github-comment/pkg/template/template.go
- Line 12: warning: exported type ParamGetTemplates should have comment or be unexported (golint)
- Line 19: warning: exported function GetTemplates should have comment or be unexported (golint)
- Line 56: warning: exported type Renderer should have comment or be unexported (golint)
- Line 71: warning: exported method Renderer.Render should have comment or be unexported (golint)
-
github-comment/pkg/api/init.go
- Line 68: warning: exported type Fsys should have comment or be unexported (golint)
- Line 73: warning: exported type InitController should have comment or be unexported (golint)
- Line 77: warning: exported method InitController.Run should have comment or be unexported (golint)
-
github-comment/pkg/option/post.go
- Line 7: warning: exported type Options should have comment or be unexported (golint)
- Line 41: warning: exported type PostOptions should have comment or be unexported (golint)
- Line 46: warning: exported function ValidatePost should have comment or be unexported (golint)
-
github-comment/pkg/platform/platform.go
- Line 12: warning: exported type Platform should have comment or be unexported (golint)
- Line 107: warning: exported method Platform.ComplementPost should have comment or be unexported (golint)
- Line 111: warning: exported method Platform.ComplementHide should have comment or be unexported (golint)
- Line 115: warning: exported method Platform.CI should have comment or be unexported (golint)
- Line 122: warning: exported method Platform.ComplementExec should have comment or be unexported (golint)
- Line 126: warning: exported function Get should have comment or be unexported (golint)
-
github-comment/pkg/config/complement_envsubst.go
- Line 9: warning: exported type ComplementEnvsubstEntry should have comment or be unexported (golint)
- Line 13: warning: exported method ComplementEnvsubstEntry.Type should have comment or be unexported (golint)
- Line 17: warning: exported method ComplementEnvsubstEntry.Entry should have comment or be unexported (golint)
Checks whether your project has a LICENSE file.
No problems detected. Good job!
IneffAssign detects ineffectual assignments in Go code.
No problems detected. Good job!
Misspell Finds commonly misspelled English words
No problems detected. Good job!