Gofmt formats Go programs. We run gofmt -s
on your code, where -s
is for the "simplify" command
No problems detected. Good job!
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!
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!
Golint is a linter for Go source code.
-
redisbloom-go/client.go
- Line 1: warning: don't use an underscore in package name (golint)
- Line 54: warning: don't use underscores in Go names; method parameter error_rate should be errorRate (golint)
- Line 137: warning: comment on exported method Client.BfScanDump should be of the form "BfScanDump ..." (golint)
- Line 152: warning: comment on exported method Client.BfLoadChunk should be of the form "BfLoadChunk ..." (golint)
- Line 159: warning: comment on exported method Client.BfInsert should be of the form "BfInsert ..." (golint)
- Line 197: warning: comment on exported method Client.TopkReserve should be of the form "TopkReserve ..." (golint)
- Line 205: warning: comment on exported method Client.TopkAdd should be of the form "TopkAdd ..." (golint)
- Line 214: warning: comment on exported method Client.TopkCount should be of the form "TopkCount ..." (golint)
- Line 223: warning: comment on exported method Client.TopkQuery should be of the form "TopkQuery ..." (golint)
- Line 232: warning: comment on exported method Client.TopkList should be of the form "TopkList ..." (golint)
- Line 240: warning: comment on exported method Client.TopkInfo should be of the form "TopkInfo ..." (golint)
- Line 269: warning: comment on exported method Client.TopkIncrBy should be of the form "TopkIncrBy ..." (golint)
- Line 281: warning: comment on exported method Client.CmsInitByDim should be of the form "CmsInitByDim ..." (golint)
- Line 289: warning: comment on exported method Client.CmsInitByProb should be of the form "CmsInitByProb ..." (golint)
- Line 297: warning: comment on exported method Client.CmsIncrBy should be of the form "CmsIncrBy ..." (golint)
- Line 309: warning: comment on exported method Client.CmsQuery should be of the form "CmsQuery ..." (golint)
- Line 318: warning: comment on exported method Client.CmsMerge should be of the form "CmsMerge ..." (golint)
- Line 330: warning: comment on exported method Client.CmsInfo should be of the form "CmsInfo ..." (golint)
- Line 337: warning: comment on exported method Client.CfReserve should be of the form "CfReserve ..." (golint)
- Line 354: warning: comment on exported method Client.CfAdd should be of the form "CfAdd ..." (golint)
- Line 361: warning: comment on exported method Client.CfAddNx should be of the form "CfAddNx ..." (golint)
- Line 368: warning: comment on exported method Client.CfInsert should be of the form "CfInsert ..." (golint)
- Line 376: warning: comment on exported method Client.CfInsertNx should be of the form "CfInsertNx ..." (golint)
- Line 384: warning: exported function GetInsertArgs should have comment or be unexported (golint)
- Line 396: warning: comment on exported method Client.CfExists should be of the form "CfExists ..." (golint)
- Line 403: warning: comment on exported method Client.CfDel should be of the form "CfDel ..." (golint)
- Line 410: warning: comment on exported method Client.CfCount should be of the form "CfCount ..." (golint)
- Line 417: warning: comment on exported method Client.CfScanDump should be of the form "CfScanDump ..." (golint)
- Line 432: warning: comment on exported method Client.CfLoadChunk should be of the form "CfLoadChunk ..." (golint)
- Line 439: warning: comment on exported method Client.CfInfo should be of the form "CfInfo ..." (golint)
- Line 446: warning: exported function ParseInfoReply should have comment or be unexported (golint)
-
redisbloom-go/client_test.go
- Line 1: warning: don't use an underscore in package name (golint)
- Line 136: warning: don't use underscores in Go names; var key_expansion should be keyExpansion (golint)
- Line 137: warning: don't use underscores in Go names; var key_nocreate should be keyNocreate (golint)
- Line 138: warning: don't use underscores in Go names; var key_noscaling should be keyNoscaling (golint)
- Line 372: warning: don't use underscores in Go names; var key_max_iterations should be keyMaxIterations (golint)
- Line 373: warning: don't use underscores in Go names; var key_expansion should be keyExpansion (golint)
-
redisbloom-go/pool.go
- Line 1: warning: don't use an underscore in package name (golint)
- Line 12: warning: exported type ConnPool should have comment or be unexported (golint)
- Line 17: warning: exported type SingleHostPool should have comment or be unexported (golint)
- Line 26: warning: exported function NewSingleHostPool should have comment or be unexported (golint)
- Line 36: warning: exported type MultiHostPool should have comment or be unexported (golint)
- Line 43: warning: exported method MultiHostPool.Close should have comment or be unexported (golint)
- Line 60: warning: exported function NewMultiHostPool should have comment or be unexported (golint)
- Line 68: warning: exported method MultiHostPool.Get should have comment or be unexported (golint)
Checks whether your project has a LICENSE file.
No problems detected. Good job!
IneffAssign detects ineffectual assignments in Go code.
-
redisbloom-go/client_test.go
- Line 199: warning: ineffectual assignment to err (ineffassign)
- Line 240: warning: ineffectual assignment to err (ineffassign)
- Line 245: warning: ineffectual assignment to info (ineffassign)
- Line 330: warning: ineffectual assignment to ret (ineffassign)
- Line 477: warning: ineffectual assignment to err (ineffassign)
- Line 487: warning: ineffectual assignment to err (ineffassign)
Misspell Finds commonly misspelled English words
No problems detected. Good job!