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.
-
kubernetes-resource-builder/pkg/kubernetes/batchv1/job.go
- Line 18: warning: exported type JobSpecOption should have comment or be unexported (golint)
- Line 25: warning: exported function Client should have comment or be unexported (golint)
- Line 45: warning: exported function GetJob should have comment or be unexported (golint)
- Line 61: warning: exported function WithPodSpecOptions should have comment or be unexported (golint)
- Line 67: warning: exported function WithTTL should have comment or be unexported (golint)
- Line 75: warning: exported function WithParallelism should have comment or be unexported (golint)
- Line 83: warning: exported function WithBackoffLimit should have comment or be unexported (golint)
- Line 89: warning: exported function WithAnnotations should have comment or be unexported (golint)
- Line 95: warning: exported function WithLabels should have comment or be unexported (golint)
- Line 101: warning: exported function WithOwnerReference should have comment or be unexported (golint)
-
kubernetes-resource-builder/pkg/transform/kv.go
- Line 10: warning: exported function GetStringMap should have comment or be unexported (golint)
- Line 22: warning: exported function GetKVfromMap should have comment or be unexported (golint)
- Line 38: warning: exported function ConstructMapFromOFPStyleEnvString should have comment or be unexported (golint)
-
kubernetes-resource-builder/pkg/kubernetes/corev1/podspec.go
- Line 9: warning: exported type PodSpecOption should have comment or be unexported (golint)
- Line 11: warning: exported function GetPodSpec should have comment or be unexported (golint)
- Line 20: warning: exported function WithContainerOptions should have comment or be unexported (golint)
- Line 26: warning: exported function WithVolumes should have comment or be unexported (golint)
- Line 37: warning: exported function WithServiceAccount should have comment or be unexported (golint)
- Line 45: warning: exported function WithRestartPolicy should have comment or be unexported (golint)
-
kubernetes-resource-builder/pkg/test/kubernetes/batchv1/job.go
- Line 14: warning: exported function ConstructExpectedJobSpec should have comment or be unexported (golint)
- Line 30: warning: exported function WithPodSpecOptions should have comment or be unexported (golint)
- Line 36: warning: exported function WithTTL should have comment or be unexported (golint)
- Line 44: warning: exported function WithBackoffLimit should have comment or be unexported (golint)
- Line 50: warning: exported function WithAnnotations should have comment or be unexported (golint)
- Line 56: warning: exported function WithLabels should have comment or be unexported (golint)
- Line 62: warning: exported function WithActiveStatus should have comment or be unexported (golint)
-
kubernetes-resource-builder/pkg/test/kubernetes/corev1/containers.go
- Line 12: warning: exported function ConstructExpectedContainerSpec should have comment or be unexported (golint)
- Line 22: warning: exported function WithImage should have comment or be unexported (golint)
- Line 28: warning: exported function WithEnv should have comment or be unexported (golint)
- Line 41: warning: exported function WithEnvFromSecretorCM should have comment or be unexported (golint)
- Line 47: warning: exported function WithVolumeMounts should have comment or be unexported (golint)
- Line 53: warning: exported function WithPort should have comment or be unexported (golint)
- Line 61: warning: exported function WithSecurityContext should have comment or be unexported (golint)
- Line 69: warning: exported function WithName should have comment or be unexported (golint)
- Line 75: warning: exported function WithCommand should have comment or be unexported (golint)
- Line 83: warning: exported function WithImagePullPolicy should have comment or be unexported (golint)
- Line 91: warning: exported function WithResources should have comment or be unexported (golint)
-
kubernetes-resource-builder/pkg/test/kubernetes/corev1/corev1.go
- Line 8: warning: exported function ConstructEnvFrom should have comment or be unexported (golint)
- Line 32: warning: exported function ConstructSecret should have comment or be unexported (golint)
- Line 42: warning: exported function GetSecret should have comment or be unexported (golint)
- Line 52: warning: exported function WithSecretType should have comment or be unexported (golint)
- Line 58: warning: exported function WithSecretAnnotations should have comment or be unexported (golint)
- Line 64: warning: exported function ConstructConfigMap should have comment or be unexported (golint)
- Line 71: warning: exported function ConstructMounts should have comment or be unexported (golint)
- Line 82: warning: exported function ConstructSecretVols should have comment or be unexported (golint)
- Line 96: warning: exported function ConstructCMVols should have comment or be unexported (golint)
- Line 112: warning: exported function ConstructVolumeSources should have comment or be unexported (golint)
- Line 119: warning: exported function ConstructMergedVols should have comment or be unexported (golint)
- Line 126: warning: exported function GetServiceAccount should have comment or be unexported (golint)
- Line 139: warning: exported function GetNS should have comment or be unexported (golint)
-
kubernetes-resource-builder/pkg/test/kubernetes/corev1/podspec.go
- Line 7: warning: exported type ExpectedPodSpecOption should have comment or be unexported (golint)
- Line 9: warning: exported function ConstructExpectedPodSpec should have comment or be unexported (golint)
- Line 19: warning: exported function WithContainerOptions should have comment or be unexported (golint)
- Line 25: warning: exported function WithVolumes should have comment or be unexported (golint)
- Line 31: warning: exported function WithServiceAccount should have comment or be unexported (golint)
- Line 37: warning: exported function WithRestartPolicy 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.
An error occurred while running this test (signal: killed)
Misspell Finds commonly misspelled English words
No problems detected. Good job!