Preparing report...

Report for github.com/jbowes/welk

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


gocyclo96%

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.


golint35%

Golint is a linter for Go source code.

    • welk/internal/install/builtin/builtin.go
    • Line 13: warning: exported type Host should have comment or be unexported (golint)
    • Line 23: warning: exported type IOs should have comment or be unexported (golint)
    • Line 28: warning: exported type BuiltinFunc should have comment or be unexported (golint)
    • Line 30: warning: exported var Builtin should have comment or be unexported (golint)
    • Line 32: warning: exported type ExitStatusError should have comment or be unexported (golint)
    • Line 36: warning: exported function NewExitStatusError should have comment or be unexported (golint)
    • Line 39: warning: exported method ExitStatusError.Status should have comment or be unexported (golint)
    • welk/internal/db/db.go
    • Line 17: warning: exported type ManifestState should have comment or be unexported (golint)
    • Line 20: warning: exported const UnknownManifestState should have comment (or a comment on this block) or be unexported (golint)
    • Line 29: warning: exported type Manifest should have comment or be unexported (golint)
    • Line 46: warning: exported type File should have comment or be unexported (golint)
    • Line 53: warning: exported type DB should have comment or be unexported (golint)
    • Line 57: warning: exported method DB.Begin should have comment or be unexported (golint)
    • Line 75: warning: exported method DB.Delete should have comment or be unexported (golint)
    • Line 92: warning: exported type Txn should have comment or be unexported (golint)
    • Line 101: warning: exported method Txn.Rollback should have comment or be unexported (golint)
    • Line 112: warning: exported method Txn.Commit should have comment or be unexported (golint)
    • Line 131: warning: exported method DB.Query should have comment or be unexported (golint)
    • Line 131: warning: receiver name d should be consistent with previous receiver name db for DB (golint)
    • Line 135: warning: exported method DB.List should have comment or be unexported (golint)
    • Line 135: warning: receiver name d should be consistent with previous receiver name db for DB (golint)
    • welk/internal/install/builtin/command.go
    • Line 15: warning: exported function Command should have comment or be unexported (golint)
    • Line 33: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • welk/internal/install/vfs/vfs.go
    • Line 18: warning: exported type VFS should have comment or be unexported (golint)
    • Line 42: warning: exported method VFS.Stat should have comment or be unexported (golint)
    • Line 56: warning: exported method VFS.MkDir should have comment or be unexported (golint)
    • Line 70: warning: exported method VFS.Remove should have comment or be unexported (golint)
    • Line 89: warning: comment on exported method VFS.File should be of the form "File ..." (golint)
    • Line 116: warning: exported method VFS.Move should have comment or be unexported (golint)
    • Line 156: warning: comment on exported type ManifestEntry should be of the form "ManifestEntry ..." (with optional leading article) (golint)
    • Line 164: warning: comment on exported method VFS.Manifest should be of the form "Manifest ..." (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!


misspell94%

Misspell Finds commonly misspelled English words