Preparing report...

Report for github.com/go-ego/re

A+    Excellent!    Found 14 issues across 27 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!


gocyclo81%

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.

    • re/cmd/pack.go
    • Line 440: warning: cyclomatic complexity 38 of function packApp() is high (> 15) (gocyclo)
    • Line 236: warning: cyclomatic complexity 16 of function (*walkFileTree).iterDirectory() is high (> 15) (gocyclo)
    • re/cmd/code.go
    • Line 101: warning: cyclomatic complexity 24 of function (*annotationVisitor).Visit() is high (> 15) (gocyclo)
    • Line 160: warning: cyclomatic complexity 17 of function printDecl() is high (> 15) (gocyclo)
    • re/cmd/run.go
    • Line 69: warning: cyclomatic complexity 23 of function runApp() is high (> 15) (gocyclo)
    • re/cmd/migrate.go
    • Line 171: warning: cyclomatic complexity 16 of function checkForSchemaUpdateTable() is high (> 15) (gocyclo)

golint62%

Golint is a linter for Go source code.

    • re/cmd/code.go
    • Line 81: warning: exported const ExportLinkAnnotation should have comment (or a comment on this block) or be unexported (golint)
    • Line 222: warning: exported type AnnotationKind should have comment or be unexported (golint)
    • Line 224: warning: exported type Annotation should have comment or be unexported (golint)
    • Line 230: warning: exported type Code should have comment or be unexported (golint)
    • re/cmd/new.go
    • Line 102: warning: exported function CopyFile should have comment or be unexported (golint)
    • Line 123: warning: exported function Writefile should have comment or be unexported (golint)
    • re/cmd/pack.go
    • Line 65: warning: exported type ListOpts should have comment or be unexported (golint)
    • Line 71: warning: exported method ListOpts.Set should have comment or be unexported (golint)
    • re/cmd/test.go
    • Line 23: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • re/cmd/fix.go
    • Line 17: warning: exported function Colorize should have comment or be unexported (golint)
    • re/cmd/cmd.go
    • Line 95: warning: exported method Command.Options should have comment or be unexported (golint)
    • Line 113: warning: exported var AvailableCommands should have comment or be unexported (golint)
    • Line 134: warning: exported function IsGenerateDocs should have comment or be unexported (golint)
    • Line 180: warning: exported function Usage should have comment or be unexported (golint)
    • Line 195: warning: exported function Help should have comment or be unexported (golint)
    • Line 214: warning: exported function PrintErrorAndExit should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign96%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!