Preparing report...

Report for github.com/1pkg/gofire

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


gocyclo88%

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.

    • gofire/parsers/parse.go
    • Line 302: warning: cyclomatic complexity 31 of function (parser).typ() is high (> 15) (gocyclo)
    • Line 381: warning: cyclomatic complexity 23 of function (parser).tagflag() is high (> 15) (gocyclo)
    • Line 20: warning: cyclomatic complexity 19 of function Parse() is high (> 15) (gocyclo)
    • Line 132: warning: cyclomatic complexity 17 of function (*parser).parameters() is high (> 15) (gocyclo)
    • gofire/type.go
    • Line 43: warning: cyclomatic complexity 22 of function (Kind).Type() is high (> 15) (gocyclo)
    • Line 113: warning: cyclomatic complexity 16 of function (Kind).Base() is high (> 15) (gocyclo)

golint87%

Golint is a linter for Go source code.

    • gofire/generators/driver.go
    • Line 14: warning: exported const DriverNameFlag should have comment (or a comment on this block) or be unexported (golint)
    • Line 24: warning: exported function NewReference should have comment or be unexported (golint)
    • Line 29: warning: exported method Reference.Type should have comment or be unexported (golint)
    • Line 36: warning: exported method Reference.Group should have comment or be unexported (golint)
    • Line 43: warning: exported method Reference.Field should have comment or be unexported (golint)
    • Line 50: warning: exported method Reference.Untyped should have comment or be unexported (golint)
    • Line 57: warning: exported type Parameter should have comment or be unexported (golint)
    • Line 67: warning: exported type Driver should have comment or be unexported (golint)
    • Line 76: warning: exported type Producer should have comment or be unexported (golint)
    • gofire/generators/internal/driver.go
    • Line 10: warning: exported type Driver should have comment or be unexported (golint)
    • Line 14: warning: exported method Driver.Reset should have comment or be unexported (golint)
    • Line 19: warning: exported method Driver.Imports should have comment or be unexported (golint)
    • Line 23: warning: exported method Driver.Parameters should have comment or be unexported (golint)
    • Line 27: warning: exported method Driver.Last should have comment or be unexported (golint)
    • Line 35: warning: exported method Driver.Template should have comment or be unexported (golint)
    • Line 59: warning: exported method Driver.VisitPlaceholder should have comment or be unexported (golint)
    • Line 67: warning: exported method Driver.VisitArgument should have comment or be unexported (golint)
    • Line 81: warning: exported method Driver.VisitFlag should have comment or be unexported (golint)
    • gofire/generators/internal/goexec.go
    • Line 17: warning: exported function GoExec should have comment or be unexported (golint)
    • Line 27: warning: exported type Action should have comment or be unexported (golint)
    • Line 29: warning: exported method Action.RunOnTest should have comment or be unexported (golint)
    • gofire/command.go
    • Line 3: warning: exported type Visitor should have comment or be unexported (golint)
    • Line 20: warning: exported method Placeholder.Accept should have comment or be unexported (golint)
    • Line 32: warning: exported method Argument.Accept should have comment or be unexported (golint)
    • Line 48: warning: exported method Flag.Accept should have comment or be unexported (golint)
    • Line 61: warning: exported method Group.Accept should have comment or be unexported (golint)
    • Line 70: warning: comment on exported type Command should be of the form "Command ..." (with optional leading article) (golint)
    • Line 82: warning: exported method Command.Accept should have comment or be unexported (golint)
    • gofire/type.go
    • Line 12: warning: exported const Invalid should have comment (or a comment on this block) or be unexported (golint)
    • Line 34: warning: comment on exported const UnsafePointer should be of the form "UnsafePointer ..." (golint)
    • Line 43: warning: exported method Kind.Type should have comment or be unexported (golint)
    • Line 90: warning: exported method Kind.Default should have comment or be unexported (golint)
    • Line 113: warning: exported method Kind.Base should have comment or be unexported (golint)
    • Line 155: warning: exported type TPrimitive should have comment or be unexported (golint)
    • Line 159: warning: exported method TPrimitive.Kind should have comment or be unexported (golint)
    • Line 163: warning: exported method TPrimitive.Type should have comment or be unexported (golint)
    • Line 167: warning: exported method TPrimitive.Format should have comment or be unexported (golint)
    • Line 184: warning: exported type TArray should have comment or be unexported (golint)
    • Line 189: warning: exported method TArray.Kind should have comment or be unexported (golint)
    • Line 193: warning: exported method TArray.Type should have comment or be unexported (golint)
    • Line 197: warning: exported method TArray.Format should have comment or be unexported (golint)
    • Line 206: warning: exported type TSlice should have comment or be unexported (golint)
    • Line 210: warning: exported method TSlice.Kind should have comment or be unexported (golint)
    • Line 214: warning: exported method TSlice.Type should have comment or be unexported (golint)
    • Line 218: warning: exported method TSlice.Format should have comment or be unexported (golint)
    • Line 227: warning: exported type TMap should have comment or be unexported (golint)
    • Line 231: warning: exported method TMap.Kind should have comment or be unexported (golint)
    • Line 235: warning: exported method TMap.Type should have comment or be unexported (golint)
    • Line 239: warning: exported method TMap.Format should have comment or be unexported (golint)
    • Line 249: warning: exported type TPtr should have comment or be unexported (golint)
    • Line 253: warning: exported method TPtr.Kind should have comment or be unexported (golint)
    • Line 257: warning: exported method TPtr.Type should have comment or be unexported (golint)
    • Line 261: warning: exported method TPtr.Format should have comment or be unexported (golint)
    • Line 265: warning: exported type TStruct should have comment or be unexported (golint)
    • Line 269: warning: exported method TStruct.Kind should have comment or be unexported (golint)
    • Line 273: warning: exported method TStruct.Type should have comment or be unexported (golint)
    • Line 277: warning: exported method TStruct.Format 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!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!