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.
-
paradigm-fn2/config/config.go
- Line 13: warning: exported type Fn2Config should have comment or be unexported (golint)
- Line 18: warning: exported var CONFIG should have comment or be unexported (golint)
- Line 19: warning: exported var HTTP_PORT should have comment or be unexported (golint)
- Line 20: warning: exported var GRPC_PORT should have comment or be unexported (golint)
- Line 21: warning: exported var DEFAULT_CONFIG should have comment or be unexported (golint)
- Line 26: warning: exported function GetConfig should have comment or be unexported (golint)
- Line 71: warning: exported method Fn2Config.SetHost should have comment or be unexported (golint)
- Line 82: warning: exported function GetGrpcEndpoint should have comment or be unexported (golint)
- Line 87: warning: exported function GetHttpServerAddr should have comment or be unexported (golint)
-
paradigm-fn2/api/service/down.go
- Line 13: warning: error var RemoveContainerError should have name of the form ErrFoo (golint)
- Line 13: warning: exported var RemoveContainerError should have comment or be unexported (golint)
- Line 14: warning: error var RemoveImageError should have name of the form ErrFoo (golint)
- Line 17: warning: comment on exported function DoDown should be of the form "DoDown ..." (golint)
-
paradigm-fn2/pkg/utils/utils.go
- Line 176: warning: comment on exported function EnsurerDir should be of the form "EnsurerDir ..." (golint)
- Line 185: warning: exported function EnsureFile should have comment or be unexported (golint)
- Line 274: warning: exported function HandleError should have comment or be unexported (golint)
- Line 291: warning: comment on exported function GetLangFromFileName should be of the form "GetLangFromFileName ..." (golint)
- Line 318: warning: exported function OutputJSON should have comment or be unexported (golint)
-
paradigm-fn2/pkg/server/server.go
- Line 13: warning: exported type Fn2 should have comment or be unexported (golint)
- Line 18: warning: exported function NewFn2ServiceServer should have comment or be unexported (golint)
- Line 32: warning: exported method Fn2.Start should have comment or be unexported (golint)
- Line 36: warning: exported method Fn2.Stop should have comment or be unexported (golint)
- Line 44: warning: exported method Fn2.Call should have comment or be unexported (golint)
- Line 48: warning: exported method Fn2.Up should have comment or be unexported (golint)
- Line 52: warning: exported method Fn2.Down should have comment or be unexported (golint)
- Line 56: warning: exported method Fn2.List should have comment or be unexported (golint)
- Line 60: warning: exported method Fn2.Ping should have comment or be unexported (golint)
Checks whether your project has a LICENSE file.
IneffAssign detects ineffectual assignments in Go code.
No problems detected. Good job!
Misspell Finds commonly misspelled English words
No problems detected. Good job!