Preparing report...

Report for github.com/dodopizza/kubectl-shovel

A+    Excellent!    Found 13 issues across 48 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!


golint72%

Golint is a linter for Go source code.

    • kubectl-shovel/internal/flags/clreventlevel.go
    • Line 8: warning: exported type CLREventLevel should have comment or be unexported (golint)
    • Line 23: warning: exported method CLREventLevel.Set should have comment or be unexported (golint)
    • Line 37: warning: exported method CLREventLevel.Type should have comment or be unexported (golint)
    • Line 41: warning: exported method CLREventLevel.Description should have comment or be unexported (golint)
    • kubectl-shovel/internal/flags/dotnet_tools.go
    • Line 9: warning: exported type DotnetToolsFlagSet should have comment or be unexported (golint)
    • Line 13: warning: exported function NewDotnetToolsFlagSet should have comment or be unexported (golint)
    • Line 19: warning: exported method DotnetToolsFlagSet.Parse should have comment or be unexported (golint)
    • Line 32: warning: exported method DotnetToolsFlagSet.Args should have comment or be unexported (golint)
    • kubectl-shovel/internal/flags/timeout.go
    • Line 10: warning: exported type Timeout should have comment or be unexported (golint)
    • Line 20: warning: exported method Timeout.Set should have comment or be unexported (golint)
    • Line 48: warning: exported method Timeout.Type should have comment or be unexported (golint)
    • Line 52: warning: exported method Timeout.Description should have comment or be unexported (golint)
    • kubectl-shovel/internal/flags/clrevents.go
    • Line 8: warning: exported type CLREvents should have comment or be unexported (golint)
    • Line 11: warning: exported const CLREventsDelimiter should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: exported method CLREvents.Set should have comment or be unexported (golint)
    • Line 27: warning: exported method CLREvents.Type should have comment or be unexported (golint)
    • Line 31: warning: exported method CLREvents.Description should have comment or be unexported (golint)
    • kubectl-shovel/internal/flags/duration.go
    • Line 10: warning: exported type Duration should have comment or be unexported (golint)
    • Line 38: warning: exported method Duration.Set should have comment or be unexported (golint)
    • Line 76: warning: exported method Duration.Type should have comment or be unexported (golint)
    • Line 80: warning: exported method Duration.Description should have comment or be unexported (golint)
    • kubectl-shovel/internal/flags/format.go
    • Line 8: warning: exported type Format should have comment or be unexported (golint)
    • Line 23: warning: exported method Format.Set should have comment or be unexported (golint)
    • Line 37: warning: exported method Format.Type should have comment or be unexported (golint)
    • Line 41: warning: exported method Format.Description should have comment or be unexported (golint)
    • kubectl-shovel/internal/flags/gcdump_flagset.go
    • Line 7: warning: exported type GCDumpFlagSet should have comment or be unexported (golint)
    • Line 14: warning: exported function NewGCDumpFlagSet should have comment or be unexported (golint)
    • Line 21: warning: exported method GCDumpFlagSet.Parse should have comment or be unexported (golint)
    • Line 34: warning: exported method GCDumpFlagSet.Args should have comment or be unexported (golint)
    • kubectl-shovel/internal/flags/profile.go
    • Line 8: warning: exported type Profile should have comment or be unexported (golint)
    • Line 22: warning: exported method Profile.Set should have comment or be unexported (golint)
    • Line 36: warning: exported method Profile.Type should have comment or be unexported (golint)
    • Line 40: warning: exported method Profile.Description should have comment or be unexported (golint)
    • kubectl-shovel/internal/flags/providers.go
    • Line 8: warning: exported type Providers should have comment or be unexported (golint)
    • Line 11: warning: exported const ProvidersDelimiter should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: exported method Providers.Set should have comment or be unexported (golint)
    • Line 27: warning: exported method Providers.Description should have comment or be unexported (golint)
    • Line 40: warning: exported method Providers.Type should have comment or be unexported (golint)
    • kubectl-shovel/internal/flags/trace_flagset.go
    • Line 9: warning: exported type TraceFlagSet should have comment or be unexported (golint)
    • Line 23: warning: exported function NewTraceFlagSet should have comment or be unexported (golint)
    • Line 30: warning: exported method TraceFlagSet.Parse should have comment or be unexported (golint)
    • Line 81: warning: exported method TraceFlagSet.Args 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!