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.
-
blackbean/cmd/root.go
- Line 17: warning: exported var Cluster should have comment or be unexported (golint)
- Line 20: warning: exported function NewRootCmd should have comment or be unexported (golint)
- Line 62: warning: exported function InitConfig should have comment or be unexported (golint)
-
blackbean/cmd/settings.go
- Line 16: warning: exported type Settings should have comment or be unexported (golint)
- Line 83: warning: exported method Settings.WithAllocationSettings should have comment or be unexported (golint)
- Line 116: warning: exported method Settings.WithBreakerFielddata should have comment or be unexported (golint)
- Line 138: warning: exported method Settings.WithBreakerRequest should have comment or be unexported (golint)
- Line 160: warning: exported method Settings.WithBreakerTotal should have comment or be unexported (golint)
- Line 182: warning: exported method Settings.WithWatermark should have comment or be unexported (golint)
- Line 210: warning: exported method Settings.WithRecovery should have comment or be unexported (golint)
- Line 229: warning: exported method Settings.WithMaxShardsPerNode should have comment or be unexported (golint)
- Line 244: warning: exported method Settings.WithMaxCompilationsRate should have comment or be unexported (golint)
- Line 254: warning: exported function NewSettings should have comment or be unexported (golint)
- Line 339: warning: exported type PutObject should have comment or be unexported (golint)
-
blackbean/pkg/fake/fake.go
- Line 9: warning: exported type MockEsResponse should have comment or be unexported (golint)
- Line 13: warning: exported method MockEsResponse.RoundTrip should have comment or be unexported (golint)
-
blackbean/pkg/es/client.go
- Line 14: warning: error var NoClusterErr should have name of the form ErrFoo (golint)
- Line 14: warning: exported var NoClusterErr should have comment or be unexported (golint)
- Line 15: warning: error var YamFormatErr should have name of the form ErrFoo (golint)
- Line 16: warning: error var NoEnvErr should have name of the form ErrFoo (golint)
- Line 17: warning: error var NoUserErr should have name of the form ErrFoo (golint)
- Line 18: warning: error var NoPwdErr should have name of the form ErrFoo (golint)
- Line 19: warning: error var NoUrlErr should have name of the form ErrFoo (golint)
- Line 22: warning: exported function GetEnv should have comment or be unexported (golint)
- Line 61: warning: exported function NewEsClient should have comment or be unexported (golint)
- Line 77: warning: exported function CompleteConfigEnv should have comment or be unexported (golint)
- Line 91: warning: exported function NoResourcesError should have comment or be unexported (golint)
- Line 92: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (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!