Preparing report...

Report for github.com/aerospike/aerospike-client-go

(v3.1.1+incompatible)

A+    Excellent!    Found 61 issues across 228 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!


gofmt79%

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!


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.

    • value.go
    • Line 66: warning: cyclomatic complexity 166 of function tryConcreteValue() is high (> 15) (gocyclo)
    • unpacker.go
    • Line 244: warning: cyclomatic complexity 36 of function (*unpacker).unpackObject() is high (> 15) (gocyclo)
    • packer.go
    • Line 215: warning: cyclomatic complexity 34 of function packObject() is high (> 15) (gocyclo)
    • node_validator.go
    • Line 147: warning: cyclomatic complexity 30 of function (*nodeValidator).validateAlias() is high (> 15) (gocyclo)
    • multi_command.go
    • Line 232: warning: cyclomatic complexity 21 of function (*baseMultiCommand).parseRecordResults() is high (> 15) (gocyclo)
    • node.go
    • Line 114: warning: cyclomatic complexity 18 of function (*Node).Refresh() is high (> 15) (gocyclo)
    • batch_command_get.go
    • Line 127: warning: cyclomatic complexity 17 of function (*batchCommandGet).parseRecordResults() is high (> 15) (gocyclo)
    • cdt_list.go
    • Line 198: warning: cyclomatic complexity 16 of function packCDTParamsAsArray() is high (> 15) (gocyclo)
    • Line 268: warning: cyclomatic complexity 16 of function packCDTIfcVarParamsAsArray() is high (> 15) (gocyclo)
    • command.go
    • Line 923: warning: cyclomatic complexity 48 of function (*baseCommand).setQuery() is high (> 15) (gocyclo)
    • Line 1798: warning: cyclomatic complexity 41 of function (*baseCommand).executeAt() is high (> 15) (gocyclo)
    • Line 672: warning: cyclomatic complexity 31 of function (*baseCommand).setBatchIndexRead() is high (> 15) (gocyclo)
    • Line 408: warning: cyclomatic complexity 25 of function (*baseCommand).setOperate() is high (> 15) (gocyclo)
    • Line 550: warning: cyclomatic complexity 24 of function (*baseCommand).setBatchIndexReadCompat() is high (> 15) (gocyclo)
    • Line 818: warning: cyclomatic complexity 18 of function (*baseCommand).setScan() is high (> 15) (gocyclo)
    • Line 152: warning: cyclomatic complexity 17 of function (*baseCommand).setWrite() is high (> 15) (gocyclo)
    • Line 1305: warning: cyclomatic complexity 17 of function (*baseCommand).writeHeaderWithPolicy() is high (> 15) (gocyclo)
    • cluster.go
    • Line 226: warning: cyclomatic complexity 31 of function (*Cluster).tend() is high (> 15) (gocyclo)
    • marshal.go
    • Line 64: warning: cyclomatic complexity 23 of function valueToInterface() is high (> 15) (gocyclo)
    • partition_parser.go
    • Line 118: warning: cyclomatic complexity 21 of function (*partitionParser).parseReplicasAll() is high (> 15) (gocyclo)
    • read_command.go
    • Line 83: warning: cyclomatic complexity 20 of function (*readCommand).parseResult() is high (> 15) (gocyclo)
    • login_command.go
    • Line 57: warning: cyclomatic complexity 19 of function (*loginCommand).login() is high (> 15) (gocyclo)
    • packer_reflect.go
    • Line 30: warning: cyclomatic complexity 16 of function concretePackObjectReflect() 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!