Preparing report...

Report for gopkg.in/adibiarsotp/dgraph.v0

(v0.7.7)

A    Great!    Found 45 issues across 118 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!


gofmt83%

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!


gocyclo79%

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.

    • gql/parser.go
    • Line 1936: warning: cyclomatic complexity 65 of function godeep() is high (> 15) (gocyclo)
    • Line 1772: warning: cyclomatic complexity 37 of function getRoot() is high (> 15) (gocyclo)
    • Line 1280: warning: cyclomatic complexity 33 of function parseFunction() is high (> 15) (gocyclo)
    • Line 476: warning: cyclomatic complexity 26 of function Parse() is high (> 15) (gocyclo)
    • Line 988: warning: cyclomatic complexity 20 of function parseGqlVariables() is high (> 15) (gocyclo)
    • Line 1090: warning: cyclomatic complexity 20 of function parseArguments() is high (> 15) (gocyclo)
    • Line 1542: warning: cyclomatic complexity 20 of function parseFilter() is high (> 15) (gocyclo)
    • Line 1411: warning: cyclomatic complexity 19 of function parseFacets() is high (> 15) (gocyclo)
    • Line 1693: warning: cyclomatic complexity 18 of function parseDirective() is high (> 15) (gocyclo)
    • rdf/parse.go
    • Line 208: warning: cyclomatic complexity 37 of function Parse() is high (> 15) (gocyclo)
    • Line 332: warning: cyclomatic complexity 20 of function parseFacets() is high (> 15) (gocyclo)
    • rdf/state.go
    • Line 502: warning: cyclomatic complexity 29 of function isPnCharsBase() is high (> 15) (gocyclo)
    • Line 75: warning: cyclomatic complexity 23 of function lexText() is high (> 15) (gocyclo)
    • x/tls_helper.go
    • Line 184: warning: cyclomatic complexity 16 of function GenerateTLSConfig() is high (> 15) (gocyclo)
    • types/conversion.go
    • Line 37: warning: cyclomatic complexity 100 of function Convert() is high (> 15) (gocyclo)
    • Line 388: warning: cyclomatic complexity 34 of function Marshal() is high (> 15) (gocyclo)
    • Line 532: warning: cyclomatic complexity 21 of function ObjectValue() is high (> 15) (gocyclo)
    • query/query.go
    • Line 1632: warning: cyclomatic complexity 57 of function ProcessGraph() is high (> 15) (gocyclo)
    • Line 290: warning: cyclomatic complexity 57 of function (*SubGraph).preTraverse() is high (> 15) (gocyclo)
    • Line 1198: warning: cyclomatic complexity 32 of function ProcessQuery() is high (> 15) (gocyclo)
    • Line 587: warning: cyclomatic complexity 25 of function treeCopy() is high (> 15) (gocyclo)
    • Line 795: warning: cyclomatic complexity 23 of function newGraph() is high (> 15) (gocyclo)
    • Line 703: warning: cyclomatic complexity 22 of function (*params).fill() is high (> 15) (gocyclo)
    • Line 1110: warning: cyclomatic complexity 20 of function (*SubGraph).valueVarAggregation() is high (> 15) (gocyclo)
    • Line 1562: warning: cyclomatic complexity 18 of function (*SubGraph).fillVars() is high (> 15) (gocyclo)
    • Line 1370: warning: cyclomatic complexity 17 of function (*SubGraph).populateVarMap() is high (> 15) (gocyclo)
    • gql/state.go
    • Line 138: warning: cyclomatic complexity 39 of function lexFuncOrArg() is high (> 15) (gocyclo)
    • Line 284: warning: cyclomatic complexity 19 of function lexQuery() is high (> 15) (gocyclo)
    • Line 99: warning: cyclomatic complexity 16 of function lexInsideSchema() is high (> 15) (gocyclo)
    • worker/draft.go
    • Line 608: warning: cyclomatic complexity 22 of function (*node).Run() is high (> 15) (gocyclo)
    • Line 271: warning: cyclomatic complexity 21 of function (*node).ProposeAndWait() is high (> 15) (gocyclo)
    • query/groupby.go
    • Line 194: warning: cyclomatic complexity 18 of function (*SubGraph).processGroupBy() is high (> 15) (gocyclo)
    • schema/parse.go
    • Line 129: warning: cyclomatic complexity 17 of function parseIndexDirective() is high (> 15) (gocyclo)
    • worker/sort.go
    • Line 141: warning: cyclomatic complexity 16 of function sortWithIndex() is high (> 15) (gocyclo)
    • worker/task.go
    • Line 193: warning: cyclomatic complexity 82 of function processTask() is high (> 15) (gocyclo)
    • Line 597: warning: cyclomatic complexity 27 of function parseSrcFn() is high (> 15) (gocyclo)
    • Line 744: warning: cyclomatic complexity 18 of function applyFacetsTree() is high (> 15) (gocyclo)
    • query/shortest.go
    • Line 115: warning: cyclomatic complexity 21 of function (*SubGraph).expandOut() is high (> 15) (gocyclo)
    • Line 260: warning: cyclomatic complexity 20 of function ShortestPath() is high (> 15) (gocyclo)
    • posting/list.go
    • Line 233: warning: cyclomatic complexity 17 of function (*List).updateMutationLayer() is high (> 15) (gocyclo)
    • Line 467: warning: cyclomatic complexity 16 of function (*List).iterate() is high (> 15) (gocyclo)
    • cmd/dgraph/main.go
    • Line 479: warning: cyclomatic complexity 27 of function queryHandler() is high (> 15) (gocyclo)
    • Line 759: warning: cyclomatic complexity 19 of function (*grpcServer).Run() is high (> 15) (gocyclo)
    • gql/math.go
    • Line 125: warning: cyclomatic complexity 42 of function parseMathFunc() is high (> 15) (gocyclo)
    • Line 114: warning: cyclomatic complexity 22 of function isMathFunc() is high (> 15) (gocyclo)
    • query/recurse.go
    • Line 29: warning: cyclomatic complexity 22 of function (*SubGraph).expandRecurse() is high (> 15) (gocyclo)
    • worker/predicate.go
    • Line 188: warning: cyclomatic complexity 17 of function (*grpcWorker).PredicateAndSchemaData() is high (> 15) (gocyclo)
    • query/math.go
    • Line 18: warning: cyclomatic complexity 17 of function processBinary() is high (> 15) (gocyclo)
    • query/aggregator.go
    • Line 109: warning: cyclomatic complexity 44 of function (*aggregator).ApplyVal() is high (> 15) (gocyclo)
    • Line 67: warning: cyclomatic complexity 16 of function compareValues() is high (> 15) (gocyclo)

license0%

Checks whether your project has a LICENSE file.


misspell92%

Misspell Finds commonly misspelled English words

    • tok/stopwords.go
    • Line 29: warning: "missen" is a misspelling of "mizzen" (misspell)
    • Line 32: warning: "absolument" is a misspelling of "absolute" (misspell)
    • Line 32: warning: "differentes" is a misspelling of "differences" (misspell)
    • Line 32: warning: "quarante" is a misspelling of "quarantine" (misspell)
    • Line 34: warning: "teh" is a misspelling of "the" (misspell)
    • Line 35: warning: "momento" is a misspelling of "memento" (misspell)
    • Line 35: warning: "successivo" is a misspelling of "succession" (misspell)
    • Line 37: warning: "eles" is a misspelling of "eels" (misspell)
    • Line 37: warning: "momento" is a misspelling of "memento" (misspell)
    • Line 37: warning: "rela" is a misspelling of "real" (misspell)
    • Line 40: warning: "nto" is a misspelling of "not" (misspell)
    • Line 40: warning: "intentas" is a misspelling of "intents" (misspell)
    • Line 40: warning: "momento" is a misspelling of "memento" (misspell)
    • worker/draft.go
    • Line 688: warning: "transfering" is a misspelling of "transferring" (misspell)
    • Line 690: warning: "transfering" is a misspelling of "transferring" (misspell)
    • lex/lexer.go
    • Line 185: warning: "untill" is a misspelling of "until" (misspell)
    • Line 187: warning: "lastr" is a misspelling of "last" (misspell)
    • Line 195: warning: "lastr" is a misspelling of "last" (misspell)
    • Line 198: warning: "lastr" is a misspelling of "last" (misspell)
    • Line 202: warning: "untill" is a misspelling of "until" (misspell)