Preparing report...

Report for gopkg.in/zegl/goriak.v3

A+    Excellent!    Found 24 issues across 44 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!


gocyclo86%

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.

    • goriak.v3/auto_map_decode.go
    • Line 24: warning: cyclomatic complexity 44 of function transMapToStruct() is high (> 15) (gocyclo)
    • Line 319: warning: cyclomatic complexity 27 of function bytesToValue() is high (> 15) (gocyclo)
    • Line 220: warning: cyclomatic complexity 19 of function transRiakToSlice() is high (> 15) (gocyclo)
    • goriak.v3/json.go
    • Line 14: warning: cyclomatic complexity 24 of function (*Command).SetJSON() is high (> 15) (gocyclo)
    • goriak.v3/filter.go
    • Line 20: warning: cyclomatic complexity 21 of function (*MapSetCommand).filterAllowPath() is high (> 15) (gocyclo)

golint63%

Golint is a linter for Go source code.

    • goriak.v3/all_keys.go
    • Line 8: warning: exported type AllKeysCommand should have comment or be unexported (golint)
    • Line 29: warning: exported method AllKeysCommand.Run should have comment or be unexported (golint)
    • goriak.v3/hll_get.go
    • Line 9: warning: exported type FetchHyperLogLogCommand should have comment or be unexported (golint)
    • Line 14: warning: exported type HyperLogLogResult should have comment or be unexported (golint)
    • Line 20: warning: exported method Command.GetHyperLogLog should have comment or be unexported (golint)
    • Line 32: warning: exported method FetchHyperLogLogCommand.WithPr should have comment or be unexported (golint)
    • Line 37: warning: exported method FetchHyperLogLogCommand.WithR should have comment or be unexported (golint)
    • Line 42: warning: exported method FetchHyperLogLogCommand.Run should have comment or be unexported (golint)
    • goriak.v3/map_operation.go
    • Line 8: warning: exported type MapOperationCommand should have comment or be unexported (golint)
    • Line 26: warning: exported method MapOperationCommand.Context should have comment or be unexported (golint)
    • Line 31: warning: exported method MapOperationCommand.Key should have comment or be unexported (golint)
    • Line 36: warning: exported method MapOperationCommand.Run should have comment or be unexported (golint)
    • goriak.v3/flag.go
    • Line 10: warning: exported function NewFlag should have comment or be unexported (golint)
    • Line 14: warning: exported type Flag should have comment or be unexported (golint)
    • Line 20: warning: exported method Flag.Value should have comment or be unexported (golint)
    • Line 24: warning: exported method Flag.Set should have comment or be unexported (golint)
    • Line 29: warning: exported method Flag.Exec should have comment or be unexported (golint)
    • goriak.v3/keys_in_index.go
    • Line 15: warning: exported type CommandKeysInIndex should have comment or be unexported (golint)
    • Line 20: warning: exported type KeysInIndexResult should have comment or be unexported (golint)
    • Line 82: warning: exported method CommandKeysInIndex.IndexContinuation should have comment or be unexported (golint)
    • Line 87: warning: exported method CommandKeysInIndex.Run should have comment or be unexported (golint)
    • goriak.v3/map_get.go
    • Line 8: warning: exported type MapGetCommand should have comment or be unexported (golint)
    • Line 32: warning: exported method MapGetCommand.Run should have comment or be unexported (golint)
    • goriak.v3/map_set.go
    • Line 14: warning: exported type MapSetCommand should have comment or be unexported (golint)
    • Line 57: warning: exported method MapSetCommand.Key should have comment or be unexported (golint)
    • Line 145: warning: exported method MapSetCommand.Run should have comment or be unexported (golint)
    • goriak.v3/middleware.go
    • Line 3: warning: exported type RunMiddlewarer should have comment or be unexported (golint)
    • Line 9: warning: exported type RunMiddleware should have comment or be unexported (golint)
    • goriak.v3/query_get_value.go
    • Line 9: warning: exported type GetRawCommand should have comment or be unexported (golint)
    • Line 31: warning: exported method GetRawCommand.ConflictResolver should have comment or be unexported (golint)
    • Line 81: warning: exported method GetRawCommand.WithPr should have comment or be unexported (golint)
    • Line 86: warning: exported method GetRawCommand.WithR should have comment or be unexported (golint)
    • Line 113: warning: exported method GetRawCommand.Run should have comment or be unexported (golint)
    • goriak.v3/siblings.go
    • Line 7: warning: exported type ConflictObject should have comment or be unexported (golint)
    • Line 13: warning: exported type ResolvedConflict should have comment or be unexported (golint)
    • goriak.v3/register.go
    • Line 10: warning: exported function NewRegister should have comment or be unexported (golint)
    • Line 14: warning: exported type Register should have comment or be unexported (golint)
    • Line 20: warning: exported method Register.Value should have comment or be unexported (golint)
    • Line 28: warning: exported method Register.Set should have comment or be unexported (golint)
    • Line 33: warning: exported method Register.SetString should have comment or be unexported (golint)
    • Line 38: warning: exported method Register.Exec should have comment or be unexported (golint)
    • goriak.v3/delete.go
    • Line 8: warning: exported type DeleteCommand should have comment or be unexported (golint)
    • Line 26: warning: exported method DeleteCommand.WithDw should have comment or be unexported (golint)
    • Line 37: warning: exported method DeleteCommand.WithPr should have comment or be unexported (golint)
    • Line 42: warning: exported method DeleteCommand.WithR should have comment or be unexported (golint)
    • Line 53: warning: exported method DeleteCommand.Run should have comment or be unexported (golint)
    • goriak.v3/hll_update.go
    • Line 8: warning: exported type UpdateHyperLogLogCommand should have comment or be unexported (golint)
    • Line 14: warning: exported method Command.UpdateHyperLogLog should have comment or be unexported (golint)
    • Line 24: warning: exported method UpdateHyperLogLogCommand.Add should have comment or be unexported (golint)
    • Line 29: warning: exported method UpdateHyperLogLogCommand.AddMultiple should have comment or be unexported (golint)
    • Line 34: warning: exported method UpdateHyperLogLogCommand.Key should have comment or be unexported (golint)
    • Line 58: warning: exported method UpdateHyperLogLogCommand.ReturnBody should have comment or be unexported (golint)
    • goriak.v3/query_store_value.go
    • Line 8: warning: exported type SetRawCommand should have comment or be unexported (golint)
    • Line 22: warning: exported method SetRawCommand.Key should have comment or be unexported (golint)
    • Line 28: warning: exported method SetRawCommand.AddToIndex should have comment or be unexported (golint)
    • Line 33: warning: comment on exported method SetRawCommand.WithDw should be of the form "WithDw ..." (golint)
    • Line 39: warning: comment on exported method SetRawCommand.WithPw should be of the form "WithPw ..." (golint)
    • Line 45: warning: comment on exported method SetRawCommand.WithW should be of the form "WithW ..." (golint)
    • Line 51: warning: exported method SetRawCommand.WithContext should have comment or be unexported (golint)
    • Line 56: warning: comment on exported method SetRawCommand.Run should be of the form "Run ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign95%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!