Preparing report...

Report for github.com/axetroy/dvm

A    Great!    Found 24 issues across 25 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!


golint4%

Golint is a linter for Go source code.

    • dvm/internal/deno/versions.go
    • Line 14: warning: comment on exported function GetLatestRemoteVersion should be of the form "GetLatestRemoteVersion ..." (golint)
    • Line 31: warning: comment on exported function GetRemoteVersions should be of the form "GetRemoteVersions ..." (golint)
    • dvm/internal/dvm/upgrade.go
    • Line 22: warning: comment on exported function Upgrade should be of the form "Upgrade ..." (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)
    • dvm/internal/deno/current_use.go
    • Line 13: 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)
    • Line 18: warning: comment on exported function GetCurrentUsingVersion should be of the form "GetCurrentUsingVersion ..." (golint)
    • dvm/internal/dvm/version.go
    • Line 21: warning: comment on exported function SetVersion should be of the form "SetVersion ..." (golint)
    • Line 26: warning: comment on exported function GetCurrentUsingVersion should be of the form "GetCurrentUsingVersion ..." (golint)
    • Line 31: warning: comment on exported function GetLatestRemoteVersion should be of the form "GetLatestRemoteVersion ..." (golint)
    • dvm/internal/core/dvm.go
    • Line 13: warning: exported var HomeDir should have comment or be unexported (golint)
    • Line 39: 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)
    • Line 60: 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)
    • dvm/internal/deno/remote_file.go
    • Line 11: warning: comment on exported function GetRemoteTarFilename should be of the form "GetRemoteTarFilename ..." (golint)
    • Line 55: warning: comment on exported function GetRemoteDownloadURL should be of the form "GetRemoteDownloadURL ..." (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!