Preparing report...

Report for github.com/hokonco/kitgo

A+    Excellent!    Found 14 issues across 31 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!


golint54%

Golint is a linter for Go source code.

    • kitgo/kit.wrap.dir.go
    • Line 10: warning: exported var Dir should have comment or be unexported (golint)
    • Line 12: warning: don't use underscores in Go names; type dir_ should be dir (golint)
    • Line 14: warning: exported type DirConfig should have comment or be unexported (golint)
    • Line 22: warning: exported type DirWrapper should have comment or be unexported (golint)
    • Line 26: warning: exported type FilterFunc should have comment or be unexported (golint)
    • Line 28: warning: exported method DirWrapper.Dirs should have comment or be unexported (golint)
    • Line 39: warning: exported method DirWrapper.Files should have comment or be unexported (golint)
    • Line 50: warning: exported method DirWrapper.FilesInfo should have comment or be unexported (golint)
    • Line 53: warning: exported method DirWrapper.Filter should have comment or be unexported (golint)
    • Line 65: warning: exported method DirWrapper.Walk should have comment or be unexported (golint)
    • kitgo/kit.wrap.graphics.go
    • Line 14: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 17: warning: exported var Graphics should have comment or be unexported (golint)
    • Line 19: warning: don't use underscores in Go names; type graphics_ should be graphics (golint)
    • Line 23: warning: exported type GraphicsConfig should have comment or be unexported (golint)
    • Line 29: warning: exported type GraphicsWrapper should have comment or be unexported (golint)
    • Line 31: warning: exported method GraphicsWrapper.Blur should have comment or be unexported (golint)
    • Line 45: warning: exported method GraphicsWrapper.Rotate should have comment or be unexported (golint)
    • Line 59: warning: exported method GraphicsWrapper.Scale should have comment or be unexported (golint)
    • Line 72: warning: exported method GraphicsWrapper.Thumbnail should have comment or be unexported (golint)
    • Line 85: warning: exported method GraphicsWrapper.DecodeConfig should have comment or be unexported (golint)
    • Line 88: warning: exported method GraphicsWrapper.Decode should have comment or be unexported (golint)
    • Line 91: warning: exported method GraphicsWrapper.Encode should have comment or be unexported (golint)
    • Line 110: warning: exported method GraphicsWrapper.SubImage should have comment or be unexported (golint)
    • Line 119: warning: exported method GraphicsWrapper.Rect should have comment or be unexported (golint)
    • kitgo/kit.wrap.log.go
    • Line 12: warning: exported var Log should have comment or be unexported (golint)
    • Line 14: warning: don't use underscores in Go names; type log_ should be log (golint)
    • Line 16: warning: exported type LogConfig should have comment or be unexported (golint)
    • Line 24: warning: exported type ConsoleWriter should have comment or be unexported (golint)
    • Line 26: warning: exported method LogConfig.ConsoleWriter should have comment or be unexported (golint)
    • Line 27: warning: exported method LogConfig.MultiWriter should have comment or be unexported (golint)
    • Line 70: warning: exported method LogWrapper.UseErrorStackMarshaler should have comment or be unexported (golint)
    • Line 78: warning: exported method LogWrapper.Z should have comment or be unexported (golint)
    • kitgo/kit.wrap.ristretto.go
    • Line 9: warning: exported var Ristretto should have comment or be unexported (golint)
    • Line 11: warning: don't use underscores in Go names; type ristretto_ should be ristretto (golint)
    • Line 21: warning: exported type RistrettoConfig should have comment or be unexported (golint)
    • Line 22: warning: exported type RistrettoWrapper should have comment or be unexported (golint)
    • Line 23: warning: exported type RistrettoCacheI should have comment or be unexported (golint)
    • Line 31: warning: exported type RistrettoCacheMetricsI should have comment or be unexported (golint)
    • kitgo/kit_mock.go
    • Line 1: warning: package comment should be of the form "Package kitgo ..." (golint)
    • Line 19: warning: exported type FsFileInfo should have comment or be unexported (golint)
    • Line 20: warning: exported type NetAddr should have comment or be unexported (golint)
    • Line 21: warning: exported type NetConn should have comment or be unexported (golint)
    • Line 22: warning: exported type NetDialer should have comment or be unexported (golint)
    • Line 26: warning: exported type NetResolver should have comment or be unexported (golint)
    • Line 38: warning: exported type SmtpClient should have comment or be unexported (golint)
    • kitgo/kit.go
    • Line 32: warning: exported method Dict.Set should have comment or be unexported (golint)
    • Line 34: warning: exported method Dict.Delete should have comment or be unexported (golint)
    • Line 36: warning: exported method Dict.Map should have comment or be unexported (golint)
    • Line 57: warning: exported method List.Add should have comment or be unexported (golint)
    • Line 59: warning: exported method List.Delete should have comment or be unexported (golint)
    • Line 68: warning: exported method List.Map should have comment or be unexported (golint)
    • Line 78: warning: exported function NewErrors should have comment or be unexported (golint)
    • Line 245: warning: exported var Base64 should have comment or be unexported (golint)
    • Line 247: warning: don't use underscores in Go names; type base64_ should be base64 (golint)
    • Line 254: warning: exported type Base64Wrapper should have comment or be unexported (golint)
    • Line 256: warning: exported method Base64Wrapper.BtoA should have comment or be unexported (golint)
    • Line 261: warning: exported method Base64Wrapper.AtoB should have comment or be unexported (golint)
    • Line 271: warning: comment on exported function ShouldCover should be of the form "ShouldCover ..." (golint)
    • kitgo/kit.wrap.redis.go
    • Line 11: warning: don't use underscores in Go names; type redis_ should be redis (golint)
    • Line 22: warning: exported type RedisConfig should have comment or be unexported (golint)
    • Line 23: warning: exported type RedisWrapper should have comment or be unexported (golint)
    • Line 24: warning: exported type RedisMock should have comment or be unexported (golint)
    • kitgo/kit.wrap.http.go
    • Line 22: warning: exported var HTTP should have comment or be unexported (golint)
    • Line 24: warning: don't use underscores in Go names; type http_ should be http (golint)
    • Line 35: warning: don't use underscores in Go names; type httpClient_ should be httpClient (golint)
    • Line 47: warning: exported type HTTPClientWrapper should have comment or be unexported (golint)
    • Line 49: warning: exported type HTTPClientMock should have comment or be unexported (golint)
    • Line 55: warning: comment on exported method HTTPClientMock.Expect should be of the form "Expect ..." (golint)
    • Line 63: warning: exported method HTTPClientMock.URL should have comment or be unexported (golint)
    • Line 71: warning: don't use underscores in Go names; type httpTransport_ should be httpTransport (golint)
    • Line 89: warning: exported type HTTPClientTrace should have comment or be unexported (golint)
    • Line 91: warning: exported method HTTPTransportWrapper.WithBase should have comment or be unexported (golint)
    • Line 95: warning: exported method HTTPTransportWrapper.WithTrace should have comment or be unexported (golint)
    • Line 99: warning: exported method HTTPTransportWrapper.OnRequest should have comment or be unexported (golint)
    • Line 103: warning: exported method HTTPTransportWrapper.OnResponse should have comment or be unexported (golint)
    • Line 108: warning: exported method HTTPTransportWrapper.RoundTrip should have comment or be unexported (golint)
    • Line 136: warning: exported method HTTPTransportWrapper.DumpOnResponse should have comment or be unexported (golint)
    • Line 144: warning: exported method HTTPTransportWrapper.DumpOnRequest should have comment or be unexported (golint)
    • Line 157: warning: don't use underscores in Go names; type httpServer_ should be httpServer (golint)
    • Line 161: warning: exported type HTTPServerWrapper should have comment or be unexported (golint)
    • Line 202: warning: don't use underscores in Go names; type httpHandler_ should be httpHandler (golint)
    • Line 672: warning: exported type HTTPReverseProxy should have comment or be unexported (golint)
    • Line 684: warning: exported const AcceptEncoding should have comment (or a comment on this block) or be unexported (golint)
    • kitgo/kit.wrap.prometheus.go
    • Line 11: warning: exported var Prometheus should have comment or be unexported (golint)
    • Line 13: warning: don't use underscores in Go names; type prometheus_ should be prometheus (golint)
    • Line 24: warning: exported type PrometheusConfig should have comment or be unexported (golint)
    • Line 28: warning: exported type PrometheusWrapper should have comment or be unexported (golint)
    • Line 30: warning: exported method PrometheusWrapper.CounterVec should have comment or be unexported (golint)
    • Line 35: warning: exported method PrometheusWrapper.GaugeVec should have comment or be unexported (golint)
    • Line 40: warning: exported method PrometheusWrapper.HistogramVec should have comment or be unexported (golint)
    • Line 45: warning: exported method PrometheusWrapper.SummaryVec should have comment or be unexported (golint)
    • Line 55: warning: exported type PrometheusMock should have comment or be unexported (golint)
    • Line 57: warning: exported method PrometheusMock.ToFloat64 should have comment or be unexported (golint)
    • Line 60: warning: exported method PrometheusMock.CollectAndCompare should have comment or be unexported (golint)
    • Line 63: warning: exported method PrometheusMock.CollectAndCount should have comment or be unexported (golint)
    • Line 66: warning: exported method PrometheusMock.CollectAndLint should have comment or be unexported (golint)
    • kitgo/kit.wrap.smtp.go
    • Line 18: warning: don't use underscores in Go names; type smtp_ should be smtp (golint)
    • Line 20: warning: exported type SMTPConfig should have comment or be unexported (golint)
    • Line 43: warning: exported type NetSMTPWrapper should have comment or be unexported (golint)
    • Line 53: warning: exported method NetSMTPWrapper.ReverseLookup should have comment or be unexported (golint)
    • Line 83: warning: exported method NetSMTPWrapper.SendMail should have comment or be unexported (golint)
    • Line 168: warning: exported type NetSMTPMock should have comment or be unexported (golint)
    • Line 170: warning: exported method NetSMTPMock.WithNetDialer should have comment or be unexported (golint)
    • Line 173: warning: exported method NetSMTPMock.WithNetResolver should have comment or be unexported (golint)
    • Line 176: warning: exported method NetSMTPMock.WithNewSmtpClient should have comment or be unexported (golint)
    • Line 179: warning: exported method NetSMTPMock.WithSendMail should have comment or be unexported (golint)
    • kitgo/kit.wrap.compress.go
    • Line 20: warning: exported var Compress should have comment or be unexported (golint)
    • Line 22: warning: don't use underscores in Go names; type compress_ should be compress (golint)
    • Line 56: warning: exported type Client should have comment or be unexported (golint)
    • Line 63: warning: exported type Brotli should have comment or be unexported (golint)
    • Line 67: warning: exported type Flate should have comment or be unexported (golint)
    • Line 71: warning: exported type Gzip should have comment or be unexported (golint)
    • Line 75: warning: exported type Minify should have comment or be unexported (golint)
    • Line 135: warning: exported method Minify.WithMediaType should have comment or be unexported (golint)
    • kitgo/kit.wrap.crypto.go
    • Line 31: warning: exported var Crypto should have comment or be unexported (golint)
    • Line 33: warning: don't use underscores in Go names; type crypto_ should be crypto (golint)
    • Line 37: warning: exported type CryptoWrapper should have comment or be unexported (golint)
    • Line 39: warning: exported method CryptoWrapper.SHA256 should have comment or be unexported (golint)
    • Line 41: warning: exported method CryptoWrapper.SHA512 should have comment or be unexported (golint)
    • Line 43: warning: exported method CryptoWrapper.Nonce should have comment or be unexported (golint)
    • Line 49: warning: exported method CryptoWrapper.NewNaCl should have comment or be unexported (golint)
    • Line 51: warning: exported method CryptoWrapper.NewAESGCM should have comment or be unexported (golint)
    • Line 58: warning: exported method CryptoWrapper.NewRSA should have comment or be unexported (golint)
    • Line 65: warning: exported method CryptoWrapper.ReadRSA should have comment or be unexported (golint)
    • Line 79: warning: exported method CryptoWrapper.NewECDSA should have comment or be unexported (golint)
    • Line 86: warning: exported method CryptoWrapper.ReadECDSA should have comment or be unexported (golint)
    • Line 100: warning: exported method CryptoWrapper.NewTLSConfig should have comment or be unexported (golint)
    • Line 108: warning: don't use underscores in Go names; var crt_ should be crt (golint)
    • Line 118: warning: exported method CryptoWrapper.BCrypt should have comment or be unexported (golint)
    • Line 122: warning: exported method CryptoWrapper.BCryptCompareHashAndPassword should have comment or be unexported (golint)
    • Line 125: warning: exported method CryptoWrapper.SCrypt should have comment or be unexported (golint)
    • Line 134: warning: exported method CryptoWrapper.SCryptCompareHashAndPassword should have comment or be unexported (golint)
    • Line 143: warning: exported method CryptoWrapper.Argon2I should have comment or be unexported (golint)
    • Line 152: warning: exported method CryptoWrapper.Argon2ICompareHashAndPassword should have comment or be unexported (golint)
    • Line 161: warning: exported method CryptoWrapper.Argon2ID should have comment or be unexported (golint)
    • Line 170: warning: exported method CryptoWrapper.Argon2IDCompareHashAndPassword should have comment or be unexported (golint)
    • Line 180: warning: exported type AESGCM should have comment or be unexported (golint)
    • Line 182: warning: exported method AESGCM.Open should have comment or be unexported (golint)
    • Line 189: warning: exported method AESGCM.Seal should have comment or be unexported (golint)
    • Line 197: warning: exported type RSA should have comment or be unexported (golint)
    • Line 209: warning: exported method RSA.EncryptOAEP should have comment or be unexported (golint)
    • Line 212: warning: exported method RSA.DecryptOAEP should have comment or be unexported (golint)
    • Line 215: warning: exported method RSA.EncryptPKCS1v15 should have comment or be unexported (golint)
    • Line 218: warning: exported method RSA.DecryptPKCS1v15 should have comment or be unexported (golint)
    • Line 222: warning: exported type ECDSA should have comment or be unexported (golint)
    • Line 234: warning: exported method ECDSA.SignASN1 should have comment or be unexported (golint)
    • Line 240: warning: exported method ECDSA.VerifyASN1 should have comment or be unexported (golint)
    • Line 243: warning: exported method ECDSA.Sign should have comment or be unexported (golint)
    • Line 246: warning: exported method ECDSA.Verify should have comment or be unexported (golint)
    • Line 250: warning: exported type NaCl should have comment or be unexported (golint)
    • Line 252: warning: exported method NaCl.AuthSum should have comment or be unexported (golint)
    • Line 256: warning: exported method NaCl.AuthVerify should have comment or be unexported (golint)
    • Line 259: warning: exported method NaCl.BoxKeyPair should have comment or be unexported (golint)
    • Line 262: warning: exported method NaCl.BoxPrecompute should have comment or be unexported (golint)
    • Line 267: warning: exported method NaCl.BoxOpen should have comment or be unexported (golint)
    • Line 267: warning: don't use underscores in Go names; method parameter box_ should be box (golint)
    • Line 272: warning: exported method NaCl.BoxOpenAfterPrecomputation should have comment or be unexported (golint)
    • Line 272: warning: don't use underscores in Go names; method parameter box_ should be box (golint)
    • Line 277: warning: exported method NaCl.BoxOpenAnonymous should have comment or be unexported (golint)
    • Line 277: warning: don't use underscores in Go names; method parameter box_ should be box (golint)
    • Line 280: warning: exported method NaCl.BoxSeal should have comment or be unexported (golint)
    • Line 286: warning: exported method NaCl.BoxSealAfterPrecomputation should have comment or be unexported (golint)
    • Line 292: warning: exported method NaCl.BoxSealAnonymous should have comment or be unexported (golint)
    • Line 295: warning: exported method NaCl.SecretBoxOpen should have comment or be unexported (golint)
    • Line 295: warning: don't use underscores in Go names; method parameter box_ should be box (golint)
    • Line 300: warning: exported method NaCl.SecretBoxSeal should have comment or be unexported (golint)
    • Line 305: warning: exported method NaCl.SignKeyPair should have comment or be unexported (golint)
    • Line 308: warning: exported method NaCl.SignOpen should have comment or be unexported (golint)
    • Line 311: warning: exported method NaCl.Sign should have comment or be unexported (golint)
    • kitgo/kit.wrap.sql.go
    • Line 17: warning: don't use underscores in Go names; type sql_ should be sql (golint)
    • Line 34: warning: exported type SQLConfig should have comment or be unexported (golint)
    • Line 42: warning: exported type SQLWrapper should have comment or be unexported (golint)
    • Line 73: warning: don't use underscores in Go names; var err_ should be err (golint)
    • Line 83: warning: exported type SQLStatement should have comment or be unexported (golint)
    • Line 85: warning: comment on exported method SQLStatement.Exec should be of the form "Exec ..." (golint)
    • Line 99: warning: comment on exported method SQLStatement.Query should be of the form "Query ..." (golint)
    • Line 132: warning: comment on exported method SQLStatement.QueryRow should be of the form "QueryRow ..." (golint)
    • Line 164: warning: exported type SQLResultExec should have comment or be unexported (golint)
    • Line 165: warning: exported type SQLResultQuery should have comment or be unexported (golint)
    • Line 166: warning: exported type SQLResultQueryRow should have comment or be unexported (golint)
    • Line 168: warning: exported type SQLMock should have comment or be unexported (golint)
    • Line 170: warning: exported method SQLMock.NewRows should have comment or be unexported (golint)
    • Line 172: warning: exported method SQLMock.NewResult should have comment or be unexported (golint)
    • kitgo/kit.wrap.template.go
    • Line 10: warning: exported var Template should have comment or be unexported (golint)
    • Line 21: warning: don't use underscores in Go names; type html_ should be html (golint)
    • Line 22: warning: don't use underscores in Go names; type text_ should be text (golint)
    • Line 34: warning: exported type HTMLTemplateWrapper should have comment or be unexported (golint)
    • Line 35: warning: exported type TextTemplateWrapper should have comment or be unexported (golint)

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!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell93%

Misspell Finds commonly misspelled English words