Preparing report...

Report for github.com/tickstep/library-go

A    Great!    Found 27 issues across 53 files

Tweet

gofmt83%

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!


gocyclo96%

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.


golint60%

Golint is a linter for Go source code.

    • library-go/requester/rio/speeds/ratelimit.go
    • Line 10: warning: exported type RateLimit should have comment or be unexported (golint)
    • Line 25: warning: exported function NewRateLimit should have comment or be unexported (golint)
    • Line 31: warning: exported method RateLimit.SetInterval should have comment or be unexported (golint)
    • Line 42: warning: exported method RateLimit.Stop should have comment or be unexported (golint)
    • Line 81: warning: exported method RateLimit.Add should have comment or be unexported (golint)
    • library-go/expires/expires.go
    • Line 10: warning: exported type Expires should have comment or be unexported (golint)
    • Line 31: warning: exported function NewExpires should have comment or be unexported (golint)
    • Line 39: warning: exported function NewExpiresAt should have comment or be unexported (golint)
    • library-go/crypto/rsa.go
    • Line 11: warning: comment on exported function RsaEncrypt should be of the form "RsaEncrypt ..." (golint)
    • Line 29: warning: comment on exported function RsaDecrypt should be of the form "RsaDecrypt ..." (golint)
    • library-go/util/bcypto.go
    • Line 10: warning: exported function PasswordBCrypto should have comment or be unexported (golint)
    • Line 15: warning: exported function VerifyPassword should have comment or be unexported (golint)
    • library-go/expires/cachemap/cachemap.go
    • Line 9: warning: exported var GlobalCacheOpMap should have comment or be unexported (golint)
    • Line 13: warning: exported type CacheOpMap should have comment or be unexported (golint)
    • Line 18: warning: exported method CacheOpMap.LazyInitCachePoolOp should have comment or be unexported (golint)
    • Line 23: warning: exported method CacheOpMap.RemoveCachePoolOp should have comment or be unexported (golint)
    • library-go/crypto/aes.go
    • Line 23: warning: comment on exported function EncryptAES should be of the form "EncryptAES ..." (golint)
    • Line 35: warning: comment on exported function DecryptAES should be of the form "DecryptAES ..." (golint)
    • library-go/requester/fetch.go
    • Line 146: warning: exported method HTTPClient.DoGet should have comment or be unexported (golint)
    • Line 150: warning: exported method HTTPClient.DoPost should have comment or be unexported (golint)
    • library-go/ids/ids.go
    • Line 10: warning: exported const DefaultUniqueId should have comment (or a comment on this block) or be unexported (golint)
    • Line 13: warning: exported function GetUniqueId should have comment or be unexported (golint)
    • library-go/expires/cachemap/utils.go
    • Line 8: warning: exported type OpFunc should have comment or be unexported (golint)
    • Line 9: warning: exported type OpFuncWithError should have comment or be unexported (golint)
    • Line 12: warning: exported method CacheOpMap.CacheOperation should have comment or be unexported (golint)
    • Line 32: warning: exported method CacheOpMap.CacheOperationWithError should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign94%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!