Preparing report...

Report for github.com/krotik/eliasdb

A+    Excellent!    Found 88 issues across 241 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!


gocyclo63%

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.

    • eliasdb/graph/util/indexmanager_test.go
    • Line 23: warning: cyclomatic complexity 17 of function TestIndexManager() is high (> 15) (gocyclo)
    • Line 136: warning: cyclomatic complexity 16 of function TestPhraseSearch() is high (> 15) (gocyclo)
    • Line 432: warning: cyclomatic complexity 16 of function TestAddRemoveIndexEntry() is high (> 15) (gocyclo)
    • eliasdb/hash/htreepage_test.go
    • Line 235: warning: cyclomatic complexity 22 of function TestHTreePageRemove() is high (> 15) (gocyclo)
    • Line 82: warning: cyclomatic complexity 17 of function TestHTreePageInsert() is high (> 15) (gocyclo)
    • eliasdb/eql/interpreter/runtime.go
    • Line 593: warning: cyclomatic complexity 34 of function (*eqlRuntimeProvider).next() is high (> 15) (gocyclo)
    • Line 375: warning: cyclomatic complexity 33 of function (*eqlRuntimeProvider).initCols() is high (> 15) (gocyclo)
    • Line 231: warning: cyclomatic complexity 31 of function (*eqlRuntimeProvider).initWithFlags() is high (> 15) (gocyclo)
    • Line 91: warning: cyclomatic complexity 20 of function (*eqlRuntimeProvider).init() is high (> 15) (gocyclo)
    • eliasdb/graph/graphmanager_nodes.go
    • Line 339: warning: cyclomatic complexity 18 of function (*Manager).writeNode() is high (> 15) (gocyclo)
    • Line 233: warning: cyclomatic complexity 17 of function (*Manager).storeOrUpdateNode() is high (> 15) (gocyclo)
    • Line 478: warning: cyclomatic complexity 16 of function (*Manager).RemoveNode() is high (> 15) (gocyclo)
    • Line 96: warning: cyclomatic complexity 16 of function (*Manager).readNode() is high (> 15) (gocyclo)
    • eliasdb/console/console_test.go
    • Line 503: warning: cyclomatic complexity 35 of function TestBasicCommands() is high (> 15) (gocyclo)
    • Line 362: warning: cyclomatic complexity 22 of function TestNoAuthentication() is high (> 15) (gocyclo)
    • eliasdb/api/v1/graph_test.go
    • Line 576: warning: cyclomatic complexity 39 of function TestGraphOperation() is high (> 15) (gocyclo)
    • Line 108: warning: cyclomatic complexity 27 of function TestGraphQuery() is high (> 15) (gocyclo)
    • eliasdb/graph/graphmanager_edges_test.go
    • Line 957: warning: cyclomatic complexity 79 of function TestEdgeOperations() is high (> 15) (gocyclo)
    • Line 26: warning: cyclomatic complexity 65 of function TestSimpleGraphStorage() is high (> 15) (gocyclo)
    • Line 439: warning: cyclomatic complexity 51 of function TestSimpleGraphStorageErrorCases() is high (> 15) (gocyclo)
    • eliasdb/graph/trans_test.go
    • Line 792: warning: cyclomatic complexity 51 of function TestTransErrors() is high (> 15) (gocyclo)
    • Line 215: warning: cyclomatic complexity 45 of function TestNormalTrans() is high (> 15) (gocyclo)
    • Line 505: warning: cyclomatic complexity 24 of function TestTransBuilding() is high (> 15) (gocyclo)
    • Line 44: warning: cyclomatic complexity 20 of function TestRollingTrans() is high (> 15) (gocyclo)
    • eliasdb/cluster/manager/manager_test.go
    • Line 1797: warning: cyclomatic complexity 60 of function TestLowLevelManagerCommunication() is high (> 15) (gocyclo)
    • Line 940: warning: cyclomatic complexity 21 of function TestClusterTemporaryFailure() is high (> 15) (gocyclo)
    • Line 1318: warning: cyclomatic complexity 18 of function TestClusterBuilding() is high (> 15) (gocyclo)
    • Line 659: warning: cyclomatic complexity 17 of function TestClusterEjection() is high (> 15) (gocyclo)
    • eliasdb/graph/rules_test.go
    • Line 439: warning: cyclomatic complexity 30 of function TestRulesErrors() is high (> 15) (gocyclo)
    • Line 163: warning: cyclomatic complexity 20 of function TestRules() is high (> 15) (gocyclo)
    • eliasdb/ecal/dbfunc/node_test.go
    • Line 21: warning: cyclomatic complexity 38 of function TestStoreAndRemoveNode() is high (> 15) (gocyclo)
    • Line 185: warning: cyclomatic complexity 36 of function TestStoreNodeTrans() is high (> 15) (gocyclo)
    • eliasdb/graph/graphmanager_edges.go
    • Line 332: warning: cyclomatic complexity 26 of function (*Manager).StoreEdge() is high (> 15) (gocyclo)
    • Line 169: warning: cyclomatic complexity 20 of function (*Manager).Traverse() is high (> 15) (gocyclo)
    • Line 737: warning: cyclomatic complexity 17 of function (*Manager).deleteEdge() is high (> 15) (gocyclo)
    • Line 625: warning: cyclomatic complexity 17 of function (*Manager).RemoveEdge() is high (> 15) (gocyclo)
    • Line 109: warning: cyclomatic complexity 17 of function (*Manager).TraverseMulti() is high (> 15) (gocyclo)
    • eliasdb/storage/file/transactionmanager_test.go
    • Line 356: warning: cyclomatic complexity 26 of function TestRecover() is high (> 15) (gocyclo)
    • Line 28: warning: cyclomatic complexity 23 of function TestTransactionManagerInitialisation() is high (> 15) (gocyclo)
    • Line 226: warning: cyclomatic complexity 19 of function TestTMComplexHighLevelGetRelease() is high (> 15) (gocyclo)
    • eliasdb/cli/eliasdb.go
    • Line 292: warning: cyclomatic complexity 27 of function handleServerCommandLine() is high (> 15) (gocyclo)
    • Line 114: warning: cyclomatic complexity 22 of function RunCliConsole() is high (> 15) (gocyclo)
    • eliasdb/storage/slotting/physicalslotmanager_test.go
    • Line 297: warning: cyclomatic complexity 46 of function TestPhysicalSlotManagerReadWrite() is high (> 15) (gocyclo)
    • Line 26: warning: cyclomatic complexity 43 of function TestPhysicalSlotManager() is high (> 15) (gocyclo)
    • Line 567: warning: cyclomatic complexity 34 of function TestPhysicalSlotManagerAllocateNew() is high (> 15) (gocyclo)
    • eliasdb/graphql/interpreter/selectionset.go
    • Line 140: warning: cyclomatic complexity 38 of function (*selectionSetRuntime).ProcessNodes() is high (> 15) (gocyclo)
    • Line 358: warning: cyclomatic complexity 24 of function (*selectionSetRuntime).handleMutationArgs() is high (> 15) (gocyclo)
    • Line 518: warning: cyclomatic complexity 16 of function (*selectionSetRuntime).GetPlainFieldsAndAliases() is high (> 15) (gocyclo)
    • eliasdb/api/ac/user.go
    • Line 296: warning: cyclomatic complexity 28 of function (*userEndpoint).HandlePUT() is high (> 15) (gocyclo)
    • Line 205: warning: cyclomatic complexity 17 of function (*userEndpoint).HandlePOST() is high (> 15) (gocyclo)
    • eliasdb/api/v1/queryresult_test.go
    • Line 22: warning: cyclomatic complexity 39 of function TestResultGroupingWithState() is high (> 15) (gocyclo)
    • Line 464: warning: cyclomatic complexity 37 of function TestResultSelection() is high (> 15) (gocyclo)
    • Line 363: warning: cyclomatic complexity 20 of function TestResultGroupingSpecifiedGroup() is high (> 15) (gocyclo)
    • eliasdb/api/v1/queryresult.go
    • Line 140: warning: cyclomatic complexity 35 of function (*queryResultEndpoint).groupSelected() is high (> 15) (gocyclo)
    • Line 393: warning: cyclomatic complexity 16 of function (*queryResultEndpoint).selectRows() is high (> 15) (gocyclo)
    • eliasdb/graph/trans.go
    • Line 470: warning: cyclomatic complexity 31 of function (*baseTrans).commitEdges() is high (> 15) (gocyclo)
    • Line 318: warning: cyclomatic complexity 22 of function (*baseTrans).commitNodes() is high (> 15) (gocyclo)
    • eliasdb/ecal/dbfunc/edge_test.go
    • Line 22: warning: cyclomatic complexity 40 of function TestStoreAndRemoveEdge() is high (> 15) (gocyclo)
    • Line 231: warning: cyclomatic complexity 17 of function TestStoreEdgeTrans() is high (> 15) (gocyclo)

golint100%

Golint is a linter for Go source code.

No problems detected. Good job!


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!


misspell99%

Misspell Finds commonly misspelled English words