Report for github.com/rgraphql/magellan

A+    Excellent!    Found 16 issues across 77 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!


gocyclo90%

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.


golint87%

Golint is a linter for Go source code.

    • magellan/analysis/resolve_object_test.go
    • Line 9: warning: don't use underscores in Go names; const testResolveObject_ResolverCode should be testResolveObjectResolverCode (golint)
    • Line 31: warning: don't use underscores in Go names; const testResolveObject_Schema should be testResolveObjectSchema (golint)
    • magellan/analysis/resolve_primitive_test.go
    • Line 92: warning: don't use underscores in Go names; const testPrimitive_RootQueryResolver_Schema should be testPrimitiveRootQueryResolverSchema (golint)
    • Line 103: warning: don't use underscores in Go names; type TestPrimitive_RootQueryResolver should be TestPrimitiveRootQueryResolver (golint)
    • magellan/analysis/resolve_list.go
    • Line 23: warning: receiver name l should be consistent with previous receiver name r for listResolver (golint)
    • Line 28: warning: receiver name l should be consistent with previous receiver name r for listResolver (golint)
    • Line 222: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • magellan/qtree/qtree_sub.go
    • Line 7: warning: exported type QTNodeOperation should have comment or be unexported (golint)
    • Line 10: warning: don't use underscores in Go names; const Operation_AddChild should be OperationAddChild (golint)
    • Line 10: warning: exported const Operation_AddChild should have comment (or a comment on this block) or be unexported (golint)
    • Line 11: warning: don't use underscores in Go names; const Operation_DelChild should be OperationDelChild (golint)
    • Line 12: warning: don't use underscores in Go names; const Operation_Delete should be OperationDelete (golint)
    • Line 13: warning: don't use underscores in Go names; const Operation_Error should be OperationError (golint)
    • Line 16: warning: comment on exported type QTNodeUpdate should be of the form "QTNodeUpdate ..." (with optional leading article) (golint)
    • Line 53: warning: comment on exported type QTNodeSubscription should be of the form "QTNodeSubscription ..." (with optional leading article) (golint)
    • magellan/result/multiplexer.go
    • Line 14: warning: comment on exported type ResultTreeMultiplexer should be of the form "ResultTreeMultiplexer ..." (with optional leading article) (golint)
    • magellan/introspect/introspect.go
    • Line 15: warning: comment on exported type ObjectResolver should be of the form "ObjectResolver ..." (with optional leading article) (golint)
    • Line 146: warning: comment on exported method TypeResolver.InputFields should be of the form "InputFields ..." (golint)
    • Line 181: warning: receiver name sr should be consistent with previous receiver name r for TypeResolver (golint)
    • Line 211: warning: receiver name e should be consistent with previous receiver name r for FieldResolver (golint)
    • Line 216: warning: receiver name e should be consistent with previous receiver name r for FieldResolver (golint)
    • Line 221: warning: receiver name f should be consistent with previous receiver name r for FieldResolver (golint)
    • Line 226: warning: receiver name f should be consistent with previous receiver name r for FieldResolver (golint)
    • Line 232: warning: receiver name f should be consistent with previous receiver name r for FieldResolver (golint)
    • Line 325: warning: comment on exported var ObjectResolverType should be of the form "ObjectResolverType ..." (golint)
    • Line 328: warning: comment on exported var TypeResolverType should be of the form "TypeResolverType ..." (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!


misspell96%

Misspell Finds commonly misspelled English words