Preparing report...

Report for github.com/datawire/libk8s

A    Great!    Found 5 issues across 6 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!


gocyclo83%

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.


golint16%

Golint is a linter for Go source code.

    • libk8s/cmd/generate-libk8s/internal/golist/golist.go
    • Line 16: warning: exported type Package should have comment or be unexported (golint)
    • Line 75: warning: exported type PackageError should have comment or be unexported (golint)
    • Line 81: warning: exported type Context should have comment or be unexported (golint)
    • Line 94: warning: exported type Module should have comment or be unexported (golint)
    • Line 109: warning: exported type ModuleError should have comment or be unexported (golint)
    • Line 113: warning: exported function List should have comment or be unexported (golint)
    • Line 137: warning: exported function ListPackages should have comment or be unexported (golint)
    • libk8s/cmd/generate-libk8s/main.go
    • Line 20: warning: exported const StartRepo should have comment or be unexported (golint)
    • Line 22: warning: exported var PinnedPackages should have comment or be unexported (golint)
    • Line 103: warning: don't use underscores in Go names; var ret_Replace should be retReplace (golint)
    • Line 390: warning: exported function Main should have comment or be unexported (golint)
    • libk8s/cmd/generate-libk8s/internal/gomod/gomod.go
    • Line 15: warning: exported type Module should have comment or be unexported (golint)
    • Line 20: warning: exported type GoMod should have comment or be unexported (golint)
    • Line 28: warning: exported type Require should have comment or be unexported (golint)
    • Line 34: warning: exported type Replace should have comment or be unexported (golint)
    • Line 61: warning: exported function GetDir should have comment or be unexported (golint)
    • Line 108: warning: exported function ParseDir should have comment or be unexported (golint)
    • Line 145: warning: exported function Write 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!