Preparing report...

Report for github.com/wingkwong/k8sgen

A+    Excellent!    Found 8 issues across 23 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!


gocyclo86%

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.


golint73%

Golint is a linter for Go source code.

    • k8sgen/internal/pkg/cli/type.go
    • Line 3: warning: exported type GlobalOpts should have comment or be unexported (golint)
    • Line 39: warning: exported type ValidatorFunc should have comment or be unexported (golint)
    • Line 43: warning: exported type DeploymentCmdOpts should have comment or be unexported (golint)
    • Line 50: warning: exported type SecretCmdOpts should have comment or be unexported (golint)
    • Line 69: warning: exported type RoleCmdOpts should have comment or be unexported (golint)
    • Line 84: warning: exported type QuotaCmdOpts should have comment or be unexported (golint)
    • Line 93: warning: exported type PriorityClassCmtOpts should have comment or be unexported (golint)
    • Line 106: warning: exported type NamespaceCmtOpts should have comment or be unexported (golint)
    • Line 111: warning: exported type ConfigMapCmtOpts should have comment or be unexported (golint)
    • Line 116: warning: exported type ServiceCmdOpts should have comment or be unexported (golint)
    • Line 147: warning: exported type JobCmdOpts should have comment or be unexported (golint)
    • Line 156: warning: exported type PodDisruptionBudgetCmdOpts should have comment or be unexported (golint)
    • Line 167: warning: exported type ServiceAccountCmdOpts should have comment or be unexported (golint)
    • Line 172: warning: exported type ClusterRoleCmdOpts should have comment or be unexported (golint)
    • Line 179: warning: exported type FileOpts should have comment or be unexported (golint)
    • k8sgen/internal/pkg/cli/util.go
    • Line 8: warning: exported function VerifyDirectory should have comment or be unexported (golint)
    • Line 15: warning: exported function VerifyCmd should have comment or be unexported (golint)
    • Line 22: warning: exported function ExecCmd 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!


misspell95%

Misspell Finds commonly misspelled English words