Preparing report...

Report for github.com/osbytes/mockery

(v1.1.2)

A    Great!    Found 42 issues across 55 files

Tweet

gofmt89%

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!


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.


golint32%

Golint is a linter for Go source code.

    • mockery/outputter.go
    • Line 12: warning: exported type Cleanup should have comment or be unexported (golint)
    • Line 14: warning: exported type OutputStreamProvider should have comment or be unexported (golint)
    • Line 18: warning: exported type StdoutStreamProvider should have comment or be unexported (golint)
    • Line 21: warning: error should be the last type when returning multiple items (golint)
    • Line 21: warning: exported method StdoutStreamProvider.GetWriter should have comment or be unexported (golint)
    • Line 21: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 25: warning: exported type FileOutputStreamProvider should have comment or be unexported (golint)
    • Line 35: warning: error should be the last type when returning multiple items (golint)
    • Line 35: warning: exported method FileOutputStreamProvider.GetWriter should have comment or be unexported (golint)
    • Line 35: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 75: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 89: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • mockery/walker_test.go
    • Line 15: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • mockery/fixtures/custom_error.go
    • Line 3: warning: exported type Err should have comment or be unexported (golint)
    • Line 12: warning: exported method Err.Code should have comment or be unexported (golint)
    • Line 16: warning: exported type KeyManager should have comment or be unexported (golint)
    • mockery/parse.go
    • Line 23: warning: exported type Parser should have comment or be unexported (golint)
    • Line 31: warning: exported function NewParser should have comment or be unexported (golint)
    • Line 44: warning: exported method Parser.Parse should have comment or be unexported (golint)
    • Line 116: warning: exported type NodeVisitor should have comment or be unexported (golint)
    • Line 120: warning: exported function NewNodeVisitor should have comment or be unexported (golint)
    • Line 126: warning: exported method NodeVisitor.DeclaredInterfaces should have comment or be unexported (golint)
    • Line 130: warning: exported method NodeVisitor.Visit should have comment or be unexported (golint)
    • Line 130: warning: receiver name nv should be consistent with previous receiver name n for NodeVisitor (golint)
    • Line 140: warning: exported method Parser.Load should have comment or be unexported (golint)
    • Line 155: warning: exported method Parser.Find should have comment or be unexported (golint)
    • Line 169: warning: exported type Interface should have comment or be unexported (golint)
    • Line 193: warning: exported method Parser.Interfaces should have comment or be unexported (golint)
    • mockery/walker.go
    • Line 13: warning: exported type Walker should have comment or be unexported (golint)
    • Line 21: warning: exported type WalkerVisitor should have comment or be unexported (golint)
    • Line 25: warning: exported method Walker.Walk should have comment or be unexported (golint)
    • Line 25: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 53: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 90: warning: exported type GeneratorVisitor should have comment or be unexported (golint)
    • Line 99: warning: exported method GeneratorVisitor.VisitWalk should have comment or be unexported (golint)
    • Line 99: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (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!