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.
-
concourse-k8s-resource/pkg/models/types.go
- Line 3: warning: comment on exported type CheckRequest should be of the form "CheckRequest ..." (with optional leading article) (golint)
- Line 11: warning: comment on exported type InRequest should be of the form "InRequest ..." (with optional leading article) (golint)
- Line 21: warning: comment on exported type InResponse should be of the form "InResponse ..." (with optional leading article) (golint)
- Line 29: warning: comment on exported type InParams should be of the form "InParams ..." (with optional leading article) (golint)
- Line 33: warning: comment on exported type OutRequest should be of the form "OutRequest ..." (with optional leading article) (golint)
- Line 41: warning: comment on exported type OutResponse should be of the form "OutResponse ..." (with optional leading article) (golint)
- Line 49: warning: comment on exported type OutParams should be of the form "OutParams ..." (with optional leading article) (golint)
- Line 69: warning: comment on exported type Metadata should be of the form "Metadata ..." (with optional leading article) (golint)
- Line 77: warning: comment on exported type Version should be of the form "Version ..." (with optional leading article) (golint)
- Line 83: warning: comment on exported type Source should be of the form "Source ..." (with optional leading article) (golint)
- Line 107: warning: comment on exported type WatchResource should be of the form "WatchResource ..." (with optional leading article) (golint)
-
concourse-k8s-resource/pkg/k8s/kubectl/runner.go
- Line 16: warning: exported type CommandConfig should have comment or be unexported (golint)
- Line 26: warning: exported type Command should have comment or be unexported (golint)
- Line 31: warning: exported type CommandFactory should have comment or be unexported (golint)
- Line 35: warning: exported function RunCommand should have comment or be unexported (golint)
- Line 56: warning: exported function NewCommandFactory should have comment or be unexported (golint)
-
concourse-k8s-resource/pkg/k8s/metadata_reader.go
- Line 11: warning: exported type MetadataReader should have comment or be unexported (golint)
- Line 16: warning: exported type DeploymentReader should have comment or be unexported (golint)
- Line 22: warning: exported function NewDeploymentReader should have comment or be unexported (golint)
- Line 30: warning: exported method DeploymentReader.GetRevision should have comment or be unexported (golint)
- Line 34: warning: exported method DeploymentReader.GetObjectMeta should have comment or be unexported (golint)
- Line 38: warning: exported type StatefulSetReader should have comment or be unexported (golint)
- Line 45: warning: exported function NewStatefulSetReader should have comment or be unexported (golint)
- Line 57: warning: exported method StatefulSetReader.GetRevision should have comment or be unexported (golint)
- Line 61: warning: exported method StatefulSetReader.GetObjectMeta 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!