Preparing report...

Report for github.com/foomo/squadron

A    Great!    Found 15 issues across 27 files

Tweet

gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


go_vet100%

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!


gocyclo100%

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!


golint48%

Golint is a linter for Go source code.

    • squadron/squadron.go
    • Line 29: warning: exported type Configuration should have comment or be unexported (golint)
    • Line 38: warning: exported type Squadron should have comment or be unexported (golint)
    • Line 47: warning: exported function New should have comment or be unexported (golint)
    • Line 57: warning: exported method Squadron.GetConfig should have comment or be unexported (golint)
    • Line 61: warning: exported method Squadron.GetConfigYAML should have comment or be unexported (golint)
    • Line 65: warning: exported method Squadron.MergeConfigFiles should have comment or be unexported (golint)
    • Line 85: warning: exported method Squadron.RenderConfig should have comment or be unexported (golint)
    • Line 121: warning: exported method Squadron.Generate should have comment or be unexported (golint)
    • Line 148: warning: exported method Squadron.Package should have comment or be unexported (golint)
    • Line 154: warning: exported method Squadron.Down should have comment or be unexported (golint)
    • Line 183: warning: exported method Squadron.Diff should have comment or be unexported (golint)
    • Line 222: warning: exported method Squadron.Up should have comment or be unexported (golint)
    • Line 269: warning: exported method Squadron.Template should have comment or be unexported (golint)
    • squadron/util/cmd.go
    • Line 13: warning: exported type Cmd should have comment or be unexported (golint)
    • Line 28: warning: exported function NewCommand should have comment or be unexported (golint)
    • Line 36: warning: exported method Cmd.Base should have comment or be unexported (golint)
    • Line 41: warning: exported method Cmd.Command should have comment or be unexported (golint)
    • Line 45: warning: exported method Cmd.Args should have comment or be unexported (golint)
    • Line 55: warning: exported method Cmd.Arg should have comment or be unexported (golint)
    • Line 63: warning: exported method Cmd.ListArg should have comment or be unexported (golint)
    • Line 76: warning: exported method Cmd.Cwd should have comment or be unexported (golint)
    • Line 81: warning: exported method Cmd.Env should have comment or be unexported (golint)
    • Line 86: warning: exported method Cmd.Stdin should have comment or be unexported (golint)
    • Line 91: warning: exported method Cmd.Stdout should have comment or be unexported (golint)
    • Line 99: warning: exported method Cmd.Stderr should have comment or be unexported (golint)
    • Line 107: warning: exported method Cmd.Timeout should have comment or be unexported (golint)
    • Line 112: warning: exported method Cmd.NoWait should have comment or be unexported (golint)
    • Line 117: warning: exported method Cmd.PreStart should have comment or be unexported (golint)
    • Line 122: warning: exported method Cmd.PostStart should have comment or be unexported (golint)
    • Line 127: warning: exported method Cmd.PostEnd should have comment or be unexported (golint)
    • Line 132: warning: exported method Cmd.Run should have comment or be unexported (golint)
    • squadron/util/helm.go
    • Line 3: warning: exported type HelmCmd should have comment or be unexported (golint)
    • Line 7: warning: exported function NewHelmCommand should have comment or be unexported (golint)
    • Line 11: warning: exported method HelmCmd.UpdateDependency should have comment or be unexported (golint)
    • Line 15: warning: exported method HelmCmd.Package should have comment or be unexported (golint)
    • squadron/util/misc.go
    • Line 11: warning: exported function GenerateYaml should have comment or be unexported (golint)
    • Line 29: warning: exported function ValidatePath should have comment or be unexported (golint)
    • squadron/chart.go
    • Line 13: warning: exported type ChartDependency should have comment or be unexported (golint)
    • Line 20: warning: exported method ChartDependency.UnmarshalYAML should have comment or be unexported (golint)
    • Line 41: warning: exported type Chart should have comment or be unexported (golint)
    • squadron/util/docker.go
    • Line 7: warning: exported type DockerCmd should have comment or be unexported (golint)
    • Line 12: warning: exported function NewDockerCommand should have comment or be unexported (golint)
    • Line 16: warning: exported method DockerCmd.Build should have comment or be unexported (golint)
    • Line 20: warning: exported method DockerCmd.Push should have comment or be unexported (golint)
    • squadron/util/go.go
    • Line 8: warning: exported type GoCmd should have comment or be unexported (golint)
    • Line 12: warning: exported function NewGoCommand should have comment or be unexported (golint)
    • Line 16: warning: exported method GoCmd.Build should have comment or be unexported (golint)
    • squadron/util/kube.go
    • Line 12: warning: exported type KubeCmd should have comment or be unexported (golint)
    • Line 16: warning: exported function NewKubeCommand should have comment or be unexported (golint)
    • Line 20: warning: exported method KubeCmd.RollbackDeployment should have comment or be unexported (golint)
    • Line 24: warning: exported method KubeCmd.WaitForRollout should have comment or be unexported (golint)
    • Line 29: warning: exported method KubeCmd.GetMostRecentPodBySelectors should have comment or be unexported (golint)
    • Line 50: warning: exported method KubeCmd.WaitForPodState should have comment or be unexported (golint)
    • Line 56: warning: exported method KubeCmd.ExecShell should have comment or be unexported (golint)
    • Line 63: warning: exported method KubeCmd.PatchDeployment should have comment or be unexported (golint)
    • Line 67: warning: exported method KubeCmd.CopyToPod should have comment or be unexported (golint)
    • Line 71: warning: exported method KubeCmd.ExecPod should have comment or be unexported (golint)
    • Line 75: warning: exported method KubeCmd.ExposePod should have comment or be unexported (golint)
    • Line 83: warning: exported method KubeCmd.DeleteService should have comment or be unexported (golint)
    • Line 87: warning: exported method KubeCmd.GetDeployment should have comment or be unexported (golint)
    • Line 99: warning: exported method KubeCmd.GetNamespaces should have comment or be unexported (golint)
    • Line 107: warning: exported method KubeCmd.GetDeployments should have comment or be unexported (golint)
    • Line 115: warning: exported method KubeCmd.GetPods should have comment or be unexported (golint)
    • Line 129: warning: exported method KubeCmd.GetContainers should have comment or be unexported (golint)
    • Line 137: warning: exported method KubeCmd.GetPodsByLabels should have comment or be unexported (golint)
    • Line 145: warning: exported method KubeCmd.RestartDeployment should have comment or be unexported (golint)
    • Line 149: warning: exported method KubeCmd.CreateConfigMapFromFile should have comment or be unexported (golint)
    • Line 153: warning: exported method KubeCmd.CreateConfigMap should have comment or be unexported (golint)
    • Line 161: warning: exported method KubeCmd.DeleteConfigMap should have comment or be unexported (golint)
    • Line 165: warning: exported method KubeCmd.GetConfigMapKey should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!