Preparing report...

Report for github.com/sidkshatriya/dontbug

A    Great!    Found 7 issues across 13 files

Tweet

gofmt84%

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!


gocyclo76%

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.

    • dontbug/engine/replay.go
    • Line 506: warning: cyclomatic complexity 26 of function dispatchIdeRequest() is high (> 15) (gocyclo)
    • Line 335: warning: cyclomatic complexity 18 of function debuggerLoop() is high (> 15) (gocyclo)

golint76%

Golint is a linter for Go source code.

    • dontbug/engine/base.go
    • Line 56: warning: exported var VerboseFlag should have comment or be unexported (golint)
    • Line 360: warning: exported function CheckGdbExecutable should have comment or be unexported (golint)
    • Line 393: warning: exported function Verboseln should have comment or be unexported (golint)
    • Line 401: warning: exported function Verbosef should have comment or be unexported (golint)
    • Line 409: warning: exported function Verbose should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign61%

IneffAssign detects ineffectual assignments in Go code.

    • dontbug/main.go
    • Line 18: warning: cannot find package "." in: (ineffassign)
    • Line 18: warning: could not import github.com/sidkshatriya/dontbug/cmd (invalid package name: "") (ineffassign)
    • dontbug/cmd/record_cmd.go
    • Line 18: warning: cannot find package "." in: (ineffassign)
    • Line 19: warning: cannot find package "." in: (ineffassign)
    • Line 20: warning: cannot find package "." in: (ineffassign)
    • Line 21: warning: cannot find package "." in: (ineffassign)
    • Line 18: warning: could not import github.com/fatih/color (invalid package name: "") (ineffassign)
    • Line 19: warning: could not import github.com/sidkshatriya/dontbug/engine (invalid package name: "") (ineffassign)
    • Line 20: warning: could not import github.com/spf13/cobra (invalid package name: "") (ineffassign)
    • Line 21: warning: could not import github.com/spf13/viper (invalid package name: "") (ineffassign)
    • dontbug/engine/base.go
    • Line 21: warning: cannot find package "." in: (ineffassign)
    • Line 22: warning: cannot find package "." in: (ineffassign)
    • Line 23: warning: cannot find package "." in: (ineffassign)
    • Line 21: warning: could not import github.com/Masterminds/semver (invalid package name: "") (ineffassign)
    • Line 22: warning: could not import github.com/cyrus-and/gdb (invalid package name: "") (ineffassign)
    • Line 23: warning: could not import github.com/fatih/color (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!