Preparing report...

Report for github.com/rectcircle/digpro

A+    Excellent!    Found 5 issues across 24 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!


gocyclo100%

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.

No problems detected. Good job!


golint83%

Golint is a linter for Go source code.

    • digpro/internal/type.go
    • Line 9: warning: exported var DigInField should have comment or be unexported (golint)
    • Line 10: warning: exported var ErrorType should have comment or be unexported (golint)
    • digpro/internal/digcopy/error.go
    • Line 61: warning: exported method ErrProvide.Format should have comment or be unexported (golint)
    • Line 83: warning: exported method ErrConstructorFailed.Format should have comment or be unexported (golint)
    • Line 105: warning: exported method ErrArgumentsFailed.Format should have comment or be unexported (golint)
    • Line 127: warning: exported method ErrMissingDependencies.Format should have comment or be unexported (golint)
    • digpro/extract.go
    • Line 8: warning: exported type ExtractOption should have comment or be unexported (golint)
    • Line 13: warning: comment on exported function ExtractByName should be of the form "ExtractByName ..." (golint)
    • Line 24: warning: comment on exported function ExtractByGroup should be of the form "ExtractByGroup ..." (golint)
    • digpro/internal/internal.go
    • Line 13: warning: exported function TryConvertDigErr should have comment or be unexported (golint)
    • Line 56: warning: exported function ProvideWithLocationForPC should have comment or be unexported (golint)
    • Line 60: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 65: warning: exported type ExtractOptions should have comment or be unexported (golint)
    • Line 70: warning: exported type ExtractOption should have comment or be unexported (golint)
    • Line 74: warning: exported function ExtractWithLocationForPC should have comment or be unexported (golint)
    • Line 116: warning: if block ends with a return statement, so drop this else and outdent its block (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign95%

IneffAssign detects ineffectual assignments in Go code.

    • digpro/reflect.go
    • Line 13: warning: f.IsExported undefined (type reflect.StructField has no field or method IsExported) (ineffassign)
    • Line 13: warning: f.IsExported undefined (type reflect.StructField has no field or method IsExported) (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!