Preparing report...

Report for github.com/commitdev/zero

A+    Excellent!    Found 19 issues across 38 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!


golint55%

Golint is a linter for Go source code.

    • zero/internal/config/moduleconfig/module_config.go
    • Line 21: warning: exported type ModuleConfig should have comment or be unexported (golint)
    • Line 34: warning: exported type ModuleCommands should have comment or be unexported (golint)
    • Line 67: warning: exported type Parameter should have comment or be unexported (golint)
    • Line 82: warning: exported type Condition should have comment or be unexported (golint)
    • Line 89: warning: exported type Validate should have comment or be unexported (golint)
    • Line 95: warning: exported type TemplateConfig should have comment or be unexported (golint)
    • Line 102: warning: exported type VersionConstraints should have comment or be unexported (golint)
    • Line 129: warning: exported function LoadModuleConfig should have comment or be unexported (golint)
    • Line 158: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • zero/internal/init/prompts.go
    • Line 27: warning: exported type PromptHandler should have comment or be unexported (golint)
    • Line 33: warning: exported type CredentialPrompts should have comment or be unexported (golint)
    • Line 38: warning: exported type CustomConditionSignature should have comment or be unexported (golint)
    • Line 40: warning: exported function NoCondition should have comment or be unexported (golint)
    • Line 44: warning: exported function KeyMatchCondition should have comment or be unexported (golint)
    • Line 50: warning: exported function CustomCondition should have comment or be unexported (golint)
    • Line 56: warning: exported function NoValidation should have comment or be unexported (golint)
    • Line 60: warning: exported function SpecificValueValidation should have comment or be unexported (golint)
    • Line 71: warning: exported function ValidateAKID should have comment or be unexported (golint)
    • Line 80: warning: exported function ValidateSAK should have comment or be unexported (golint)
    • Line 144: warning: error should be the last type when returning multiple items (golint)
    • Line 271: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 288: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • zero/internal/module/module.go
    • Line 44: warning: comment on exported function GetSourceDir should be of the form "GetSourceDir ..." (golint)
    • Line 51: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • zero/internal/apply/apply.go
    • Line 24: warning: exported function Apply should have comment or be unexported (golint)
    • Line 48: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 61: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 69: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 121: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 124: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • zero/internal/registry/registry.go
    • Line 3: warning: exported type Registry should have comment or be unexported (golint)
    • Line 4: warning: exported type Stack should have comment or be unexported (golint)
    • Line 9: warning: exported function GetRegistry should have comment or be unexported (golint)
    • Line 36: warning: exported function GetModulesByName should have comment or be unexported (golint)
    • Line 45: warning: exported function AvailableLabels should have comment or be unexported (golint)
    • zero/pkg/util/flog/log.go
    • Line 12: warning: exported const LogEnvVariable should have comment or be unexported (golint)
    • Line 36: warning: comment on exported function Infof should be of the form "Infof ..." (golint)
    • Line 42: warning: exported function Debugf should have comment or be unexported (golint)
    • Line 47: warning: comment on exported function Guidef should be of the form "Guidef ..." (golint)
    • Line 62: warning: comment on exported function Errorf should be of the form "Errorf ..." (golint)
    • Line 67: warning: comment on exported type InfoFormatter should be of the form "InfoFormatter ..." (with optional leading article) (golint)
    • Line 71: warning: exported method InfoFormatter.Format should have comment or be unexported (golint)
    • zero/internal/config/projectconfig/project_config.go
    • Line 17: warning: exported type ZeroProjectConfig should have comment or be unexported (golint)
    • Line 24: warning: exported type Modules should have comment or be unexported (golint)
    • Line 26: warning: exported type Module should have comment or be unexported (golint)
    • Line 36: warning: error should be the last type when returning multiple items (golint)
    • Line 51: warning: exported type Parameters should have comment or be unexported (golint)
    • Line 53: warning: exported type Condition should have comment or be unexported (golint)
    • Line 60: warning: exported type Files should have comment or be unexported (golint)
    • Line 66: warning: exported function LoadConfig should have comment or be unexported (golint)
    • Line 80: warning: exported method ZeroProjectConfig.Print should have comment or be unexported (golint)
    • Line 107: warning: exported function NewModule should have comment or be unexported (golint)
    • zero/internal/util/util.go
    • Line 25: warning: exported function CreateDirIfDoesNotExist should have comment or be unexported (golint)
    • Line 33: warning: exported function CleanGoIdentifier should have comment or be unexported (golint)
    • Line 37: warning: comment on exported var FuncMap should be of the form "FuncMap ..." (golint)
    • Line 45: warning: exported function GetCwd should have comment or be unexported (golint)
    • Line 55: warning: exported function ExecuteCommand should have comment or be unexported (golint)
    • Line 169: warning: exported function ItemInSlice should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign92%

IneffAssign detects ineffectual assignments in Go code.


misspell94%

Misspell Finds commonly misspelled English words