Preparing report...

Report for github.com/graphql-go/graphql

(v0.8.1)

A+    Excellent!    Found 19 issues across 119 files

Tweet

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!


gofmt94%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

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.

    • rules_overlapping_fields_can_be_merged.go
    • Line 450: warning: cyclomatic complexity 20 of function (*overlappingFieldsCanBeMergedRule).getFieldsAndFragmentNames() is high (> 15) (gocyclo)
    • Line 357: warning: cyclomatic complexity 16 of function (*overlappingFieldsCanBeMergedRule).findConflict() is high (> 15) (gocyclo)
    • schema.go
    • Line 271: warning: cyclomatic complexity 36 of function typeMapReducer() is high (> 15) (gocyclo)
    • Line 46: warning: cyclomatic complexity 28 of function NewSchema() is high (> 15) (gocyclo)
    • type_info.go
    • Line 82: warning: cyclomatic complexity 32 of function (*TypeInfo).Enter() is high (> 15) (gocyclo)
    • Line 236: warning: cyclomatic complexity 18 of function DefaultTypeInfoFieldDef() is high (> 15) (gocyclo)
    • language/lexer/lexer.go
    • Line 482: warning: cyclomatic complexity 29 of function readToken() is high (> 15) (gocyclo)
    • Line 218: warning: cyclomatic complexity 21 of function readString() is high (> 15) (gocyclo)
    • Line 598: warning: cyclomatic complexity 17 of function positionAfterWhitespace() is high (> 15) (gocyclo)
    • executor.go
    • Line 938: warning: cyclomatic complexity 21 of function DefaultResolveFn() is high (> 15) (gocyclo)
    • Line 411: warning: cyclomatic complexity 19 of function collectFields() is high (> 15) (gocyclo)
    • language/visitor/visitor_test.go
    • Line 891: warning: cyclomatic complexity 16 of function TestVisitor_VisitInParallel_AllowsSkippingDifferentSubTrees() is high (> 15) (gocyclo)
    • Line 1215: warning: cyclomatic complexity 16 of function TestVisitor_VisitInParallel_AllowsEarlyExitFromLeavingDifferentPoints() is high (> 15) (gocyclo)
    • Line 1606: warning: cyclomatic complexity 16 of function TestVisitor_VisitWithTypeInfo_MaintainsTypeInfoDuringEdit() is high (> 15) (gocyclo)
    • subscription.go
    • Line 75: warning: cyclomatic complexity 16 of function ExecuteSubscription() is high (> 15) (gocyclo)
    • scalars.go
    • Line 334: warning: cyclomatic complexity 56 of function coerceBool() is high (> 15) (gocyclo)
    • Line 17: warning: cyclomatic complexity 56 of function coerceInt() is high (> 15) (gocyclo)
    • Line 170: warning: cyclomatic complexity 45 of function coerceFloat() is high (> 15) (gocyclo)
    • values.go
    • Line 214: warning: cyclomatic complexity 23 of function isValidInputValue() is high (> 15) (gocyclo)
    • Line 351: warning: cyclomatic complexity 19 of function valueFromAST() is high (> 15) (gocyclo)
    • introspection.go
    • Line 58: warning: cyclomatic complexity 63 of function init() is high (> 15) (gocyclo)
    • Line 692: warning: cyclomatic complexity 18 of function astFromValue() is high (> 15) (gocyclo)
    • rules.go
    • Line 1727: warning: cyclomatic complexity 25 of function isValidLiteralValue() is high (> 15) (gocyclo)
    • Line 593: warning: cyclomatic complexity 23 of function getDirectiveLocationForASTPath() is high (> 15) (gocyclo)
    • Line 1248: warning: cyclomatic complexity 19 of function ProvidedNonNullArgumentsRule() is high (> 15) (gocyclo)
    • Line 1075: warning: cyclomatic complexity 17 of function NoUnusedVariablesRule() is high (> 15) (gocyclo)
    • Line 822: warning: cyclomatic complexity 16 of function NoFragmentCyclesRule() is high (> 15) (gocyclo)
    • definition_test.go
    • Line 146: warning: cyclomatic complexity 19 of function TestTypeSystem_DefinitionExample_DefinesAQueryOnlySchema() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!