Preparing report...

Report for github.com/XMLHexagram/emp

(v1.0.0-beta.0)

A    Great!    Found 6 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.

    • emp.go
    • Line 185: warning: cyclomatic complexity 21 of function (*Parser).parse() is high (> 15) (gocyclo)

golint16%

Golint is a linter for Go source code.

    • empErr/empErr.go
    • Line 1: warning: don't use MixedCaps in package name; empErr should be emperr (golint)
    • Line 8: warning: exported type Identifier should have comment or be unexported (golint)
    • Line 10: warning: exported type Error should have comment or be unexported (golint)
    • Line 19: warning: exported method Error.Is should have comment or be unexported (golint)
    • Line 34: warning: exported method Error.Wrap should have comment or be unexported (golint)
    • Line 47: warning: exported method Identifier.New should have comment or be unexported (golint)
    • assert/assert.go
    • Line 7: warning: exported function NotNil should have comment or be unexported (golint)
    • Line 11: warning: exported function Equal should have comment or be unexported (golint)
    • emp.go
    • Line 180: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 185: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 185: warning: don't use underscores in Go names; method parameter default_ should be default (golint)
    • Line 235: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 235: warning: don't use underscores in Go names; method parameter default_ should be default (golint)
    • Line 256: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 256: warning: don't use underscores in Go names; method parameter default_ should be default (golint)
    • Line 274: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 274: warning: don't use underscores in Go names; method parameter default_ should be default (golint)
    • Line 302: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 302: warning: don't use underscores in Go names; method parameter default_ should be default (golint)
    • Line 311: warning: don't use underscores in Go names; var default_ should be default (golint)
    • Line 334: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 334: warning: don't use underscores in Go names; method parameter default_ should be default (golint)
    • Line 355: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 355: warning: don't use underscores in Go names; method parameter default_ should be default (golint)
    • Line 376: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 376: warning: don't use underscores in Go names; method parameter default_ should be default (golint)
    • Line 397: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 397: warning: don't use underscores in Go names; method parameter default_ should be default (golint)
    • Line 401: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 401: warning: don't use underscores in Go names; method parameter default_ should be default (golint)
    • Line 443: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 443: warning: don't use underscores in Go names; method parameter default_ should be default (golint)
    • Line 485: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 485: warning: don't use underscores in Go names; method parameter default_ should be default (golint)
    • util.go
    • Line 10: warning: don't use underscores in Go names; func result default_ should be default (golint)
    • Line 40: warning: don't use underscores in Go names; func parameter default_ should be default (golint)
    • empErr/const.go
    • Line 1: warning: don't use MixedCaps in package name; empErr should be emperr (golint)
    • Line 4: warning: exported const MustError should have comment (or a comment on this block) or be unexported (golint)
    • Line 11: warning: exported var ErrorMap 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!


misspell83%

Misspell Finds commonly misspelled English words

    • emp_test.go
    • Line 403: warning: "DEFUALT" is a misspelling of "DEFAULT" (misspell)
    • Line 404: warning: "DEFUALT" is a misspelling of "DEFAULT" (misspell)
    • Line 408: warning: "DEFUALT" is a misspelling of "DEFAULT" (misspell)
    • Line 409: warning: "DEFUALT" is a misspelling of "DEFAULT" (misspell)