Preparing report...

Report for github.com/SchwarzIT/go-template

A+    Excellent!    Found 9 issues across 21 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!


golint57%

Golint is a linter for Go source code.

    • go-template/pkg/repos/releasetag.go
    • Line 10: warning: exported var ErrNoTagsAvailable should have comment or be unexported (golint)
    • Line 12: warning: exported type GithubTagLister should have comment or be unexported (golint)
    • Line 16: warning: exported type GithubTagListerFunc should have comment or be unexported (golint)
    • Line 18: warning: exported method GithubTagListerFunc.ListTags should have comment or be unexported (golint)
    • go-template/config/version.go
    • Line 4: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 11: warning: exported var Version should have comment or be unexported (golint)
    • go-template/pkg/gotemplate/new.go
    • Line 22: warning: exported var ErrAlreadyExists should have comment or be unexported (golint)
    • Line 28: warning: exported type ErrTypeMismatch should have comment or be unexported (golint)
    • Line 37: warning: exported type NewRepositoryOptions should have comment or be unexported (golint)
    • Line 127: warning: exported method GT.LoadConfigValuesInteractively should have comment or be unexported (golint)
    • Line 174: warning: exported method GT.InitNewProject should have comment or be unexported (golint)
    • go-template/pkg/gotemplate/gt.go
    • Line 16: warning: exported type GT should have comment or be unexported (golint)
    • Line 23: warning: exported type Streams should have comment or be unexported (golint)
    • Line 29: warning: exported function New should have comment or be unexported (golint)
    • go-template/pkg/gotemplate/options.go
    • Line 18: warning: exported type ErrOutOfRange should have comment or be unexported (golint)
    • Line 28: warning: comment on exported type ErrInvalidPattern should be of the form "ErrInvalidPattern ..." (with optional leading article) (golint)
    • Line 50: warning: exported method ValidatorFunc.Validate should have comment or be unexported (golint)
    • Line 78: warning: exported type PostHookFunc should have comment or be unexported (golint)
    • Line 80: warning: exported function NewOption should have comment or be unexported (golint)
    • Line 94: warning: exported type NewOptionOption should have comment or be unexported (golint)
    • Line 96: warning: exported function WithValidator should have comment or be unexported (golint)
    • Line 102: warning: exported function WithShouldDisplay should have comment or be unexported (golint)
    • Line 108: warning: exported function WithPosthook should have comment or be unexported (golint)
    • Line 114: warning: exported method Option.Name should have comment or be unexported (golint)
    • Line 118: warning: exported method Option.Description should have comment or be unexported (golint)
    • Line 181: warning: exported function NewOptionValues should have comment or be unexported (golint)
    • Line 188: warning: exported type OptionNameToValue should have comment or be unexported (golint)
    • go-template/pkg/gotemplate/valuer.go
    • Line 12: warning: exported type Valuer should have comment or be unexported (golint)
    • Line 15: warning: exported type Value should have comment or be unexported (golint)
    • Line 19: warning: exported function StaticValue should have comment or be unexported (golint)
    • Line 23: warning: exported method Value.Value should have comment or be unexported (golint)
    • Line 27: warning: comment on exported type DynamicValue should be of the form "DynamicValue ..." (with optional leading article) (golint)
    • Line 30: warning: exported method DynamicValue.Value should have comment or be unexported (golint)
    • Line 34: warning: exported type BoolValuer should have comment or be unexported (golint)
    • Line 37: warning: exported type BoolValue should have comment or be unexported (golint)
    • Line 39: warning: exported method BoolValue.Value should have comment or be unexported (golint)
    • Line 43: warning: comment on exported type DynamicBoolValue should be of the form "DynamicBoolValue ..." (with optional leading article) (golint)
    • Line 46: warning: exported method DynamicBoolValue.Value should have comment or be unexported (golint)
    • Line 50: warning: exported type StringValuer should have comment or be unexported (golint)
    • Line 53: warning: exported type StringValue should have comment or be unexported (golint)
    • Line 55: warning: exported method StringValue.Value should have comment or be unexported (golint)
    • Line 59: warning: comment on exported type DynamicStringValue should be of the form "DynamicStringValue ..." (with optional leading article) (golint)
    • Line 62: warning: exported method DynamicStringValue.Value should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


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!