Preparing report...

Report for github.com/Halfi/postmanq

A+    Excellent!    Found 26 issues across 46 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!


gocyclo97%

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.


golint43%

Golint is a linter for Go source code.

    • postmanq/analyser/writer.go
    • Line 10: warning: comment on exported type TableWriter should be of the form "TableWriter ..." (with optional leading article) (golint)
    • Line 44: warning: comment on exported type RowWriters should be of the form "RowWriters ..." (with optional leading article) (golint)
    • Line 47: warning: comment on exported type RowWriter should be of the form "RowWriter ..." (with optional leading article) (golint)
    • Line 54: warning: comment on exported type AbstractTableWriter should be of the form "AbstractTableWriter ..." (with optional leading article) (golint)
    • Line 74: warning: comment on exported method AbstractTableWriter.Add should be of the form "Add ..." (golint)
    • Line 85: warning: comment on exported method AbstractTableWriter.Export should be of the form "Export ..." (golint)
    • Line 90: warning: comment on exported method AbstractTableWriter.Ids should be of the form "Ids ..." (golint)
    • Line 95: warning: comment on exported method AbstractTableWriter.SetKeyPattern should be of the form "SetKeyPattern ..." (golint)
    • Line 100: warning: comment on exported method AbstractTableWriter.SetLimit should be of the form "SetLimit ..." (golint)
    • Line 105: warning: comment on exported method AbstractTableWriter.SetNecessaryExport should be of the form "SetNecessaryExport ..." (golint)
    • Line 110: warning: comment on exported method AbstractTableWriter.SetOffset should be of the form "SetOffset ..." (golint)
    • Line 115: warning: comment on exported method AbstractTableWriter.SetRows should be of the form "SetRows ..." (golint)
    • Line 120: warning: comment on exported method AbstractTableWriter.SetValuePattern should be of the form "SetValuePattern ..." (golint)
    • postmanq/logger/service.go
    • Line 15: warning: exported type Config should have comment or be unexported (golint)
    • Line 25: warning: exported type Service should have comment or be unexported (golint)
    • Line 31: warning: exported function Inst should have comment or be unexported (golint)
    • Line 38: warning: comment on exported method Service.OnInit should be of the form "OnInit ..." (golint)
    • Line 74: warning: comment on exported method Service.OnRun should be of the form "OnRun ..." (golint)
    • Line 82: warning: comment on exported method Service.OnFinish should be of the form "OnFinish ..." (golint)
    • postmanq/webservice/responsewriter/response_writer.go
    • Line 11: warning: exported type MonitoringResponseWriter should have comment or be unexported (golint)
    • Line 16: warning: exported type ResponseWriter should have comment or be unexported (golint)
    • Line 31: warning: exported method ResponseWriter.GetStartTime should have comment or be unexported (golint)
    • Line 35: warning: exported method ResponseWriter.GetCode should have comment or be unexported (golint)
    • Line 39: warning: exported method ResponseWriter.WriteHeader should have comment or be unexported (golint)
    • Line 44: warning: exported method ResponseWriter.Hijack should have comment or be unexported (golint)
    • postmanq/limiter/limit.go
    • Line 9: warning: comment on exported type Kind should be of the form "Kind ..." (with optional leading article) (golint)
    • Line 13: warning: exported const SecondKind should have comment (or a comment on this block) or be unexported (golint)
    • Line 36: warning: comment on exported type Limit should be of the form "Limit ..." (with optional leading article) (golint)
    • postmanq/analyser/service.go
    • Line 59: warning: comment on exported type Service should be of the form "Service ..." (with optional leading article) (golint)
    • Line 72: warning: comment on exported function Inst should be of the form "Inst ..." (golint)
    • Line 77: warning: comment on exported method Service.OnInit should be of the form "OnInit ..." (golint)
    • Line 85: warning: exported method Service.OnFinish should have comment or be unexported (golint)
    • Line 92: warning: comment on exported method Service.OnShowReport should be of the form "OnShowReport ..." (golint)
    • postmanq/logger/message.go
    • Line 23: warning: exported function All should have comment or be unexported (golint)
    • Line 27: warning: exported function By should have comment or be unexported (golint)
    • Line 46: warning: exported method Message.ErrErr should have comment or be unexported (golint)
    • postmanq/consumer/consumer.go
    • Line 24: warning: comment on exported type Consumer should be of the form "Consumer ..." (with optional leading article) (golint)
    • Line 31: warning: comment on exported function NewConsumer should be of the form "NewConsumer ..." (golint)
    • postmanq/consumer/sign.go
    • Line 175: warning: comment on exported type ErrorSignsMap should be of the form "ErrorSignsMap ..." (with optional leading article) (golint)
    • Line 178: warning: comment on exported method ErrorSignsMap.BindingType should be of the form "BindingType ..." (golint)
    • Line 182: 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)
    • Line 187: warning: comment on exported type ErrorSigns should be of the form "ErrorSigns ..." (with optional leading article) (golint)
    • Line 190: warning: comment on exported method ErrorSigns.BindingType should be of the form "BindingType ..." (golint)
    • Line 202: warning: comment on exported type ErrorSign should be of the form "ErrorSign ..." (with optional leading article) (golint)
    • postmanq/connector/connector.go
    • Line 15: warning: comment on exported type Connector should be of the form "Connector ..." (with optional leading article) (golint)
    • Line 94: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • postmanq/connector/seeker.go
    • Line 10: warning: comment on exported type Seeker should be of the form "Seeker ..." (with optional leading article) (golint)
    • Line 80: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • postmanq/analyser/detail.go
    • Line 11: warning: comment on exported type DetailTableWriter should be of the form "DetailTableWriter ..." (with optional leading article) (golint)
    • Line 23: warning: comment on exported method DetailTableWriter.Show should be of the form "Show ..." (golint)
    • postmanq/grep/service.go
    • Line 21: warning: exported type Config should have comment or be unexported (golint)
    • Line 29: warning: comment on exported type Service should be of the form "Service ..." (with optional leading article) (golint)
    • Line 34: warning: comment on exported function Inst should be of the form "Inst ..." (golint)
    • Line 39: warning: comment on exported method Service.OnInit should be of the form "OnInit ..." (golint)
    • Line 71: warning: comment on exported method Service.OnGrep should be of the form "OnGrep ..." (golint)
    • Line 155: warning: comment on exported method Service.OnFinish should be of the form "OnFinish ..." (golint)
    • postmanq/application/report.go
    • Line 9: warning: comment on exported type Report should be of the form "Report ..." (with optional leading article) (golint)
    • Line 14: warning: comment on exported function NewReport should be of the form "NewReport ..." (golint)
    • Line 19: warning: comment on exported method Report.Run should be of the form "Run ..." (golint)
    • Line 33: warning: comment on exported method Report.FireRun should be of the form "FireRun ..." (golint)
    • postmanq/consumer/service.go
    • Line 32: warning: comment on exported type Service should be of the form "Service ..." (with optional leading article) (golint)
    • Line 48: warning: comment on exported function Inst should be of the form "Inst ..." (golint)
    • Line 179: warning: comment on exported method Service.OnRun should be of the form "OnRun ..." (golint)
    • Line 203: warning: comment on exported method Service.OnFinish should be of the form "OnFinish ..." (golint)
    • Line 226: warning: comment on exported method Service.OnShowReport should be of the form "OnShowReport ..." (golint)
    • Line 254: warning: comment on exported method Service.OnPublish should be of the form "OnPublish ..." (golint)
    • Line 285: warning: comment on exported type Config should be of the form "Config ..." (with optional leading article) (golint)
    • postmanq/connector/server.go
    • Line 9: warning: comment on exported type MailServerStatus should be of the form "MailServerStatus ..." (with optional leading article) (golint)
    • Line 13: warning: comment on exported const LookupMailServerStatus should be of the form "LookupMailServerStatus ..." (golint)
    • Line 16: warning: comment on exported const SuccessMailServerStatus should be of the form "SuccessMailServerStatus ..." (golint)
    • Line 19: warning: comment on exported const ErrorMailServerStatus should be of the form "ErrorMailServerStatus ..." (golint)
    • Line 23: warning: comment on exported type MailServer should be of the form "MailServer ..." (with optional leading article) (golint)
    • Line 35: warning: comment on exported type MxServer should be of the form "MxServer ..." (with optional leading article) (golint)
    • postmanq/common/post.go
    • Line 10: warning: comment on exported const MaxTryConnectionCount should be of the form "MaxTryConnectionCount ..." (golint)
    • Line 12: warning: exported const AllDomains should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: exported var EmptyStrSlice should have comment or be unexported (golint)
    • Line 23: warning: comment on exported type Timeout should be of the form "Timeout ..." (with optional leading article) (golint)
    • Line 34: warning: comment on exported method Timeout.Init should be of the form "Init ..." (golint)
    • Line 59: warning: comment on exported type DelayedBindingType should be of the form "DelayedBindingType ..." (with optional leading article) (golint)
    • Line 63: warning: exported const UnknownDelayedBinding should have comment (or a comment on this block) or be unexported (golint)
    • Line 79: warning: comment on exported type MailError should be of the form "MailError ..." (with optional leading article) (golint)
    • Line 88: warning: comment on exported type MailMessage should be of the form "MailMessage ..." (with optional leading article) (golint)
    • Line 118: warning: comment on exported method MailMessage.Init should be of the form "Init ..." (golint)
    • Line 119: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 131: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 135: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • postmanq/mailer/service.go
    • Line 17: warning: comment on exported type Service should be of the form "Service ..." (with optional leading article) (golint)
    • Line 28: warning: comment on exported function Inst should be of the form "Inst ..." (golint)
    • Line 33: warning: comment on exported method Service.OnInit should be of the form "OnInit ..." (golint)
    • Line 75: warning: comment on exported method Service.OnRun should be of the form "OnRun ..." (golint)
    • Line 93: warning: comment on exported method Service.OnFinish should be of the form "OnFinish ..." (golint)
    • Line 104: 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)
    • Line 113: 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)
    • Line 119: warning: exported type Config should have comment or be unexported (golint)
    • postmanq/connector/preparer.go
    • Line 13: warning: comment on exported type Preparer should be of the form "Preparer ..." (with optional leading article) (golint)
    • Line 60: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • postmanq/connector/service.go
    • Line 58: warning: exported type MailServers should have comment or be unexported (golint)
    • Line 63: warning: exported function NewMailServers should have comment or be unexported (golint)
    • Line 67: warning: exported method MailServers.Get should have comment or be unexported (golint)
    • Line 74: warning: exported method MailServers.Set should have comment or be unexported (golint)
    • Line 227: warning: exported method Service.Reconfigure should have comment or be unexported (golint)
    • Line 249: 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)
    • Line 258: 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)
    • Line 267: 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)
    • Line 276: 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)
    • Line 299: warning: exported type Config should have comment or be unexported (golint)
    • postmanq/application/abstract.go
    • Line 17: warning: exported type FireAction should have comment or be unexported (golint)
    • Line 21: warning: exported type PreFireAction should have comment or be unexported (golint)
    • Line 26: warning: exported type PostFireAction should have comment or be unexported (golint)
    • Line 59: warning: exported type ConfigMeta should have comment or be unexported (golint)
    • Line 118: warning: exported method Abstract.InitConfig should have comment or be unexported (golint)
    • Line 199: warning: exported method Abstract.SetConfigMeta should have comment or be unexported (golint)
    • Line 216: warning: exported method Abstract.GetConfigData should have comment or be unexported (golint)
    • Line 234: warning: exported method Abstract.OnEvent should have comment or be unexported (golint)
    • Line 250: warning: exported method Abstract.SendEvents should have comment or be unexported (golint)
    • Line 264: warning: exported method Abstract.Close should have comment or be unexported (golint)
    • Line 303: warning: exported type InitFireAction should have comment or be unexported (golint)
    • Line 305: warning: exported method InitFireAction.Fire should have comment or be unexported (golint)
    • Line 309: warning: exported method InitFireAction.PreFire should have comment or be unexported (golint)
    • Line 324: warning: exported method InitFireAction.PostFire should have comment or be unexported (golint)
    • Line 329: warning: exported type RunFireAction should have comment or be unexported (golint)
    • Line 331: warning: exported method RunFireAction.Fire should have comment or be unexported (golint)
    • Line 335: warning: exported type FinishFireAction should have comment or be unexported (golint)
    • Line 337: warning: exported method FinishFireAction.Fire should have comment or be unexported (golint)
    • Line 341: warning: exported method FinishFireAction.PostFire should have comment or be unexported (golint)
    • Line 346: warning: exported type ReconfigureFireAction should have comment or be unexported (golint)
    • Line 348: warning: exported method ReconfigureFireAction.Fire should have comment or be unexported (golint)
    • Line 352: warning: exported method ReconfigureFireAction.PostFire should have comment or be unexported (golint)
    • postmanq/limiter/service.go
    • Line 100: 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)
    • Line 108: warning: exported type Config should have comment or be unexported (golint)
    • postmanq/consumer/binding.go
    • Line 13: warning: comment on exported type ExchangeType should be of the form "ExchangeType ..." (with optional leading article) (golint)
    • Line 17: warning: exported const DirectExchangeType should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: comment on exported type FailureBindingType should be of the form "FailureBindingType ..." (with optional leading article) (golint)
    • Line 26: warning: comment on exported const RecipientFailureBindingType should be of the form "RecipientFailureBindingType ..." (golint)
    • Line 29: warning: comment on exported const TechnicalFailureBindingType should be of the form "TechnicalFailureBindingType ..." (golint)
    • Line 32: warning: comment on exported const ConnectionFailureBindingType should be of the form "ConnectionFailureBindingType ..." (golint)
    • Line 35: warning: comment on exported const UnknownFailureBindingType should be of the form "UnknownFailureBindingType ..." (golint)
    • Line 93: warning: comment on exported type Binding should be of the form "Binding ..." (with optional leading article) (golint)
    • Line 214: warning: exported type AssistantBinding should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!