diff --git a/core/perm.go b/core/perm.go index f0dff1594..4479ed365 100644 --- a/core/perm.go +++ b/core/perm.go @@ -47,7 +47,7 @@ type ( } // PermStore defines operations for working with - // repostiory permissions. + // repository permissions. PermStore interface { // Find returns a project member from the // datastore. diff --git a/core/pubsub.go b/core/pubsub.go index a9993d5d1..c1e2d961e 100644 --- a/core/pubsub.go +++ b/core/pubsub.go @@ -23,7 +23,7 @@ type Message struct { Data []byte } -// Pubsub provides publish subscriber capablities, distributing +// Pubsub provides publish subscriber capabilities, distributing // messages from multiple publishers to multiple subscribers. type Pubsub interface { // Publish publishes the message to all subscribers. diff --git a/core/repo.go b/core/repo.go index 67de5cadc..def03c147 100644 --- a/core/repo.go +++ b/core/repo.go @@ -77,7 +77,7 @@ type ( ListRecent(context.Context, int64) ([]*Repository, error) // ListIncomplete returns a non-unique repository list form - // the datastore with incmoplete builds. + // the datastore with incomplete builds. ListIncomplete(context.Context) ([]*Repository, error) // Find returns a repository from the datastore. diff --git a/core/syncer.go b/core/syncer.go index a3df3d768..6c2ec6e1b 100644 --- a/core/syncer.go +++ b/core/syncer.go @@ -16,7 +16,7 @@ package core import "context" -// Syncer synchonrizes the account repository list. +// Syncer synchronizes the account repository list. type Syncer interface { Sync(context.Context, *User) (*Batch, error) } diff --git a/handler/api/repos/repair.go b/handler/api/repos/repair.go index 683c17d98..8c94078eb 100644 --- a/handler/api/repos/repair.go +++ b/handler/api/repos/repair.go @@ -26,7 +26,7 @@ import ( // HandleRepair returns an http.HandlerFunc that processes http // requests to repair the repository hooks and sync the repository -// deetails. +// details. func HandleRepair( hooks core.HookService, repoz core.RepositoryService, diff --git a/handler/api/user/sync.go b/handler/api/user/sync.go index 9250aff5b..f35e776f1 100644 --- a/handler/api/user/sync.go +++ b/handler/api/user/sync.go @@ -39,7 +39,7 @@ func HandleSync(syncer core.Syncer, repos core.RepositoryStore) http.HandlerFunc _, err := syncer.Sync(ctx, viewer) if err != nil { logger.FromContext(ctx).WithError(err). - Debugln("api: cannot synchrnoize account") + Debugln("api: cannot synchronize account") } }(ctx, viewer) w.WriteHeader(204) @@ -50,7 +50,7 @@ func HandleSync(syncer core.Syncer, repos core.RepositoryStore) http.HandlerFunc if err != nil { render.InternalError(w, err) logger.FromRequest(r).WithError(err). - Warnln("api: cannot synchrnoize account") + Warnln("api: cannot synchronize account") return } list, err := repos.List(r.Context(), viewer.ID) diff --git a/operator/runner/runner.go b/operator/runner/runner.go index f733729c4..e2ab2d3d1 100644 --- a/operator/runner/runner.go +++ b/operator/runner/runner.go @@ -517,7 +517,7 @@ func (r *Runner) Run(ctx context.Context, id int64) error { } // Start starts N build runner processes. Each process polls -// the server for pednding builds to execute. +// the server for pending builds to execute. func (r *Runner) Start(ctx context.Context, n int) error { var g errgroup.Group for i := 0; i < n; i++ { diff --git a/plugin/admission/nobot.go b/plugin/admission/nobot.go index ab2ab1d8e..97193246b 100644 --- a/plugin/admission/nobot.go +++ b/plugin/admission/nobot.go @@ -18,7 +18,7 @@ import ( // user is a human being. var ErrCannotVerify = errors.New("Cannot verify user authenticity") -// Nobot enfoces an admission policy that restricts access to +// Nobot enforces an admission policy that restricts access to // users accounts that were recently created and may be bots. // The policy expects the source control management system will // identify and remove the bot accounts before they would be diff --git a/plugin/admission/open.go b/plugin/admission/open.go index 80b60bc62..5a3e97fb8 100644 --- a/plugin/admission/open.go +++ b/plugin/admission/open.go @@ -25,7 +25,7 @@ import ( // user account and admissions are closed. var ErrClosed = errors.New("User registration is disabled") -// Open enfoces an open admission policy by default unless +// Open enforces an open admission policy by default unless // disabled. func Open(disabled bool) core.AdmissionService { return &closed{disabled: disabled} diff --git a/plugin/registry/combine.go b/plugin/registry/combine.go index 022cdc67e..bb5da5467 100644 --- a/plugin/registry/combine.go +++ b/plugin/registry/combine.go @@ -44,7 +44,7 @@ func (c *combined) List(ctx context.Context, req *core.RegistryArgs) ([]*core.Re } // if trace level debugging is enabled we print // all registry credentials retrieved from the - // various registy sources. + // various registry sources. logger := logger.FromContext(ctx) if logrus.IsLevelEnabled(logrus.TraceLevel) { if len(all) == 0 { diff --git a/service/hook/parser/parse.go b/service/hook/parser/parse.go index 3a2d255f8..c566187b1 100644 --- a/service/hook/parser/parse.go +++ b/service/hook/parser/parse.go @@ -49,7 +49,7 @@ import ( // TODO(bradrydzewski): gitea, push hook missing repository html url // TODO(bradrydzewski): bitbucket, pull request hook missing author email. -// TODO(bradrydzewski): bitbucket, hooks missing defualt repository branch. +// TODO(bradrydzewski): bitbucket, hooks missing default repository branch. // TODO(bradrydzewski): github, push hook timestamp is negative value. // TODO(bradrydzewski): github, pull request message is empty diff --git a/service/repo/util.go b/service/repo/util.go index 4801eb202..607d05e49 100644 --- a/service/repo/util.go +++ b/service/repo/util.go @@ -38,7 +38,7 @@ func convertRepository(src *scm.Repository) *core.Repository { } // convertVisibility is a helper function that returns the -// repository visibliity based on the privacy flag. +// repository visibility based on the privacy flag. func convertVisibility(src *scm.Repository) string { switch { case src.Private == true: diff --git a/service/syncer/syncer.go b/service/syncer/syncer.go index be9d02578..10917ed8e 100644 --- a/service/syncer/syncer.go +++ b/service/syncer/syncer.go @@ -55,7 +55,7 @@ func (s *Synchronizer) SetFilter(fn FilterFunc) { s.match = fn } -// Sync synchonrizes the user repository list in 6 easy steps. +// Sync synchronizes the user repository list in 6 easy steps. func (s *Synchronizer) Sync(ctx context.Context, user *core.User) (*core.Batch, error) { logger := logrus.WithField("login", user.Login) logger.Debugln("syncer: begin repository sync") diff --git a/store/shared/db/db.go b/store/shared/db/db.go index 2d36b4af6..6e6bb4f39 100644 --- a/store/shared/db/db.go +++ b/store/shared/db/db.go @@ -121,7 +121,7 @@ func (db *DB) Driver() Driver { return db.driver } -// Close cloes the database connection. +// Close closes the database connection. func (db *DB) Close() error { return db.conn.Close() } diff --git a/trigger/cron/cron_test.go b/trigger/cron/cron_test.go index caec444b4..dc32c6910 100644 --- a/trigger/cron/cron_test.go +++ b/trigger/cron/cron_test.go @@ -95,7 +95,7 @@ func TestCron_Cancel(t *testing.T) { // This unit tests demonstrates that if an error is encountered // when returning a list of ready cronjobs, the process exits -// immadiately with an error message. +// immediately with an error message. func TestCron_ErrorList(t *testing.T) { controller := gomock.NewController(t) defer controller.Finish() diff --git a/trigger/skip.go b/trigger/skip.go index 7e1f56a88..f211acb0f 100644 --- a/trigger/skip.go +++ b/trigger/skip.go @@ -77,7 +77,7 @@ func skipMessageEval(str string) bool { // func skipPaths(document *config.Config, paths []string) bool { // switch { // // changed files are only returned for push and pull request -// // events. If the list of changed files is empty the sytem will +// // events. If the list of changed files is empty the system will // // force-run all pipelines and pipeline steps // case len(paths) == 0: // return false