Preparing report...

Report for github.com/go-modules/modules

A+    Excellent!    Found 10 issues across 19 files

Tweet

gofmt94%

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!


gocyclo84%

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.


golint63%

Golint is a linter for Go source code.

    • modules/modules.go
    • Line 1: warning: package comment should be of the form "Package modules ..." (golint)
    • Line 54: warning: comment on exported type BinderOption should be of the form "BinderOption ..." (with optional leading article) (golint)
    • modules/inject/literal/literal.go
    • Line 99: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 124: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 134: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 152: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • modules/inject/file/file.go
    • Line 35: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 52: 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)
    • modules/inject/maker.go
    • Line 8: warning: exported type StringMaker should have comment or be unexported (golint)
    • Line 14: warning: exported type BoolMaker should have comment or be unexported (golint)
    • Line 20: warning: exported type IntMaker should have comment or be unexported (golint)
    • Line 26: warning: exported type UintMaker should have comment or be unexported (golint)
    • Line 32: warning: exported type UintPtrMaker should have comment or be unexported (golint)
    • Line 38: warning: exported type FloatMaker should have comment or be unexported (golint)
    • Line 44: warning: exported type ComplexMaker should have comment or be unexported (golint)
    • Line 50: warning: exported type ArrayMaker should have comment or be unexported (golint)
    • Line 56: warning: exported type ChanMaker should have comment or be unexported (golint)
    • Line 62: warning: exported type FuncMaker should have comment or be unexported (golint)
    • Line 68: warning: exported type InterfaceMaker should have comment or be unexported (golint)
    • Line 74: warning: exported type MapMaker should have comment or be unexported (golint)
    • Line 80: warning: exported type PtrMaker should have comment or be unexported (golint)
    • Line 86: warning: exported type SliceMaker should have comment or be unexported (golint)
    • Line 92: warning: exported type StructMaker should have comment or be unexported (golint)
    • Line 98: warning: exported type UnsafePointerMaker should have comment or be unexported (golint)
    • modules/example_test.go
    • Line 22: 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)

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!