Preparing report...

Report for github.com/olegsu/cli-generator

A+    Excellent!    Found 10 issues across 18 files

Tweet

gofmt88%

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


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!


golint61%

Golint is a linter for Go source code.

    • cli-generator/pkg/generate/language/language.go
    • Line 13: warning: exported type TemplateEngine should have comment or be unexported (golint)
    • Line 20: warning: exported type Options should have comment or be unexported (golint)
    • Line 30: warning: exported type RenderResult should have comment or be unexported (golint)
    • Line 35: warning: exported type TaskRunner should have comment or be unexported (golint)
    • cli-generator/pkg/logger/logger.go
    • Line 8: warning: exported type Logger should have comment or be unexported (golint)
    • Line 12: warning: exported type Options should have comment or be unexported (golint)
    • Line 17: warning: exported function New should have comment or be unexported (golint)
    • cli-generator/pkg/calculateSha/processor.go
    • Line 1: warning: don't use MixedCaps in package name; calculateSha should be calculatesha (golint)
    • Line 27: warning: receiver name s should be consistent with previous receiver name p for processor (golint)
    • Line 31: warning: receiver name s should be consistent with previous receiver name p for processor (golint)
    • cli-generator/pkg/spec/spec.go
    • Line 11: warning: exported function UnmarshalCLISpec should have comment or be unexported (golint)
    • Line 17: warning: exported method CLISpec.Marshal should have comment or be unexported (golint)
    • Line 21: warning: exported type CLISpec should have comment or be unexported (golint)
    • Line 29: warning: exported type Argument should have comment or be unexported (golint)
    • Line 34: warning: exported type Command should have comment or be unexported (golint)
    • Line 45: warning: exported type Flag should have comment or be unexported (golint)
    • Line 56: warning: exported type Metadata should have comment or be unexported (golint)
    • Line 62: warning: exported type Rule should have comment or be unexported (golint)
    • Line 65: warning: exported const Any should have comment (or a comment on this block) or be unexported (golint)
    • Line 71: warning: exported type Type should have comment or be unexported (golint)
    • Line 74: warning: exported const ArrayBool should have comment (or a comment on this block) or be unexported (golint)
    • cli-generator/pkg/spec/utils.go
    • Line 11: warning: exported function ToJSON should have comment or be unexported (golint)
    • Line 24: warning: exported method CLISpec.Validate should have comment or be unexported (golint)
    • Line 48: warning: exported function GetCliSpec 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!


misspell94%

Misspell Finds commonly misspelled English words