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.
No problems detected. Good job!
Golint is a linter for Go source code.
-
git-webhook-api/src/config.go
- Line 8: warning: exported type Config should have comment or be unexported (golint)
- Line 9: warning: don't use underscores in Go names; struct field Fd_Token should be FdToken (golint)
- Line 10: warning: don't use underscores in Go names; struct field Github_Login should be GithubLogin (golint)
- Line 11: warning: don't use underscores in Go names; struct field Github_Password should be GithubPassword (golint)
- Line 12: warning: don't use underscores in Go names; struct field Users_Git_Flow should be UsersGitFlow (golint)
-
git-webhook-api/src/github.go
- Line 10: warning: exported type ApiResponse should have comment or be unexported (golint)
- Line 13: warning: don't use underscores in Go names; struct field Pull_Request should be PullRequest (golint)
- Line 16: warning: exported type PullRequest should have comment or be unexported (golint)
- Line 17: warning: don't use underscores in Go names; struct field Html_Url should be HTMLURL (golint)
- Line 42: warning: exported type Repository should have comment or be unexported (golint)
- Line 61: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
-
git-webhook-api/src/user.go
- Line 8: warning: exported type Reviewer should have comment or be unexported (golint)
- Line 13: warning: exported type User should have comment or be unexported (golint)
- Line 22: warning: don't use underscores in Go names; var count_elements should be countElements (golint)
Checks whether your project has a LICENSE file.
No problems detected. Good job!
IneffAssign detects ineffectual assignments in Go code.
Misspell Finds commonly misspelled English words
No problems detected. Good job!