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.
-
go-infrabin/pkg/infrabin/grpc.go
- Line 16: warning: comment on exported type GRPCServer should be of the form "GRPCServer ..." (with optional leading article) (golint)
- Line 42: warning: exported method GRPCServer.Shutdown should have comment or be unexported (golint)
- Line 67: warning: comment on exported function NewGRPCServer should be of the form "NewGRPCServer ..." (golint)
-
go-infrabin/pkg/infrabin/http.go
- Line 16: warning: exported type HTTPServer should have comment or be unexported (golint)
- Line 21: warning: exported type HTTPServerOption should have comment or be unexported (golint)
- Line 23: warning: exported function RegisterInfrabin should have comment or be unexported (golint)
- Line 40: warning: exported function RegisterHandler should have comment or be unexported (golint)
- Line 49: warning: exported method HTTPServer.ListenAndServe should have comment or be unexported (golint)
- Line 59: warning: exported method HTTPServer.Shutdown should have comment or be unexported (golint)
- Line 72: warning: exported function NewHTTPServer should have comment or be unexported (golint)
- Line 113: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
-
go-infrabin/pkg/infrabin/infrabin.go
- Line 24: warning: comment on exported type InfrabinService should be of the form "InfrabinService ..." (with optional leading article) (golint)
- Line 29: warning: exported method InfrabinService.Root should have comment or be unexported (golint)
- Line 33: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
- Line 51: warning: exported method InfrabinService.Delay should have comment or be unexported (golint)
- Line 61: warning: exported method InfrabinService.Env should have comment or be unexported (golint)
- Line 65: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
- Line 70: warning: exported method InfrabinService.Headers should have comment or be unexported (golint)
- Line 81: warning: exported method InfrabinService.Proxy should have comment or be unexported (golint)
- Line 124: warning: exported method InfrabinService.AWS should have comment or be unexported (golint)
-
go-infrabin/pkg/infrabin/config.go
- Line 11: warning: exported const AppName should have comment (or a comment on this block) or be unexported (golint)
- Line 29: warning: exported var DefaultConfigPaths 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!