Preparing report...

Report for github.com/hunterlong/statping

A+    Excellent!    Found 92 issues across 177 files

Tweet

gofmt99%

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.


golint49%

Golint is a linter for Go source code.

    • statping/types/services/failures.go
    • Line 12: warning: exported method Service.FailuresColumnID should have comment or be unexported (golint)
    • Line 16: warning: exported method Service.AllFailures should have comment or be unexported (golint)
    • Line 20: warning: exported method Service.FailuresSince should have comment or be unexported (golint)
    • Line 24: warning: exported method Service.DowntimeText should have comment or be unexported (golint)
    • statping/utils/log.go
    • Line 19: warning: exported var Log should have comment or be unexported (golint)
    • Line 32: warning: exported function SentryInit should have comment or be unexported (golint)
    • Line 50: warning: exported function SentryErr should have comment or be unexported (golint)
    • Line 63: warning: exported function SentryLogEntry should have comment or be unexported (golint)
    • statping/types/core/struct.go
    • Line 10: warning: exported var App should have comment or be unexported (golint)
    • Line 13: warning: exported function New should have comment or be unexported (golint)
    • Line 47: warning: exported type OAuth should have comment or be unexported (golint)
    • Line 72: warning: exported type Integrator should have comment or be unexported (golint)
    • Line 74: warning: exported method Core.TableName should have comment or be unexported (golint)
    • statping/types/notifications/hooks.go
    • Line 7: warning: exported method Notification.AfterFind should have comment or be unexported (golint)
    • Line 12: warning: exported method Notification.AfterCreate should have comment or be unexported (golint)
    • Line 16: warning: exported method Notification.AfterUpdate should have comment or be unexported (golint)
    • Line 20: warning: exported method Notification.AfterDelete should have comment or be unexported (golint)
    • statping/types/configs/database.go
    • Line 22: warning: exported type SamplerFunc should have comment or be unexported (golint)
    • Line 24: warning: exported type Sampler should have comment or be unexported (golint)
    • Line 28: warning: exported function TriggerSamples should have comment or be unexported (golint)
    • Line 51: warning: comment on exported method DbConfig.Update should be of the form "Update ..." (golint)
    • Line 82: warning: exported method DbConfig.Close should have comment or be unexported (golint)
    • statping/types/users/hooks.go
    • Line 8: warning: exported method User.Validate should have comment or be unexported (golint)
    • Line 17: warning: exported method User.BeforeDelete should have comment or be unexported (golint)
    • Line 26: warning: exported method User.BeforeCreate should have comment or be unexported (golint)
    • Line 35: warning: exported method User.BeforeUpdate should have comment or be unexported (golint)
    • statping/types/errors.go
    • Line 9: warning: exported var ErrorServiceSelection should have comment or be unexported (golint)
    • Line 11: warning: comment on exported var ErrorCreateService should be of the form "ErrorCreateService ..." (golint)
    • Line 34: warning: exported type Errorer should have comment or be unexported (golint)
    • Line 37: warning: exported type Error should have comment or be unexported (golint)
    • Line 78: warning: exported function ErrWrap should have comment or be unexported (golint)
    • Line 85: warning: exported function Err should have comment or be unexported (golint)
    • statping/types/configs/migration.go
    • Line 5: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 24: warning: exported method DbConfig.ResetCore should have comment or be unexported (golint)
    • Line 57: warning: exported method DbConfig.DatabaseChanges should have comment or be unexported (golint)
    • statping/notifiers/mobile.go
    • Line 29: warning: exported var Mobile should have comment or be unexported (golint)
    • Line 109: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 140: warning: exported type PushNotification should have comment or be unexported (golint)
    • statping/types/failures/database.go
    • Line 10: warning: exported function SetDB should have comment or be unexported (golint)
    • Line 14: warning: exported function DB should have comment or be unexported (golint)
    • Line 18: warning: exported method Failure.AfterFind should have comment or be unexported (golint)
    • Line 22: warning: exported method Failure.AfterUpdate should have comment or be unexported (golint)
    • Line 26: warning: exported method Failure.AfterDelete should have comment or be unexported (golint)
    • Line 30: warning: exported method Failure.AfterCreate should have comment or be unexported (golint)
    • Line 34: warning: exported method Failure.Create should have comment or be unexported (golint)
    • Line 39: warning: exported method Failure.Update should have comment or be unexported (golint)
    • Line 44: warning: exported method Failure.Delete should have comment or be unexported (golint)
    • statping/types/incidents/database.go
    • Line 16: warning: exported function SetDB should have comment or be unexported (golint)
    • Line 21: warning: exported method Incident.Validate should have comment or be unexported (golint)
    • Line 28: warning: exported method Incident.BeforeUpdate should have comment or be unexported (golint)
    • Line 32: warning: exported method Incident.BeforeCreate should have comment or be unexported (golint)
    • Line 36: warning: exported method Incident.AfterFind should have comment or be unexported (golint)
    • Line 41: warning: exported method Incident.AfterCreate should have comment or be unexported (golint)
    • Line 45: warning: exported method Incident.AfterUpdate should have comment or be unexported (golint)
    • Line 49: warning: exported method Incident.AfterDelete should have comment or be unexported (golint)
    • Line 53: warning: exported method IncidentUpdate.Validate should have comment or be unexported (golint)
    • Line 60: warning: exported method IncidentUpdate.BeforeUpdate should have comment or be unexported (golint)
    • Line 64: warning: exported method IncidentUpdate.BeforeCreate should have comment or be unexported (golint)
    • Line 68: warning: exported method IncidentUpdate.AfterFind should have comment or be unexported (golint)
    • Line 72: warning: exported method IncidentUpdate.AfterCreate should have comment or be unexported (golint)
    • Line 76: warning: exported method IncidentUpdate.AfterUpdate should have comment or be unexported (golint)
    • Line 80: warning: exported method IncidentUpdate.AfterDelete should have comment or be unexported (golint)
    • Line 84: warning: exported function FindUpdate should have comment or be unexported (golint)
    • Line 90: warning: exported function Find should have comment or be unexported (golint)
    • Line 96: warning: exported function FindByService should have comment or be unexported (golint)
    • Line 102: warning: exported function All should have comment or be unexported (golint)
    • Line 108: warning: exported method Incident.Create should have comment or be unexported (golint)
    • Line 112: warning: exported method Incident.Update should have comment or be unexported (golint)
    • Line 116: warning: exported method Incident.Delete should have comment or be unexported (golint)
    • statping/types/notifications/methods.go
    • Line 10: warning: exported method Notification.Name should have comment or be unexported (golint)
    • Line 16: warning: comment on exported method Notification.LastSentDur should be of the form "LastSentDur ..." (golint)
    • Line 21: warning: exported method Notification.CanSend should have comment or be unexported (golint)
    • statping/types/checkins/database_hits.go
    • Line 3: warning: exported method Checkin.LastHit should have comment or be unexported (golint)
    • Line 9: warning: exported method Checkin.Hits should have comment or be unexported (golint)
    • Line 16: warning: exported method CheckinHit.Create should have comment or be unexported (golint)
    • Line 21: warning: exported method CheckinHit.Update should have comment or be unexported (golint)
    • Line 26: warning: exported method CheckinHit.Delete should have comment or be unexported (golint)
    • statping/types/services/hits.go
    • Line 8: warning: exported method Service.HitsColumnID should have comment or be unexported (golint)
    • Line 12: warning: exported method Service.FirstHit should have comment or be unexported (golint)
    • Line 16: warning: exported method Service.LastHit should have comment or be unexported (golint)
    • Line 20: warning: exported method Service.AllHits should have comment or be unexported (golint)
    • Line 24: warning: exported method Service.HitsSince should have comment or be unexported (golint)
    • statping/types/notifications/struct.go
    • Line 48: warning: exported type NotificationLog should have comment or be unexported (golint)
    • Line 56: warning: exported method Notification.Logger should have comment or be unexported (golint)
    • Line 60: warning: exported type Values should have comment or be unexported (golint)
    • statping/types/checkins/database.go
    • Line 12: warning: exported function SetDB should have comment or be unexported (golint)
    • Line 17: warning: exported method Checkin.AfterFind should have comment or be unexported (golint)
    • Line 26: warning: exported function Find should have comment or be unexported (golint)
    • Line 32: warning: exported function FindByAPI should have comment or be unexported (golint)
    • Line 38: warning: exported function All should have comment or be unexported (golint)
    • Line 44: warning: exported method Checkin.Create should have comment or be unexported (golint)
    • Line 52: warning: exported method Checkin.Update should have comment or be unexported (golint)
    • Line 57: warning: exported method Checkin.Delete should have comment or be unexported (golint)
    • statping/utils/encryption.go
    • Line 23: warning: comment on exported function NewSHA256Hash should be of the form "NewSHA256Hash ..." (golint)
    • Line 31: warning: comment on exported function Sha256Hash should be of the form "Sha256Hash ..." (golint)
    • statping/database/time.go
    • Line 8: warning: exported type TimeGroup should have comment or be unexported (golint)
    • Line 11: warning: exported method Db.ParseTime should have comment or be unexported (golint)
    • statping/handlers/dashboard.go
    • Line 149: 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 166: warning: exported type ExportData should have comment or be unexported (golint)
    • Line 179: warning: exported method ExportData.JSON should have comment or be unexported (golint)
    • Line 184: warning: exported function ExportSettings should have comment or be unexported (golint)
    • statping/types/errors/struct.go
    • Line 15: warning: exported type Error should have comment or be unexported (golint)
    • Line 20: warning: exported function New should have comment or be unexported (golint)
    • Line 26: warning: exported function Err should have comment or be unexported (golint)
    • Line 33: warning: exported function Wrap should have comment or be unexported (golint)
    • statping/types/messages/database.go
    • Line 14: warning: exported function SetDB should have comment or be unexported (golint)
    • Line 18: warning: exported function Find should have comment or be unexported (golint)
    • Line 27: warning: exported function All should have comment or be unexported (golint)
    • Line 33: warning: exported method Message.Create should have comment or be unexported (golint)
    • Line 38: warning: exported method Message.Update should have comment or be unexported (golint)
    • Line 43: warning: exported method Message.Delete should have comment or be unexported (golint)
    • statping/types/messages/hooks.go
    • Line 8: warning: exported method Message.Validate should have comment or be unexported (golint)
    • Line 15: warning: exported method Message.BeforeUpdate should have comment or be unexported (golint)
    • Line 19: warning: exported method Message.BeforeCreate should have comment or be unexported (golint)
    • Line 23: warning: exported method Message.AfterFind should have comment or be unexported (golint)
    • Line 27: warning: exported method Message.AfterCreate should have comment or be unexported (golint)
    • Line 31: warning: exported method Message.AfterUpdate should have comment or be unexported (golint)
    • Line 35: warning: exported method Message.AfterDelete should have comment or be unexported (golint)
    • statping/types/null/unmarshal.go
    • Line 5: warning: comment on exported method NullInt64.UnmarshalJSON should be of the form "UnmarshalJSON ..." (golint)
    • Line 12: warning: comment on exported method NullFloat64.UnmarshalJSON should be of the form "UnmarshalJSON ..." (golint)
    • Line 19: warning: comment on exported method NullBool.UnmarshalJSON should be of the form "UnmarshalJSON ..." (golint)
    • Line 26: warning: comment on exported method NullString.UnmarshalJSON should be of the form "UnmarshalJSON ..." (golint)
    • statping/types/hits/database.go
    • Line 13: warning: exported function SetDB should have comment or be unexported (golint)
    • Line 17: warning: exported method Hit.AfterFind should have comment or be unexported (golint)
    • Line 21: warning: exported method Hit.AfterUpdate should have comment or be unexported (golint)
    • Line 25: warning: exported method Hit.AfterDelete should have comment or be unexported (golint)
    • Line 29: warning: exported method Hit.AfterCreate should have comment or be unexported (golint)
    • Line 33: warning: exported method Hit.Create should have comment or be unexported (golint)
    • Line 38: warning: exported method Hit.Update should have comment or be unexported (golint)
    • Line 43: warning: exported method Hit.Delete should have comment or be unexported (golint)
    • statping/types/services/methods.go
    • Line 22: warning: exported method Service.LoadTLSCert should have comment or be unexported (golint)
    • Line 64: warning: exported method Service.Duration should have comment or be unexported (golint)
    • Line 68: warning: comment on exported method Service.UptimeData should be of the form "UptimeData ..." (golint)
    • Line 216: warning: exported method Service.Hash should have comment or be unexported (golint)
    • Line 242: warning: exported method Service.UpdateStats should have comment or be unexported (golint)
    • statping/types/metrics/metrics.go
    • Line 35: warning: exported function InitMetrics should have comment or be unexported (golint)
    • Line 50: warning: exported function Histo should have comment or be unexported (golint)
    • Line 59: warning: exported function Timer should have comment or be unexported (golint)
    • Line 63: warning: exported function ServiceTimer should have comment or be unexported (golint)
    • Line 67: warning: exported function Gauge should have comment or be unexported (golint)
    • Line 76: warning: exported function Inc should have comment or be unexported (golint)
    • Line 85: warning: exported function Add should have comment or be unexported (golint)
    • statping/types/services/notifier.go
    • Line 12: warning: exported function AllNotifiers should have comment or be unexported (golint)
    • Line 16: warning: exported function ReturnNotifier should have comment or be unexported (golint)
    • Line 20: warning: exported function FindNotifier should have comment or be unexported (golint)
    • Line 34: warning: exported type ServiceNotifier should have comment or be unexported (golint)
    • statping/utils/time.go
    • Line 13: warning: exported type Duration should have comment or be unexported (golint)
    • Line 17: warning: exported method Duration.Human should have comment or be unexported (golint)
    • statping/types/core/database.go
    • Line 13: warning: exported function SetDB should have comment or be unexported (golint)
    • Line 29: warning: exported method Core.AfterFind should have comment or be unexported (golint)
    • Line 33: warning: exported function Select should have comment or be unexported (golint)
    • Line 65: warning: exported method Core.Create should have comment or be unexported (golint)
    • Line 78: warning: exported method Core.Update should have comment or be unexported (golint)
    • Line 83: warning: exported method Core.Delete should have comment or be unexported (golint)
    • statping/database/database.go
    • Line 12: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 112: warning: exported method Db.ChunkSize should have comment or be unexported (golint)
    • Line 123: warning: exported function Routine should have comment or be unexported (golint)
    • Line 134: warning: exported method Db.GormDB should have comment or be unexported (golint)
    • Line 138: warning: exported method Db.DbType should have comment or be unexported (golint)
    • Line 142: warning: exported function Close should have comment or be unexported (golint)
    • Line 149: warning: exported function LogMode should have comment or be unexported (golint)
    • Line 153: warning: exported function Begin should have comment or be unexported (golint)
    • Line 162: warning: exported function Available should have comment or be unexported (golint)
    • Line 172: warning: exported method Db.MultipleSelects should have comment or be unexported (golint)
    • Line 177: warning: exported type Db should have comment or be unexported (golint)
    • Line 200: warning: exported function OpenTester should have comment or be unexported (golint)
    • Line 246: warning: exported method Db.Close should have comment or be unexported (golint)
    • Line 250: warning: exported method Db.DB should have comment or be unexported (golint)
    • Line 254: warning: exported method Db.New should have comment or be unexported (golint)
    • Line 258: warning: exported method Db.NewScope should have comment or be unexported (golint)
    • Line 262: warning: exported method Db.CommonDB should have comment or be unexported (golint)
    • Line 266: warning: exported method Db.Callback should have comment or be unexported (golint)
    • Line 270: warning: exported method Db.SetLogger should have comment or be unexported (golint)
    • Line 274: warning: exported method Db.LogMode should have comment or be unexported (golint)
    • Line 278: warning: exported method Db.SingularTable should have comment or be unexported (golint)
    • Line 282: warning: exported method Db.Where should have comment or be unexported (golint)
    • Line 286: warning: exported method Db.Or should have comment or be unexported (golint)
    • Line 290: warning: exported method Db.Not should have comment or be unexported (golint)
    • Line 294: warning: exported method Db.Limit should have comment or be unexported (golint)
    • Line 298: warning: exported method Db.Offset should have comment or be unexported (golint)
    • Line 302: warning: exported method Db.Order should have comment or be unexported (golint)
    • Line 306: warning: exported method Db.Select should have comment or be unexported (golint)
    • Line 310: warning: exported method Db.Omit should have comment or be unexported (golint)
    • Line 314: warning: exported method Db.Group should have comment or be unexported (golint)
    • Line 318: warning: exported method Db.Having should have comment or be unexported (golint)
    • Line 322: warning: exported method Db.Joins should have comment or be unexported (golint)
    • Line 326: warning: exported method Db.Scopes should have comment or be unexported (golint)
    • Line 330: warning: exported method Db.Unscoped should have comment or be unexported (golint)
    • Line 334: warning: exported method Db.Attrs should have comment or be unexported (golint)
    • Line 338: warning: exported method Db.Assign should have comment or be unexported (golint)
    • Line 342: warning: exported method Db.First should have comment or be unexported (golint)
    • Line 346: warning: exported method Db.Last should have comment or be unexported (golint)
    • Line 350: warning: exported method Db.Find should have comment or be unexported (golint)
    • Line 354: warning: exported method Db.Scan should have comment or be unexported (golint)
    • Line 358: warning: exported method Db.Row should have comment or be unexported (golint)
    • Line 362: warning: exported method Db.Rows should have comment or be unexported (golint)
    • Line 366: warning: exported method Db.ScanRows should have comment or be unexported (golint)
    • Line 370: warning: exported method Db.Pluck should have comment or be unexported (golint)
    • Line 374: warning: exported method Db.Count should have comment or be unexported (golint)
    • Line 378: warning: exported method Db.Related should have comment or be unexported (golint)
    • Line 382: warning: exported method Db.FirstOrInit should have comment or be unexported (golint)
    • Line 390: warning: exported method Db.FirstOrCreate should have comment or be unexported (golint)
    • Line 398: warning: exported method Db.Update should have comment or be unexported (golint)
    • Line 406: warning: exported method Db.Updates should have comment or be unexported (golint)
    • Line 410: warning: exported method Db.UpdateColumn should have comment or be unexported (golint)
    • Line 418: warning: exported method Db.UpdateColumns should have comment or be unexported (golint)
    • Line 426: warning: exported method Db.Save should have comment or be unexported (golint)
    • Line 434: warning: exported method Db.Create should have comment or be unexported (golint)
    • Line 442: warning: exported method Db.Delete should have comment or be unexported (golint)
    • Line 450: warning: exported method Db.Raw should have comment or be unexported (golint)
    • Line 454: warning: exported method Db.Exec should have comment or be unexported (golint)
    • Line 458: warning: exported method Db.Model should have comment or be unexported (golint)
    • Line 462: warning: exported method Db.Table should have comment or be unexported (golint)
    • Line 466: warning: exported method Db.Debug should have comment or be unexported (golint)
    • Line 470: warning: exported method Db.Begin should have comment or be unexported (golint)
    • Line 478: warning: exported method Db.Commit should have comment or be unexported (golint)
    • Line 486: warning: exported method Db.Rollback should have comment or be unexported (golint)
    • Line 494: warning: exported method Db.NewRecord should have comment or be unexported (golint)
    • Line 498: warning: exported method Db.RecordNotFound should have comment or be unexported (golint)
    • Line 502: warning: exported method Db.CreateTable should have comment or be unexported (golint)
    • Line 510: warning: exported method Db.DropTable should have comment or be unexported (golint)
    • Line 518: warning: exported method Db.DropTableIfExists should have comment or be unexported (golint)
    • Line 526: warning: exported method Db.HasTable should have comment or be unexported (golint)
    • Line 530: warning: exported method Db.AutoMigrate should have comment or be unexported (golint)
    • Line 538: warning: exported method Db.ModifyColumn should have comment or be unexported (golint)
    • Line 546: warning: exported method Db.DropColumn should have comment or be unexported (golint)
    • Line 554: warning: exported method Db.AddIndex should have comment or be unexported (golint)
    • Line 562: warning: exported method Db.AddUniqueIndex should have comment or be unexported (golint)
    • Line 570: warning: exported method Db.RemoveIndex should have comment or be unexported (golint)
    • Line 578: warning: exported method Db.Association should have comment or be unexported (golint)
    • Line 582: warning: exported method Db.Preload should have comment or be unexported (golint)
    • Line 586: warning: exported method Db.Set should have comment or be unexported (golint)
    • Line 590: warning: exported method Db.InstantSet should have comment or be unexported (golint)
    • Line 594: warning: exported method Db.Get should have comment or be unexported (golint)
    • Line 598: warning: exported method Db.SetJoinTableHandler should have comment or be unexported (golint)
    • Line 602: warning: exported method Db.AddForeignKey should have comment or be unexported (golint)
    • Line 610: warning: exported method Db.AddError should have comment or be unexported (golint)
    • Line 614: warning: exported method Db.GetErrors should have comment or be unexported (golint)
    • Line 618: warning: exported method Db.RowsAffected should have comment or be unexported (golint)
    • Line 626: warning: exported method Db.Status should have comment or be unexported (golint)
    • Line 641: warning: exported method Db.Loggable should have comment or be unexported (golint)
    • Line 654: warning: exported method Db.Since should have comment or be unexported (golint)
    • Line 658: warning: exported method Db.Between should have comment or be unexported (golint)
    • Line 662: warning: exported type TimeValue should have comment or be unexported (golint)
    • statping/utils/env.go
    • Line 11: warning: exported var Params should have comment or be unexported (golint)
    • Line 14: warning: exported function InitEnvs should have comment or be unexported (golint)
    • statping/types/hits/samples.go
    • Line 5: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 14: warning: exported var SampleHits should have comment or be unexported (golint)
    • Line 16: warning: exported function Samples should have comment or be unexported (golint)
    • statping/types/services/database.go
    • Line 18: warning: exported method Service.Validate should have comment or be unexported (golint)
    • Line 31: warning: exported method Service.BeforeCreate should have comment or be unexported (golint)
    • Line 35: warning: exported method Service.BeforeUpdate should have comment or be unexported (golint)
    • Line 39: warning: exported method Service.AfterFind should have comment or be unexported (golint)
    • Line 44: warning: exported method Service.AfterCreate should have comment or be unexported (golint)
    • Line 51: warning: exported method Service.AfterUpdate should have comment or be unexported (golint)
    • Line 55: warning: exported method Service.AfterDelete should have comment or be unexported (golint)
    • Line 63: warning: exported function Services should have comment or be unexported (golint)
    • Line 67: warning: exported function SetDB should have comment or be unexported (golint)
    • Line 71: warning: exported function Find should have comment or be unexported (golint)
    • Line 86: warning: exported function All should have comment or be unexported (golint)
    • Line 90: warning: exported function AllInOrder should have comment or be unexported (golint)
    • Line 100: warning: exported method Service.Create should have comment or be unexported (golint)
    • Line 109: warning: exported method Service.Update should have comment or be unexported (golint)
    • Line 118: warning: exported method Service.Delete should have comment or be unexported (golint)
    • Line 144: warning: exported method Service.DeleteMessages should have comment or be unexported (golint)
    • Line 154: warning: exported method Service.DeleteCheckins should have comment or be unexported (golint)
    • statping/types/hits/interface.go
    • Line 9: warning: exported type ColumnIDInterfacer should have comment or be unexported (golint)
    • Line 13: warning: exported type Hitters should have comment or be unexported (golint)
    • Line 17: warning: exported method Hitters.Db should have comment or be unexported (golint)
    • Line 21: warning: exported method Hitters.First should have comment or be unexported (golint)
    • Line 27: warning: exported method Hitters.Last should have comment or be unexported (golint)
    • Line 33: warning: exported method Hitters.Since should have comment or be unexported (golint)
    • Line 39: warning: exported method Hitters.List should have comment or be unexported (golint)
    • Line 45: warning: exported method Hitters.LastAmount should have comment or be unexported (golint)
    • Line 51: warning: exported method Hitters.Count should have comment or be unexported (golint)
    • Line 57: warning: exported method Hitters.DeleteAll should have comment or be unexported (golint)
    • Line 62: warning: exported method Hitters.Sum should have comment or be unexported (golint)
    • Line 68: warning: exported type IntResult should have comment or be unexported (golint)
    • Line 72: warning: exported method Hitters.Avg should have comment or be unexported (golint)
    • Line 89: warning: exported function AllHits should have comment or be unexported (golint)
    • Line 94: warning: exported function Since should have comment or be unexported (golint)
    • statping/types/services/routine.go
    • Line 26: warning: comment on exported function CheckServices should be of the form "CheckServices ..." (golint)
    • Line 35: warning: comment on exported function ServiceCheckQueue should be of the form "ServiceCheckQueue ..." (golint)
    • Line 63: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 92: warning: comment on exported function CheckIcmp should be of the form "CheckIcmp ..." (golint)
    • Line 233: warning: comment on exported function CheckTcp should be of the form "CheckTcp ..." (golint)
    • Line 300: warning: comment on exported function CheckHttp should be of the form "CheckHttp ..." (golint)
    • Line 451: warning: comment on exported method Service.CheckService should be of the form "CheckService ..." (golint)
    • statping/types/configs/methods.go
    • Line 43: warning: exported method DbConfig.ToYAML should have comment or be unexported (golint)
    • Line 52: warning: exported method DbConfig.ConnectionString should have comment or be unexported (golint)
    • statping/types/failures/interface.go
    • Line 9: warning: exported type ColumnIDInterfacer should have comment or be unexported (golint)
    • Line 13: warning: exported type Failurer should have comment or be unexported (golint)
    • Line 17: warning: exported method Failurer.Db should have comment or be unexported (golint)
    • Line 21: warning: exported method Failurer.First should have comment or be unexported (golint)
    • Line 27: warning: exported method Failurer.Last should have comment or be unexported (golint)
    • Line 33: warning: exported method Failurer.List should have comment or be unexported (golint)
    • Line 39: warning: exported method Failurer.LastAmount should have comment or be unexported (golint)
    • Line 45: warning: exported method Failurer.Since should have comment or be unexported (golint)
    • Line 51: warning: exported method Failurer.Count should have comment or be unexported (golint)
    • Line 57: warning: exported method Failurer.DeleteAll should have comment or be unexported (golint)
    • Line 62: warning: exported function AllFailures should have comment or be unexported (golint)
    • Line 67: warning: exported function Since should have comment or be unexported (golint)
    • statping/types/incidents/database_updates.go
    • Line 9: warning: exported method IncidentUpdate.Create should have comment or be unexported (golint)
    • Line 14: warning: exported method IncidentUpdate.Update should have comment or be unexported (golint)
    • Line 19: warning: exported method IncidentUpdate.Delete should have comment or be unexported (golint)
    • statping/types/notifications/database.go
    • Line 11: warning: exported function SetDB should have comment or be unexported (golint)
    • Line 15: warning: exported method Notification.Values should have comment or be unexported (golint)
    • Line 28: warning: exported function All should have comment or be unexported (golint)
    • Line 37: warning: exported function Find should have comment or be unexported (golint)
    • Line 46: warning: exported method Notification.Create should have comment or be unexported (golint)
    • Line 68: warning: exported method Notification.UpdateFields should have comment or be unexported (golint)
    • Line 88: warning: exported method Notification.Update should have comment or be unexported (golint)
    • statping/types/checkins/failures.go
    • Line 8: warning: exported method Checkin.CreateFailure should have comment or be unexported (golint)
    • Line 14: warning: exported method Checkin.FailuresColumnID should have comment or be unexported (golint)
    • Line 18: warning: exported method Checkin.Failures should have comment or be unexported (golint)
    • Line 22: warning: exported method Checkin.FailuresSince should have comment or be unexported (golint)
    • statping/types/users/database.go
    • Line 14: warning: exported function SetDB should have comment or be unexported (golint)
    • Line 18: warning: exported method User.AfterFind should have comment or be unexported (golint)
    • Line 22: warning: exported method User.AfterCreate should have comment or be unexported (golint)
    • Line 26: warning: exported method User.AfterUpdate should have comment or be unexported (golint)
    • Line 30: warning: exported method User.AfterDelete should have comment or be unexported (golint)
    • Line 34: warning: exported function Find should have comment or be unexported (golint)
    • Line 40: warning: exported function FindByUsername should have comment or be unexported (golint)
    • Line 46: warning: exported function FindByAPIKey should have comment or be unexported (golint)
    • Line 52: warning: exported function All should have comment or be unexported (golint)
    • Line 58: warning: exported method User.Create should have comment or be unexported (golint)
    • Line 66: warning: exported method User.Update should have comment or be unexported (golint)
    • Line 71: warning: exported method User.Delete should have comment or be unexported (golint)
    • statping/types/services/struct.go
    • Line 78: warning: exported type Stats should have comment or be unexported (golint)
    • Line 89: warning: exported type UptimeSeries should have comment or be unexported (golint)
    • Line 97: warning: exported type ByTime should have comment or be unexported (golint)
    • statping/utils/perlin.go
    • Line 9: warning: exported const B should have comment (or a comment on this block) or be unexported (golint)
    • Line 14: warning: exported function NewPerlin should have comment or be unexported (golint)
    • Line 30: warning: exported function NewPerlinRandSource should have comment or be unexported (golint)
    • Line 78: warning: exported method Perlin.Noise1D should have comment or be unexported (golint)
    • statping/types/groups/database.go
    • Line 16: warning: exported function SetDB should have comment or be unexported (golint)
    • Line 20: warning: exported method Group.Validate should have comment or be unexported (golint)
    • Line 27: warning: exported method Group.AfterFind should have comment or be unexported (golint)
    • Line 31: warning: exported method Group.AfterUpdate should have comment or be unexported (golint)
    • Line 35: warning: exported method Group.AfterDelete should have comment or be unexported (golint)
    • Line 39: warning: exported method Group.BeforeUpdate should have comment or be unexported (golint)
    • Line 43: warning: exported method Group.BeforeCreate should have comment or be unexported (golint)
    • Line 47: warning: exported method Group.AfterCreate should have comment or be unexported (golint)
    • Line 51: warning: exported function Find should have comment or be unexported (golint)
    • Line 60: warning: exported function All should have comment or be unexported (golint)
    • Line 66: warning: exported method Group.Create should have comment or be unexported (golint)
    • Line 71: warning: exported method Group.Update should have comment or be unexported (golint)
    • Line 76: warning: exported method Group.Delete should have comment or be unexported (golint)
    • statping/database/grouping.go
    • Line 14: warning: exported type GroupBy should have comment or be unexported (golint)
    • Line 19: warning: exported type GroupByer should have comment or be unexported (golint)
    • Line 23: warning: exported type By should have comment or be unexported (golint)
    • Line 29: warning: exported type GroupQuery should have comment or be unexported (golint)
    • Line 41: warning: exported method GroupQuery.Find should have comment or be unexported (golint)
    • Line 45: warning: exported method GroupQuery.Database should have comment or be unexported (golint)
    • Line 50: warning: exported var ByCount should have comment or be unexported (golint)
    • Line 63: warning: exported type TimeVar should have comment or be unexported (golint)
    • Line 68: warning: exported method TimeVar.ToValues should have comment or be unexported (golint)
    • Line 117: warning: exported method TimeVar.FillMissing should have comment or be unexported (golint)
    • Line 149: warning: exported function ParseRequest should have comment or be unexported (golint)
    • Line 188: warning: exported function ParseQueries should have comment or be unexported (golint)
    • statping/notifiers/notifiers.go
    • Line 26: warning: exported function InitNotifiers should have comment or be unexported (golint)
    • Line 46: warning: exported function ReplaceTemplate should have comment or be unexported (golint)
    • Line 61: warning: exported function Add should have comment or be unexported (golint)
    • Line 71: warning: exported function ReplaceVars should have comment or be unexported (golint)
    • statping/source/source.go
    • Line 20: warning: exported var TmplBox should have comment or be unexported (golint)
    • Line 92: 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)
    • statping/types/users/scopes.go
    • Line 5: warning: exported type Scope should have comment or be unexported (golint)
    • Line 8: warning: exported const FullAdmin should have comment (or a comment on this block) or be unexported (golint)
    • Line 37: warning: exported method User.AllScopes should have comment or be unexported (golint)
    • statping/types/time.go
    • Line 8: warning: exported const TIME_NANO should have comment (or a comment on this block) or be unexported (golint)
    • Line 15: warning: exported var Second should have comment or be unexported (golint)
    • Line 24: warning: exported function FixedTime should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!