Preparing report...

Report for github.com/RedisGraph/redisgraph-go

C    Needs some work    Found 8 issues across 10 files

Tweet

gofmt40%

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


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!


gocyclo100%

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.

No problems detected. Good job!


golint20%

Golint is a linter for Go source code.

    • redisgraph-go/node.go
    • Line 17: warning: exported function NodeNew should have comment or be unexported (golint)
    • Line 32: warning: exported method Node.SetProperty should have comment or be unexported (golint)
    • Line 36: warning: exported method Node.GetProperty should have comment or be unexported (golint)
    • Line 55: warning: comment on exported method Node.Encode should be of the form "Encode ..." (golint)
    • redisgraph-go/path.go
    • Line 8: warning: exported type Path should have comment or be unexported (golint)
    • Line 13: warning: exported function PathNew should have comment or be unexported (golint)
    • Line 29: warning: exported method Path.GetNodes should have comment or be unexported (golint)
    • Line 33: warning: exported method Path.GetEdges should have comment or be unexported (golint)
    • Line 37: warning: exported method Path.GetNode should have comment or be unexported (golint)
    • Line 41: warning: exported method Path.GetEdge should have comment or be unexported (golint)
    • Line 45: warning: exported method Path.FirstNode should have comment or be unexported (golint)
    • Line 49: warning: exported method Path.LastNode should have comment or be unexported (golint)
    • Line 53: warning: exported method Path.NodesCount should have comment or be unexported (golint)
    • Line 57: warning: exported method Path.EdgeCount should have comment or be unexported (golint)
    • redisgraph-go/query_result.go
    • Line 13: warning: exported const LABELS_ADDED should have comment (or a comment on this block) or be unexported (golint)
    • Line 25: warning: exported type ResultSetColumnTypes should have comment or be unexported (golint)
    • Line 28: warning: exported const COLUMN_UNKNOWN should have comment (or a comment on this block) or be unexported (golint)
    • Line 34: warning: exported type ResultSetScalarTypes should have comment or be unexported (golint)
    • Line 37: warning: exported const VALUE_UNKNOWN should have comment (or a comment on this block) or be unexported (golint)
    • Line 50: warning: exported type QueryResultHeader should have comment or be unexported (golint)
    • Line 51: warning: don't use underscores in Go names; struct field column_names should be columnNames (golint)
    • Line 52: warning: don't use underscores in Go names; struct field column_types should be columnTypes (golint)
    • Line 61: warning: don't use underscores in Go names; struct field current_record_idx should be currentRecordIdx (golint)
    • Line 64: warning: exported function QueryResultNew should have comment or be unexported (golint)
    • Line 93: warning: exported method QueryResult.Empty should have comment or be unexported (golint)
    • Line 97: warning: don't use underscores in Go names; method parameter raw_result_set should be rawResultSet (golint)
    • Line 103: warning: don't use underscores in Go names; method parameter raw_statistics should be rawStatistics (golint)
    • Line 114: warning: don't use underscores in Go names; method parameter raw_header should be rawHeader (golint)
    • Line 127: warning: don't use underscores in Go names; method parameter raw_result_set should be rawResultSet (golint)
    • Line 162: warning: don't use underscores in Go names; var prop_name should be propName (golint)
    • Line 163: warning: don't use underscores in Go names; var prop_value should be propValue (golint)
    • Line 203: warning: don't use underscores in Go names; var src_node_id should be srcNodeID (golint)
    • Line 204: warning: don't use underscores in Go names; var dest_node_id should be destNodeID (golint)
    • Line 232: warning: don't use underscores in Go names; var raw_map should be rawMap (golint)
    • Line 234: warning: don't use underscores in Go names; var parsed_map should be parsedMap (golint)
    • Line 289: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 302: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 311: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 325: warning: don't use underscores in Go names; var row_count should be rowCount (golint)
    • Line 326: warning: don't use underscores in Go names; var col_count should be colCount (golint)
    • Line 349: warning: exported method QueryResult.LabelsAdded should have comment or be unexported (golint)
    • Line 353: warning: exported method QueryResult.NodesCreated should have comment or be unexported (golint)
    • Line 357: warning: exported method QueryResult.NodesDeleted should have comment or be unexported (golint)
    • Line 361: warning: exported method QueryResult.PropertiesSet should have comment or be unexported (golint)
    • Line 365: warning: exported method QueryResult.RelationshipsCreated should have comment or be unexported (golint)
    • Line 369: warning: exported method QueryResult.RelationshipsDeleted should have comment or be unexported (golint)
    • Line 373: warning: exported method QueryResult.IndicesCreated should have comment or be unexported (golint)
    • Line 377: warning: exported method QueryResult.IndicesDeleted should have comment or be unexported (golint)
    • Line 381: warning: comment on exported method QueryResult.InternalExecutionTime should be of the form "InternalExecutionTime ..." (golint)
    • Line 386: warning: exported method QueryResult.CachedExecution should have comment or be unexported (golint)
    • redisgraph-go/record.go
    • Line 3: warning: exported type Record should have comment or be unexported (golint)
    • Line 17: warning: exported method Record.Keys should have comment or be unexported (golint)
    • Line 21: warning: exported method Record.Values should have comment or be unexported (golint)
    • Line 25: warning: exported method Record.Get should have comment or be unexported (golint)
    • Line 35: warning: exported method Record.GetByIndex should have comment or be unexported (golint)
    • Line 38: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • redisgraph-go/utils.go
    • Line 21: warning: exported function ToString should have comment or be unexported (golint)
    • Line 44: warning: comment on exported function RandomString should be of the form "RandomString ..." (golint)
    • Line 69: warning: exported function BuildParamsHeader should have comment or be unexported (golint)
    • redisgraph-go/client_test.go
    • Line 251: warning: don't use underscores in Go names; var inner_map should be innerMap (golint)
    • Line 313: warning: don't use underscores in Go names; var params_map should be paramsMap (golint)
    • redisgraph-go/edge.go
    • Line 20: warning: exported function EdgeNew should have comment or be unexported (golint)
    • Line 35: warning: exported method Edge.SetProperty should have comment or be unexported (golint)
    • Line 39: warning: exported method Edge.GetProperty should have comment or be unexported (golint)
    • Line 44: warning: exported method Edge.SourceNodeID should have comment or be unexported (golint)
    • Line 47: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 52: warning: exported method Edge.DestNodeID should have comment or be unexported (golint)
    • Line 55: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 74: warning: exported method Edge.Encode should have comment or be unexported (golint)
    • redisgraph-go/graph.go
    • Line 23: warning: comment on exported function GraphNew should be of the form "GraphNew ..." (golint)
    • Line 122: warning: exported method Graph.ParameterizedQuery should have comment or be unexported (golint)
    • Line 215: warning: comment on exported method Graph.Labels should be of the form "Labels ..." (golint)
    • Line 227: warning: comment on exported method Graph.RelationshipTypes should be of the form "RelationshipTypes ..." (golint)
    • Line 239: warning: comment on exported method Graph.PropertyKeys should be of the form "PropertyKeys ..." (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!