Preparing report...

Report for arhat.dev/nikaya

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


gocyclo94%

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.


golint62%

Golint is a linter for Go source code.

    • /arhat.dev/nikaya/pkg/cmd/v1_16.go
    • Line 25: warning: exported function Run_V1_16_APIServer should have comment or be unexported (golint)
    • Line 25: warning: don't use underscores in Go names; func Run_V1_16_APIServer should be RunV1_16APIServer (golint)
    • /arhat.dev/nikaya/pkg/cmd/v1_18.go
    • Line 25: warning: exported function Run_V1_18_APIServer should have comment or be unexported (golint)
    • Line 25: warning: don't use underscores in Go names; func Run_V1_18_APIServer should be RunV1_18APIServer (golint)
    • /arhat.dev/nikaya/pkg/version/version.go
    • Line 41: warning: exported function Version should have comment or be unexported (golint)
    • Line 60: warning: exported function Arch should have comment or be unexported (golint)
    • Line 64: warning: exported function GoVersion should have comment or be unexported (golint)
    • Line 68: warning: exported function GoCompilerPlatform should have comment or be unexported (golint)
    • /arhat.dev/nikaya/scripts/gen/kube.go
    • Line 31: warning: exported type Version should have comment or be unexported (golint)
    • Line 37: warning: exported var VersionMapping should have comment or be unexported (golint)
    • Line 369: warning: exported const ImportGoFile should have comment or be unexported (golint)
    • /arhat.dev/nikaya/pkg/cmd/v1_17.go
    • Line 25: warning: exported function Run_V1_17_APIServer should have comment or be unexported (golint)
    • Line 25: warning: don't use underscores in Go names; func Run_V1_17_APIServer should be RunV1_17APIServer (golint)
    • /arhat.dev/nikaya/pkg/cmd/v1_19.go
    • Line 25: warning: exported function Run_V1_19_APIServer should have comment or be unexported (golint)
    • Line 25: warning: don't use underscores in Go names; func Run_V1_19_APIServer should be RunV1_19APIServer (golint)
    • /arhat.dev/nikaya/pkg/cmd/v1_20.go
    • Line 25: warning: exported function Run_V1_20_APIServer should have comment or be unexported (golint)
    • Line 25: warning: don't use underscores in Go names; func Run_V1_20_APIServer should be RunV1_20APIServer (golint)
    • /arhat.dev/nikaya/pkg/conf/nikaya.go
    • Line 24: warning: exported type Config should have comment or be unexported (golint)
    • Line 29: warning: exported type AppConfig should have comment or be unexported (golint)
    • Line 33: warning: exported function FlagsForNikaya 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!