Preparing report...

Report for github.com/dutchcoders/gomisp

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.


golint33%

Golint is a linter for Go source code.

    • gomisp/client.go
    • Line 11: warning: exported type Client should have comment or be unexported (golint)
    • Line 18: warning: exported type SearchRequest should have comment or be unexported (golint)
    • Line 22: warning: don't use underscores in Go names; struct field type_ should be type (golint)
    • Line 25: warning: exported function NewSearchRequest should have comment or be unexported (golint)
    • Line 29: warning: exported method SearchRequest.MarshalJSON should have comment or be unexported (golint)
    • Line 45: warning: exported method SearchRequest.From should have comment or be unexported (golint)
    • Line 50: warning: exported method SearchRequest.To should have comment or be unexported (golint)
    • Line 55: warning: exported method SearchRequest.Type should have comment or be unexported (golint)
    • Line 60: warning: exported method SearchRequest.Value should have comment or be unexported (golint)
    • Line 65: warning: exported type MISPResponse should have comment or be unexported (golint)
    • Line 69: warning: exported type SearchResult should have comment or be unexported (golint)
    • Line 73: warning: exported type Event should have comment or be unexported (golint)
    • Line 143: warning: exported method Client.Search should have comment or be unexported (golint)
    • gomisp/driver.go
    • Line 48: warning: receiver name wd should be consistent with previous receiver name c for Client (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign50%

IneffAssign detects ineffectual assignments in Go code.

    • gomisp/client.go
    • Line 174: warning: c.debug undefined (type *Client has no field or method debug) (ineffassign)
    • Line 174: warning: c.debug undefined (type *Client has no field or method debug) (ineffassign)
    • gomisp/driver.go
    • Line 49: warning: wd.debug undefined (type *Client has no field or method debug) (ineffassign)
    • Line 62: warning: wd.debug undefined (type *Client has no field or method debug) (ineffassign)
    • Line 49: warning: wd.debug undefined (type *Client has no field or method debug) (ineffassign)
    • Line 62: warning: wd.debug undefined (type *Client has no field or method debug) (ineffassign)
    • gomisp/mips_test.go
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: could not import github.com/dutchcoders/gomisp (invalid package name: "") (ineffassign)
    • Line 18: warning: undeclared name: ip (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!