Preparing report...

Report for github.com/hidetatz/kubecolor

(v0.0.20)

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


gocyclo95%

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.


golint55%

Golint is a linter for Go source code.

    • kubecolor/command/config.go
    • Line 5: warning: exported type KubecolorConfig should have comment or be unexported (golint)
    • Line 13: warning: exported function ResolveConfig should have comment or be unexported (golint)
    • kubecolor/color/color.go
    • Line 7: warning: exported type Color should have comment or be unexported (golint)
    • Line 12: warning: exported const Black should have comment (or a comment on this block) or be unexported (golint)
    • Line 26: warning: exported function Apply should have comment or be unexported (golint)
    • kubecolor/printer/json.go
    • Line 12: warning: exported type JsonPrinter should have comment or be unexported (golint)
    • Line 16: warning: exported method JsonPrinter.Print should have comment or be unexported (golint)
    • kubecolor/printer/table.go
    • Line 12: warning: exported type TablePrinter should have comment or be unexported (golint)
    • Line 22: warning: exported function NewTablePrinter should have comment or be unexported (golint)
    • Line 32: warning: exported method TablePrinter.Print should have comment or be unexported (golint)
    • kubecolor/testutil/heredoc.go
    • Line 5: warning: exported function NewHereDoc should have comment or be unexported (golint)
    • Line 9: warning: exported function NewHereDocf should have comment or be unexported (golint)
    • kubecolor/printer/colors_definition.go
    • Line 28: warning: comment on exported var KeyColorForDark should be of the form "KeyColorForDark ..." (golint)
    • Line 30: warning: exported var StringColorForDark should have comment or be unexported (golint)
    • Line 36: warning: comment on exported var KeyColorForLight should be of the form "KeyColorForLight ..." (golint)
    • kubecolor/printer/kubectl_version.go
    • Line 12: warning: exported type VersionShortPrinter should have comment or be unexported (golint)
    • Line 16: warning: comment on exported method VersionShortPrinter.Print should be of the form "Print ..." (golint)
    • Line 32: warning: exported type VersionPrinter should have comment or be unexported (golint)
    • Line 36: warning: exported method VersionPrinter.Print should have comment or be unexported (golint)
    • kubecolor/printer/yaml.go
    • Line 12: warning: exported type YamlPrinter should have comment or be unexported (golint)
    • Line 18: warning: exported method YamlPrinter.Print should have comment or be unexported (golint)
    • kubecolor/testutil/assert.go
    • Line 1: warning: package comment should be of the form "Package testutil ..." (golint)
    • Line 11: warning: exported function MustEqual should have comment or be unexported (golint)
    • kubecolor/kubectl/subcommand.go
    • Line 7: warning: exported type SubcommandInfo should have comment or be unexported (golint)
    • Line 19: warning: exported type FormatOption should have comment or be unexported (golint)
    • Line 22: warning: exported const None should have comment (or a comment on this block) or be unexported (golint)
    • Line 28: warning: exported type Subcommand should have comment or be unexported (golint)
    • Line 31: warning: exported const Create should have comment (or a comment on this block) or be unexported (golint)
    • Line 120: warning: exported function InspectSubcommand should have comment or be unexported (golint)
    • Line 126: warning: exported function CollectCommandlineOptions should have comment or be unexported (golint)
    • Line 198: warning: comment on exported function InspectSubcommandInfo should be of the form "InspectSubcommandInfo ..." (golint)
    • kubecolor/command/runner.go
    • Line 19: warning: exported var Stdout should have comment or be unexported (golint)
    • Line 23: warning: exported type Printers should have comment or be unexported (golint)
    • Line 48: warning: exported function Run 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!