Preparing report...

Report for github.com/alien-bunny/ab

A+    Excellent!    Found 60 issues across 141 files

Tweet

gofmt98%

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!


gocyclo98%

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.

    • ab/lib/env/env.go
    • Line 81: warning: cyclomatic complexity 22 of function (*Unmarshaler).unmarshal() is high (> 15) (gocyclo)

golint57%

Golint is a linter for Go source code.

    • ab/lib/collectionloader/directory.go
    • Line 25: warning: exported type Directory should have comment or be unexported (golint)
    • Line 31: warning: exported function NewDirectory should have comment or be unexported (golint)
    • Line 39: warning: exported method Directory.Load should have comment or be unexported (golint)
    • ab/lib/middleware/middleware.go
    • Line 22: warning: exported type HandlerWrapper should have comment or be unexported (golint)
    • Line 26: warning: exported type HasMiddlewareDependencies should have comment or be unexported (golint)
    • Line 30: warning: exported type Middleware should have comment or be unexported (golint)
    • Line 35: warning: exported type Func should have comment or be unexported (golint)
    • Line 37: warning: exported method Func.Wrap should have comment or be unexported (golint)
    • Line 41: warning: exported method Func.Dependencies should have comment or be unexported (golint)
    • Line 62: warning: exported function WrapHandler should have comment or be unexported (golint)
    • Line 69: warning: exported function WrapHandlerFunc should have comment or be unexported (golint)
    • Line 73: warning: exported type Stack should have comment or be unexported (golint)
    • Line 79: warning: exported function NewStack should have comment or be unexported (golint)
    • Line 87: warning: exported method Stack.ValidateHandler should have comment or be unexported (golint)
    • Line 140: warning: exported method Stack.Push should have comment or be unexported (golint)
    • Line 151: warning: exported method Stack.Shift should have comment or be unexported (golint)
    • Line 162: warning: exported method Stack.Wrap should have comment or be unexported (golint)
    • Line 170: warning: exported type DependencyError should have comment or be unexported (golint)
    • Line 179: warning: exported type NoDependencies should have comment or be unexported (golint)
    • Line 181: warning: exported method NoDependencies.Dependencies should have comment or be unexported (golint)
    • ab/lib/translation/translate.go
    • Line 27: warning: comment on exported const DELIMITER should be of the form "DELIMITER ..." (golint)
    • Line 33: warning: exported type Translator should have comment or be unexported (golint)
    • Line 43: warning: exported function NewTranslator should have comment or be unexported (golint)
    • Line 51: warning: exported method Translator.SetTranslations should have comment or be unexported (golint)
    • Line 64: warning: exported method Translator.SetPluralForms should have comment or be unexported (golint)
    • Line 70: warning: exported method Translator.DefaultPluralForms should have comment or be unexported (golint)
    • Line 112: warning: exported method Translator.Translate should have comment or be unexported (golint)
    • Line 124: warning: exported method Translator.FormatPlural should have comment or be unexported (golint)
    • Line 147: warning: exported method Translator.Instance should have comment or be unexported (golint)
    • Line 153: warning: exported method Translator.PluralInstance should have comment or be unexported (golint)
    • ab/lib/log/log.go
    • Line 34: warning: exported type Logger should have comment or be unexported (golint)
    • Line 35: warning: exported type LoggerFunc should have comment or be unexported (golint)
    • Line 36: warning: exported type Option should have comment or be unexported (golint)
    • Line 38: warning: exported function With should have comment or be unexported (golint)
    • Line 42: warning: exported function WithPrefix should have comment or be unexported (golint)
    • Line 143: warning: exported function DefaultProdLogger should have comment or be unexported (golint)
    • Line 147: warning: exported function NewProdLogger should have comment or be unexported (golint)
    • Line 153: warning: exported function DefaultJSONLogger should have comment or be unexported (golint)
    • Line 157: warning: exported function NewJSONLogger should have comment or be unexported (golint)
    • Line 163: warning: exported function DefaultDevLogger should have comment or be unexported (golint)
    • Line 167: warning: exported function NewDevLogger should have comment or be unexported (golint)
    • Line 173: warning: exported type ValueFormatter should have comment or be unexported (golint)
    • Line 234: warning: exported function NewStdlibAdapter should have comment or be unexported (golint)
    • Line 238: warning: exported function Error should have comment or be unexported (golint)
    • Line 242: warning: exported function Warn should have comment or be unexported (golint)
    • Line 246: warning: exported function Info should have comment or be unexported (golint)
    • Line 250: warning: exported function Debug should have comment or be unexported (golint)
    • Line 254: warning: exported function AllowDebug should have comment or be unexported (golint)
    • Line 258: warning: exported function AllowInfo should have comment or be unexported (golint)
    • Line 262: warning: exported function AllowWarn should have comment or be unexported (golint)
    • Line 266: warning: exported function AllowError should have comment or be unexported (golint)
    • ab/lib/config/memory.go
    • Line 24: warning: exported type MemoryConfigProvider should have comment or be unexported (golint)
    • Line 28: warning: exported function NewMemoryConfigProvider should have comment or be unexported (golint)
    • Line 34: warning: exported method MemoryConfigProvider.Reset should have comment or be unexported (golint)
    • Line 38: warning: exported method MemoryConfigProvider.CanSave should have comment or be unexported (golint)
    • Line 42: warning: exported method MemoryConfigProvider.Save should have comment or be unexported (golint)
    • Line 47: warning: exported method MemoryConfigProvider.Has should have comment or be unexported (golint)
    • Line 52: warning: exported method MemoryConfigProvider.Unmarshal should have comment or be unexported (golint)
    • ab/lib/config/config.go
    • Line 28: warning: exported const Default should have comment (or a comment on this block) or be unexported (golint)
    • Line 31: warning: exported type ConfigSchemaProvider should have comment or be unexported (golint)
    • Line 35: warning: exported type Config should have comment or be unexported (golint)
    • Line 39: warning: exported type WritableConfig should have comment or be unexported (golint)
    • Line 44: warning: exported type Provider should have comment or be unexported (golint)
    • Line 49: warning: exported type WritableProvider should have comment or be unexported (golint)
    • Line 55: warning: exported type Saver should have comment or be unexported (golint)
    • Line 67: warning: exported type CollectionLoader should have comment or be unexported (golint)
    • Line 73: warning: exported type CollectionLoaderFunc should have comment or be unexported (golint)
    • Line 75: warning: exported method CollectionLoaderFunc.Load should have comment or be unexported (golint)
    • Line 79: warning: exported type Store should have comment or be unexported (golint)
    • Line 87: warning: exported function NewStore should have comment or be unexported (golint)
    • Line 95: warning: exported method Store.AddCollection should have comment or be unexported (golint)
    • Line 101: warning: exported method Store.AddCollectionLoaders should have comment or be unexported (golint)
    • Line 105: warning: exported method Store.MaybeRegisterSchema should have comment or be unexported (golint)
    • Line 113: warning: exported method Store.RegisterSchema should have comment or be unexported (golint)
    • Line 124: warning: exported method Store.ClearAllCaches should have comment or be unexported (golint)
    • Line 169: warning: exported method Store.Get should have comment or be unexported (golint)
    • Line 173: warning: exported method Store.GetWritable should have comment or be unexported (golint)
    • Line 177: warning: exported method Store.RemoveTemporary should have comment or be unexported (golint)
    • Line 226: warning: exported type Collection should have comment or be unexported (golint)
    • Line 233: warning: exported function NewCollection should have comment or be unexported (golint)
    • Line 322: warning: exported method Collection.ClearCache should have comment or be unexported (golint)
    • Line 328: warning: exported method Collection.SetTemporary should have comment or be unexported (golint)
    • Line 332: warning: exported method Collection.AddProviders should have comment or be unexported (golint)
    • Line 364: warning: exported type CollectionNotFoundError should have comment or be unexported (golint)
    • ab/middlewares/eventmw/event.go
    • Line 26: warning: exported const MiddlewareDependencyEvent should have comment (or a comment on this block) or be unexported (golint)
    • Line 49: warning: exported method EventMiddleware.Wrap should have comment or be unexported (golint)
    • ab/lib/server/server.go
    • Line 47: warning: exported type ServiceName should have comment or be unexported (golint)
    • Line 49: warning: exported method ServiceName.Name should have comment or be unexported (golint)
    • Line 257: warning: exported method Server.AddDynamicLocalDir should have comment or be unexported (golint)
    • Line 295: warning: exported method Server.GetServices should have comment or be unexported (golint)
    • Line 387: warning: exported type HandlerUnwrapper should have comment or be unexported (golint)
    • ab/lib/abtest/http_client.go
    • Line 25: warning: exported type HTTPClientDelegate should have comment or be unexported (golint)
    • Line 29: warning: exported method HTTPClientDelegate.NewRequest should have comment or be unexported (golint)
    • ab/middlewares/translationmw/translationmw.go
    • Line 33: warning: exported const MiddlewareDependencyTranslation should have comment (or a comment on this block) or be unexported (golint)
    • Line 42: warning: exported type TranslationMiddleware should have comment or be unexported (golint)
    • Line 50: warning: exported method TranslationMiddleware.ConfigSchema should have comment or be unexported (golint)
    • Line 64: warning: exported method TranslationMiddleware.Dependencies should have comment or be unexported (golint)
    • Line 71: warning: exported function New should have comment or be unexported (golint)
    • Line 95: warning: exported method TranslationMiddleware.Wrap should have comment or be unexported (golint)
    • Line 107: warning: exported function GetTranslate should have comment or be unexported (golint)
    • Line 111: warning: exported function GetPluralTranslate should have comment or be unexported (golint)
    • Line 115: warning: exported function GetLanguage should have comment or be unexported (golint)
    • Line 119: warning: exported type LanguageNegotiator should have comment or be unexported (golint)
    • Line 123: warning: exported type AcceptLanguage should have comment or be unexported (golint)
    • Line 125: warning: exported method AcceptLanguage.NegotiateLanguage should have comment or be unexported (golint)
    • Line 139: warning: exported type SessionLanguage should have comment or be unexported (golint)
    • Line 141: warning: exported method SessionLanguage.NegotiateLanguage should have comment or be unexported (golint)
    • Line 151: warning: exported function SetSessionLanguage should have comment or be unexported (golint)
    • Line 158: warning: exported type CookieLanguage should have comment or be unexported (golint)
    • Line 160: warning: exported method CookieLanguage.NegotiateLanguage should have comment or be unexported (golint)
    • Line 169: warning: exported type URLParamLanguage should have comment or be unexported (golint)
    • Line 171: warning: exported method URLParamLanguage.NegotiateLanguage should have comment or be unexported (golint)
    • Line 179: warning: exported type StaticDefaultLanguage should have comment or be unexported (golint)
    • Line 181: warning: exported method StaticDefaultLanguage.NegotiateLanguage should have comment or be unexported (golint)
    • Line 185: warning: exported type DefaultLanguage should have comment or be unexported (golint)
    • Line 189: warning: exported type DynamicDefaultLanguage should have comment or be unexported (golint)
    • Line 191: warning: exported method DynamicDefaultLanguage.ConfigSchema should have comment or be unexported (golint)
    • Line 197: warning: exported method DynamicDefaultLanguage.NegotiateLanguage should have comment or be unexported (golint)
    • ab/middlewares/securitymw/hsts.go
    • Line 26: warning: exported const MiddlewareDependencyHSTS should have comment or be unexported (golint)
    • Line 38: warning: exported method HSTSMiddleware.Wrap should have comment or be unexported (golint)
    • ab/lib/db/db.go
    • Line 27: warning: exported type DBSchemaProvider should have comment or be unexported (golint)
    • Line 32: warning: exported type Schema should have comment or be unexported (golint)
    • Line 34: warning: exported function DefineSchemaGenerations should have comment or be unexported (golint)
    • Line 38: warning: exported type SchemaGenerations should have comment or be unexported (golint)
    • Line 40: warning: exported method SchemaGenerations.UpgradeFrom should have comment or be unexported (golint)
    • Line 58: warning: exported function ConnectToDB should have comment or be unexported (golint)
    • Line 62: warning: exported function RetryDBConn should have comment or be unexported (golint)
    • ab/lib/config/directory.go
    • Line 28: warning: exported type FileType should have comment or be unexported (golint)
    • Line 34: warning: exported type DirectoryConfigProvider should have comment or be unexported (golint)
    • Line 40: warning: exported function NewDirectoryConfigProvider should have comment or be unexported (golint)
    • Line 47: warning: exported method DirectoryConfigProvider.RegisterFiletype should have comment or be unexported (golint)
    • Line 69: warning: exported method DirectoryConfigProvider.Has should have comment or be unexported (golint)
    • Line 74: warning: exported method DirectoryConfigProvider.Unmarshal should have comment or be unexported (golint)
    • Line 85: warning: exported method DirectoryConfigProvider.CanSave should have comment or be unexported (golint)
    • Line 89: warning: exported method DirectoryConfigProvider.Save should have comment or be unexported (golint)
    • ab/middlewares/securitymw/adminkeymw.go
    • Line 24: warning: exported type AdminKeyMiddleware should have comment or be unexported (golint)
    • Line 26: warning: exported method AdminKeyMiddleware.Wrap should have comment or be unexported (golint)
    • Line 37: warning: exported method AdminKeyMiddleware.Dependencies should have comment or be unexported (golint)
    • ab/lib/errors/errors.go
    • Line 102: warning: exported method Panic.UserError should have comment or be unexported (golint)
    • Line 123: warning: exported function NewMultiError should have comment or be unexported (golint)
    • ab/middlewares/dbmw/db.go
    • Line 36: warning: exported const MiddlewareDependencyDB should have comment (or a comment on this block) or be unexported (golint)
    • Line 56: warning: exported type DBConfig should have comment or be unexported (golint)
    • Line 61: warning: exported method DBConfig.SchemaVersion should have comment or be unexported (golint)
    • Line 73: warning: exported type Middleware should have comment or be unexported (golint)
    • Line 83: warning: exported function NewMiddleware should have comment or be unexported (golint)
    • Line 95: warning: exported method Middleware.Wrap should have comment or be unexported (golint)
    • Line 129: warning: exported method Middleware.Close should have comment or be unexported (golint)
    • Line 142: warning: exported method Middleware.Connections should have comment or be unexported (golint)
    • Line 150: warning: exported method Middleware.Dependencies should have comment or be unexported (golint)
    • Line 156: warning: exported method Middleware.ConfigSchema should have comment or be unexported (golint)
    • Line 162: warning: exported method Middleware.Handle should have comment or be unexported (golint)
    • Line 223: warning: exported function Begin should have comment or be unexported (golint)
    • Line 227: warning: exported method TransactionMiddleware.Wrap should have comment or be unexported (golint)
    • Line 249: warning: exported method TransactionMiddleware.Dependencies should have comment or be unexported (golint)
    • ab/middlewares/securitymw/restrictaddress.go
    • Line 25: warning: exported const MIDDLEWARE_DEPENDENCY_RESTRICTADDRESS should have comment or be unexported (golint)
    • Line 38: warning: exported function NewRestrictAddressMiddleware should have comment or be unexported (golint)
    • Line 53: warning: exported function NewRestrictPrivateAddressMiddleware should have comment or be unexported (golint)
    • Line 57: warning: exported method RestrictAddressMiddleware.Wrap should have comment or be unexported (golint)
    • ab/lib/util/util.go
    • Line 85: warning: exported function UUIDSliceToInterface should have comment or be unexported (golint)
    • Line 143: warning: exported function CreateCipher should have comment or be unexported (golint)
    • Line 152: warning: exported function Encrypt should have comment or be unexported (golint)
    • Line 165: warning: exported function Decrypt should have comment or be unexported (golint)
    • Line 173: warning: exported function EncryptString should have comment or be unexported (golint)
    • Line 181: warning: exported function DecryptString should have comment or be unexported (golint)
    • Line 201: warning: exported function StripTerminalColorCodes should have comment or be unexported (golint)
    • Line 256: warning: exported function TestServerAddress should have comment or be unexported (golint)
    • Line 281: warning: exported type ResponseWriterWrapper should have comment or be unexported (golint)
    • Line 285: warning: exported method ResponseWriterWrapper.Hijack should have comment or be unexported (golint)
    • Line 293: warning: exported method ResponseWriterWrapper.Flush should have comment or be unexported (golint)
    • Line 299: warning: exported method ResponseWriterWrapper.Push should have comment or be unexported (golint)
    • ab/lib/certcache/certcache.go
    • Line 24: warning: exported type CertCache should have comment or be unexported (golint)
    • Line 31: warning: exported function New should have comment or be unexported (golint)
    • Line 41: warning: exported method CertCache.Clear should have comment or be unexported (golint)
    • Line 48: warning: exported method CertCache.Get should have comment or be unexported (golint)
    • ab/lib/decoder/decoder.go
    • Line 31: warning: error var NoDecoderErr should have name of the form ErrFoo (golint)
    • Line 31: warning: exported var NoDecoderErr should have comment or be unexported (golint)
    • ab/middlewares/rendermw/render.go
    • Line 26: warning: exported const MiddlewareDependencyRender should have comment (or a comment on this block) or be unexported (golint)
    • Line 42: warning: exported function New should have comment or be unexported (golint)
    • Line 46: warning: exported method RendererMiddleware.Wrap should have comment or be unexported (golint)
    • ab/middlewares/sessionmw/session.go
    • Line 31: warning: exported const MiddlewareDependencySession should have comment (or a comment on this block) or be unexported (golint)
    • Line 41: warning: exported type Config should have comment or be unexported (golint)
    • Line 48: warning: exported type SessionMiddleware should have comment or be unexported (golint)
    • Line 67: warning: exported method SessionMiddleware.Wrap should have comment or be unexported (golint)
    • Line 108: warning: exported method SessionMiddleware.ConfigSchema should have comment or be unexported (golint)
    • Line 114: warning: exported method SessionMiddleware.Dependencies should have comment or be unexported (golint)
    • ab/lib/messaging/smtp.go
    • Line 27: warning: exported type SMTPMessageSender should have comment or be unexported (golint)
    • Line 35: warning: exported function NewSMTPMessageSender should have comment or be unexported (golint)
    • Line 45: warning: exported method SMTPMessageSender.AddTemplate should have comment or be unexported (golint)
    • Line 50: warning: exported method SMTPMessageSender.Send should have comment or be unexported (golint)
    • ab/middlewares/cryptmw/crypt.go
    • Line 26: warning: exported const MiddlewareDependencyCrypt should have comment (or a comment on this block) or be unexported (golint)
    • Line 30: warning: exported function Encrypt should have comment or be unexported (golint)
    • Line 34: warning: exported function Decrypt should have comment or be unexported (golint)
    • Line 44: warning: exported function EncryptString should have comment or be unexported (golint)
    • Line 48: warning: exported function DecryptString should have comment or be unexported (golint)
    • Line 62: warning: exported type CryptMiddleware should have comment or be unexported (golint)
    • Line 66: warning: exported method CryptMiddleware.Wrap should have comment or be unexported (golint)
    • Line 73: warning: exported method CryptMiddleware.Dependencies should have comment or be unexported (golint)
    • Line 79: warning: exported function NewCryptMiddleware should have comment or be unexported (golint)
    • ab/middlewares/requestmw/requestlogger.go
    • Line 29: warning: exported const MiddlewareDependencyRequestlogger should have comment or be unexported (golint)
    • Line 112: warning: exported function NewRequestLoggerMiddleware should have comment or be unexported (golint)
    • Line 118: warning: exported method RequestLoggerMiddleware.Wrap should have comment or be unexported (golint)
    • ab/middlewares/errormw/error.go
    • Line 33: warning: exported const MiddlewareDependencyError should have comment (or a comment on this block) or be unexported (golint)
    • Line 34: warning: don't use underscores in Go names; const error_component should be errorComponent (golint)
    • Line 56: warning: exported function New should have comment or be unexported (golint)
    • Line 62: warning: exported method ErrorHandlerMiddleware.Wrap should have comment or be unexported (golint)
    • Line 95: warning: exported method ErrorHandlerMiddleware.Dependencies should have comment or be unexported (golint)
    • Line 167: warning: exported function NewErrorPageData should have comment or be unexported (golint)
    • ab/middlewares/logmw/log.go
    • Line 29: warning: exported const MiddlewareDependencyLog should have comment (or a comment on this block) or be unexported (golint)
    • Line 36: warning: exported const CategoryFormatError should have comment (or a comment on this block) or be unexported (golint)
    • Line 51: warning: exported function New should have comment or be unexported (golint)
    • Line 57: warning: exported method LoggerMiddleware.Wrap should have comment or be unexported (golint)
    • Line 79: warning: exported function Update should have comment or be unexported (golint)
    • Line 98: warning: exported function Debug should have comment or be unexported (golint)
    • Line 102: warning: exported function Info should have comment or be unexported (golint)
    • Line 106: warning: exported function Warn should have comment or be unexported (golint)
    • Line 110: warning: exported function Error should have comment or be unexported (golint)
    • ab/lib/abtest/abtest.go
    • Line 40: warning: should not use dot imports (golint)
    • Line 41: warning: should not use dot imports (golint)
    • Line 50: warning: exported var FakeKey should have comment or be unexported (golint)
    • Line 65: warning: exported type DataMockerFunc should have comment or be unexported (golint)
    • Line 67: warning: exported type SetupFunc should have comment or be unexported (golint)
    • Line 69: warning: exported type SchemaInfo should have comment or be unexported (golint)
    • Line 76: warning: exported type SchemaMiddleware should have comment or be unexported (golint)
    • Line 80: warning: exported method SchemaMiddleware.Dependencies should have comment or be unexported (golint)
    • Line 86: warning: exported method SchemaMiddleware.Wrap should have comment or be unexported (golint)
    • Line 94: warning: exported method SchemaMiddleware.SetSearchPath should have comment or be unexported (golint)
    • Line 98: warning: exported method SchemaMiddleware.GetSchemaName should have comment or be unexported (golint)
    • Line 102: warning: exported function NewSchemaMiddleware should have comment or be unexported (golint)
    • Line 117: warning: exported function GetSchemaMiddleware should have comment or be unexported (golint)
    • Line 121: warning: exported function GetLogger should have comment or be unexported (golint)
    • Line 125: warning: exported function GetConfig should have comment or be unexported (golint)
    • Line 157: warning: exported function GetConfigForMiddleware should have comment or be unexported (golint)
    • Line 161: warning: exported function SetupConfigMiddleware should have comment or be unexported (golint)
    • Line 167: warning: exported function TestMiddleware should have comment or be unexported (golint)
    • Line 177: warning: exported function NewRequest should have comment or be unexported (golint)
    • ab/middlewares/securitymw/csrf.go
    • Line 29: warning: exported const MiddlewareDependencyCSRF should have comment (or a comment on this block) or be unexported (golint)
    • Line 43: warning: exported function NewCSRFMiddleware should have comment or be unexported (golint)
    • Line 47: warning: exported method CSRFMiddleware.Wrap should have comment or be unexported (golint)
    • Line 68: warning: exported method CSRFMiddleware.Dependencies should have comment or be unexported (golint)
    • Line 80: warning: exported function NewCSRFGetMiddleware should have comment or be unexported (golint)
    • Line 86: warning: exported method CSRFGetMiddleware.Wrap should have comment or be unexported (golint)
    • Line 105: warning: exported method CSRFGetMiddleware.Dependencies should have comment or be unexported (golint)
    • ab/lib/matcher/matcher.go
    • Line 21: warning: exported type Matcher should have comment or be unexported (golint)
    • Line 26: warning: exported function NewMatcher should have comment or be unexported (golint)
    • Line 38: warning: exported method Matcher.Get should have comment or be unexported (golint)
    • Line 47: warning: exported method Matcher.Set should have comment or be unexported (golint)
    • ab/lib/messaging/messaging.go
    • Line 17: warning: exported type MessageSender should have comment or be unexported (golint)
    • Line 21: warning: exported type MessageTarget should have comment or be unexported (golint)
    • ab/lib/config/env.go
    • Line 26: warning: exported type EnvConfigProvider should have comment or be unexported (golint)
    • Line 32: warning: exported function NewEnvConfigProvider should have comment or be unexported (golint)
    • Line 52: warning: exported method EnvConfigProvider.Reset should have comment or be unexported (golint)
    • Line 69: warning: exported method EnvConfigProvider.Has should have comment or be unexported (golint)
    • Line 81: warning: exported method EnvConfigProvider.Unmarshal should have comment or be unexported (golint)
    • ab/middlewares/uuidmw/uuid.go
    • Line 49: warning: exported method UUIDMiddleware.Wrap should have comment or be unexported (golint)
    • Line 66: warning: exported method UUIDMiddleware.Dependencies should have comment or be unexported (golint)
    • ab/aliases.go
    • Line 35: warning: exported function LogDebug should have comment or be unexported (golint)
    • Line 39: warning: exported function LogInfo should have comment or be unexported (golint)
    • Line 43: warning: exported function LogWarn should have comment or be unexported (golint)
    • Line 47: warning: exported function LogError should have comment or be unexported (golint)
    • Line 96: warning: exported function GetTranslate should have comment or be unexported (golint)
    • Line 100: warning: exported function GetPluralTranslate should have comment or be unexported (golint)
    • ab/lib/hash/hash.go
    • Line 30: warning: exported var PASSWORD_HASH_SALT_LENGTH should have comment or be unexported (golint)
    • Line 41: warning: exported function DefaultHashPassword should have comment or be unexported (golint)
    • Line 51: warning: exported function HashPassword should have comment or be unexported (golint)
    • Line 70: warning: exported function VerifyPassword should have comment or be unexported (golint)
    • Line 80: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • ab/lib/uuid/uuid.go
    • Line 25: warning: exported type UUID should have comment or be unexported (golint)
    • Line 27: warning: exported var Nil should have comment or be unexported (golint)
    • Line 29: warning: comment on exported function Generate should be of the form "Generate ..." (golint)
    • Line 47: warning: comment on exported method UUID.Verify should be of the form "Verify ..." (golint)
    • Line 55: warning: comment on exported function ParseAndVerify should be of the form "ParseAndVerify ..." (golint)
    • Line 66: warning: exported method UUID.IsNil should have comment or be unexported (golint)
    • Line 70: warning: exported function Equal should have comment or be unexported (golint)
    • Line 74: warning: exported function FromBytes should have comment or be unexported (golint)
    • Line 79: warning: exported function FromByteOrNil should have comment or be unexported (golint)
    • Line 83: warning: exported function FromString should have comment or be unexported (golint)
    • Line 88: warning: exported function FromStringOrNil should have comment or be unexported (golint)
    • Line 92: warning: exported method UUID.Bytes should have comment or be unexported (golint)
    • Line 96: warning: exported method UUID.MarshalBinary should have comment or be unexported (golint)
    • Line 100: warning: exported method UUID.MarshalText should have comment or be unexported (golint)
    • Line 104: warning: exported method UUID.Scan should have comment or be unexported (golint)
    • Line 112: warning: exported method UUID.UnmarshalBinary should have comment or be unexported (golint)
    • Line 116: warning: exported method UUID.UnmarshalText should have comment or be unexported (golint)
    • Line 120: warning: exported method UUID.Value should have comment or be unexported (golint)
    • Line 124: warning: exported method UUID.Variant should have comment or be unexported (golint)
    • Line 128: warning: exported method UUID.Version should have comment or be unexported (golint)
    • ab/lib/abtest/mock_client.go
    • Line 29: warning: exported type MockDelegate should have comment or be unexported (golint)
    • Line 35: warning: exported function NewMockDelegate should have comment or be unexported (golint)
    • Line 46: warning: exported method MockDelegate.Do should have comment or be unexported (golint)
    • Line 56: warning: exported method MockDelegate.NewRequest should have comment or be unexported (golint)
    • Line 68: warning: exported function NewMockTestClient should have comment or be unexported (golint)
    • Line 75: warning: exported function NewMockTestClientWithToken should have comment or be unexported (golint)
    • ab/tools/scaffold/internal/templates/template.go
    • Line 25: warning: exported function ScaffoldApp should have comment or be unexported (golint)
    • Line 71: warning: exported type AppData should have comment or be unexported (golint)
    • Line 169: warning: exported type ConfigData should have comment or be unexported (golint)
    • Line 193: warning: exported type IndexData should have comment or be unexported (golint)
    • ab/lib/translation/formatter.go
    • Line 27: warning: exported type Formatter should have comment or be unexported (golint)
    • Line 33: warning: exported type SimpleRawFormatter should have comment or be unexported (golint)
    • Line 35: warning: exported method SimpleRawFormatter.FormatRaw should have comment or be unexported (golint)
    • Line 41: warning: exported type HTMLFormatter should have comment or be unexported (golint)
    • Line 45: warning: exported method HTMLFormatter.FormatNormal should have comment or be unexported (golint)
    • Line 49: warning: exported method HTMLFormatter.FormatEmphasized should have comment or be unexported (golint)
    • Line 55: warning: exported type TerminalFormatter should have comment or be unexported (golint)
    • Line 59: warning: exported method TerminalFormatter.FormatNormal should have comment or be unexported (golint)
    • Line 63: warning: exported method TerminalFormatter.FormatEmphasized should have comment or be unexported (golint)
    • ab/lib/abtest/test_server.go
    • Line 28: warning: exported function Hop should have comment or be unexported (golint)
    • Line 37: warning: exported function HopMock should have comment or be unexported (golint)
    • Line 55: warning: exported function NewTestServer should have comment or be unexported (golint)
    • ab/services/resource/resource_events.go
    • Line 24: warning: exported const EventBeforeResourceList should have comment (or a comment on this block) or be unexported (golint)
    • Line 51: warning: exported type BeforeResourceListEvent should have comment or be unexported (golint)
    • Line 55: warning: exported method BeforeResourceListEvent.Name should have comment or be unexported (golint)
    • Line 59: warning: exported function NewBeforeResourceListEvent should have comment or be unexported (golint)
    • Line 65: warning: exported type AfterResourceListEvent should have comment or be unexported (golint)
    • Line 70: warning: exported method AfterResourceListEvent.Name should have comment or be unexported (golint)
    • Line 74: warning: exported method AfterResourceListEvent.List should have comment or be unexported (golint)
    • Line 78: warning: exported function NewAfterResourceListEvent should have comment or be unexported (golint)
    • Line 85: warning: exported type ResourceCRUDEvent should have comment or be unexported (golint)
    • Line 91: warning: exported method ResourceCRUDEvent.Name should have comment or be unexported (golint)
    • Line 95: warning: exported method ResourceCRUDEvent.Resource should have comment or be unexported (golint)
    • Line 99: warning: exported function NewResourceCRUDEvent should have comment or be unexported (golint)
    • ab/lib/hal/hal.go
    • Line 23: warning: exported type HalWrapper should have comment or be unexported (golint)
    • Line 28: warning: exported function NewHalWrapper should have comment or be unexported (golint)
    • Line 37: warning: exported function CreateHALLinkList should have comment or be unexported (golint)
    • Line 60: warning: exported method HalWrapper.MarshalJSON should have comment or be unexported (golint)
    • Line 141: warning: exported type HalLink should have comment or be unexported (golint)
    • ab/lib/env/env.go
    • Line 26: warning: exported type InvalidUnmarshalError should have comment or be unexported (golint)
    • Line 43: warning: exported type Unmarshaler should have comment or be unexported (golint)
    • Line 51: warning: exported function NewUnmarshaler should have comment or be unexported (golint)
    • Line 59: warning: exported method Unmarshaler.Unmarshal should have comment or be unexported (golint)
    • ab/lib/config/directory_filetypes.go
    • Line 32: warning: exported type JSON should have comment or be unexported (golint)
    • Line 38: warning: exported method JSON.Extensions should have comment or be unexported (golint)
    • Line 42: warning: exported method JSON.Unmarshal should have comment or be unexported (golint)
    • Line 50: warning: exported method JSON.Marshal should have comment or be unexported (golint)
    • Line 56: warning: exported type YAML should have comment or be unexported (golint)
    • Line 60: warning: exported method YAML.Extensions should have comment or be unexported (golint)
    • Line 64: warning: exported method YAML.Unmarshal should have comment or be unexported (golint)
    • Line 72: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 77: warning: exported method YAML.Marshal should have comment or be unexported (golint)
    • Line 87: warning: exported type TOML should have comment or be unexported (golint)
    • Line 92: warning: exported method TOML.Extensions should have comment or be unexported (golint)
    • Line 96: warning: exported method TOML.Unmarshal should have comment or be unexported (golint)
    • Line 100: warning: exported method TOML.Marshal should have comment or be unexported (golint)
    • Line 107: warning: exported type XML should have comment or be unexported (golint)
    • Line 118: warning: exported method XML.Extensions should have comment or be unexported (golint)
    • Line 122: warning: exported method XML.Unmarshal should have comment or be unexported (golint)
    • Line 132: warning: exported method XML.Marshal should have comment or be unexported (golint)
    • ab/middlewares/delaymw/delay.go
    • Line 24: warning: exported const MIDDLEWARE_DEPENDENCY_DELAY should have comment or be unexported (golint)
    • Line 36: warning: exported function New should have comment or be unexported (golint)
    • Line 42: warning: exported method DelayMiddelware.Wrap should have comment or be unexported (golint)
    • ab/middlewares/configmw/config.go
    • Line 31: warning: exported const MiddlewareDependencyConfig should have comment (or a comment on this block) or be unexported (golint)
    • Line 37: warning: exported type NamespaceNegotiator should have comment or be unexported (golint)
    • Line 41: warning: exported function GetConfig should have comment or be unexported (golint)
    • Line 45: warning: exported function GetWritableConfig should have comment or be unexported (golint)
    • Line 51: warning: exported type ConfigMiddleware should have comment or be unexported (golint)
    • Line 58: warning: exported function NewConfigMiddleware should have comment or be unexported (golint)
    • Line 65: warning: exported method ConfigMiddleware.Wrap should have comment or be unexported (golint)
    • Line 87: warning: exported type HostNamespaceNegotiator should have comment or be unexported (golint)
    • Line 91: warning: exported method HostNamespaceNegotiator.NegotiateNamespace should have comment or be unexported (golint)
    • Line 99: warning: exported function NewHostNamespaceNegotiator should have comment or be unexported (golint)
    • Line 105: warning: exported type HostMapNamespaceNegotiator should have comment or be unexported (golint)
    • Line 110: warning: exported function NewHostMapNamespaceNegotiator should have comment or be unexported (golint)
    • Line 116: warning: exported method HostMapNamespaceNegotiator.Add should have comment or be unexported (golint)
    • Line 122: warning: exported method HostMapNamespaceNegotiator.Remove should have comment or be unexported (golint)
    • Line 128: warning: exported method HostMapNamespaceNegotiator.NegotiateNamespace should have comment or be unexported (golint)
    • Line 142: warning: exported type ChainedNamespaceNegotiator should have comment or be unexported (golint)
    • Line 146: warning: exported function NewChainedNamespaceNegotiator should have comment or be unexported (golint)
    • Line 152: warning: exported method ChainedNamespaceNegotiator.AddNegotiator should have comment or be unexported (golint)
    • Line 156: warning: exported method ChainedNamespaceNegotiator.NegotiateNamespace should have comment or be unexported (golint)
    • Line 200: warning: exported function WrapMiddleware should have comment or be unexported (golint)
    • ab/ab.go
    • Line 59: warning: exported const EventCacheClear should have comment (or a comment on this block) or be unexported (golint)
    • Line 70: warning: exported type SiteProvider should have comment or be unexported (golint)
    • Line 74: warning: exported function RegisterSiteProvider should have comment or be unexported (golint)
    • Line 78: warning: exported function GetSiteProvider should have comment or be unexported (golint)
    • Line 256: warning: exported type Config should have comment or be unexported (golint)
    • Line 301: warning: exported type Site should have comment or be unexported (golint)
    • Line 313: warning: exported function Pet should have comment or be unexported (golint)
    • Line 638: warning: exported type DefaultDependencies should have comment or be unexported (golint)
    • Line 640: warning: exported method DefaultDependencies.Dependencies should have comment or be unexported (golint)
    • ab/services/resource/resource.go
    • Line 35: warning: exported var ErrNoEndpoints should have comment or be unexported (golint)
    • Line 51: warning: exported method ResourceList.Sanitize should have comment or be unexported (golint)
    • Line 64: warning: exported method ResourceList.MarshalJSON should have comment or be unexported (golint)
    • Line 182: warning: comment on exported method ResourceController.Name should be of the form "Name ..." (golint)
    • Line 351: warning: exported method ResourceController.Register should have comment or be unexported (golint)
    • Line 405: warning: exported method ResourceController.DBSchema should have comment or be unexported (golint)
    • ab/services/resource/resource_helper.go
    • Line 27: warning: exported method DefaultResourceFormatter.FormatSingle should have comment or be unexported (golint)
    • Line 31: warning: exported method DefaultResourceFormatter.FormatMulti should have comment or be unexported (golint)
    • ab/lib/session/session.go
    • Line 33: warning: error var MalformedSessionDataError should have name of the form ErrFoo (golint)
    • Line 33: warning: exported var MalformedSessionDataError should have comment or be unexported (golint)
    • Line 34: warning: error var SignatureVerificationFailedError should have name of the form ErrFoo (golint)
    • Line 54: warning: exported method Session.Reset should have comment or be unexported (golint)
    • Line 60: warning: exported function EncodeSession should have comment or be unexported (golint)
    • Line 88: warning: exported function DecodeSession should have comment or be unexported (golint)
    • Line 173: warning: exported method SecretKey.Sign should have comment or be unexported (golint)
    • Line 183: warning: exported method SecretKey.Verify should have comment or be unexported (golint)
    • Line 187: warning: exported function MustParse should have comment or be unexported (golint)
    • ab/middlewares/requestmw/requestid.go
    • Line 27: warning: exported const MiddlewareDependencyRequestID should have comment (or a comment on this block) or be unexported (golint)
    • Line 38: warning: exported function NewRequestIDMiddleware should have comment or be unexported (golint)
    • Line 42: warning: exported method RequestIDMiddleware.Wrap should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign99%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!