diff --git a/.golangci.yml b/.golangci.yml index 5bfe3e99..7ca89f0c 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -16,7 +16,6 @@ linters: - wsl # TODO: fix me - - misspell - unparam - goimports - golint diff --git a/connector/github/github.go b/connector/github/github.go index 6d915edc..d9356e73 100644 --- a/connector/github/github.go +++ b/connector/github/github.go @@ -144,7 +144,7 @@ type githubConnector struct { hostName string // Used to support untrusted/self-signed CA certs. rootCA string - // HTTP Client that trusts the custom delcared rootCA cert. + // HTTP Client that trusts the custom declared rootCA cert. httpClient *http.Client // optional choice between 'name' (default) or 'slug' teamNameField string @@ -206,7 +206,7 @@ func (e *oauth2Error) Error() string { return e.error + ": " + e.errorDescription } -// newHTTPClient returns a new HTTP client that trusts the custom delcared rootCA cert. +// newHTTPClient returns a new HTTP client that trusts the custom declared rootCA cert. func newHTTPClient(rootCA string) (*http.Client, error) { tlsConfig := tls.Config{RootCAs: x509.NewCertPool()} rootCABytes, err := ioutil.ReadFile(rootCA) diff --git a/server/handlers.go b/server/handlers.go index 0f5b0d23..ede474a4 100644 --- a/server/handlers.go +++ b/server/handlers.go @@ -45,8 +45,8 @@ func (s *Server) newHealthChecker(ctx context.Context) http.Handler { return h } -// healthChecker periodically performs health checks on server dependenices. -// Currently, it only checks that the storage layer is avialable. +// healthChecker periodically performs health checks on server dependencies. +// Currently, it only checks that the storage layer is available. type healthChecker struct { s *Server diff --git a/storage/kubernetes/k8sapi/crd_extensions.go b/storage/kubernetes/k8sapi/crd_extensions.go index 4b55e393..7a65410b 100644 --- a/storage/kubernetes/k8sapi/crd_extensions.go +++ b/storage/kubernetes/k8sapi/crd_extensions.go @@ -43,7 +43,7 @@ type CustomResourceDefinitionNames struct { ListKind string `json:"listKind,omitempty" protobuf:"bytes,5,opt,name=listKind"` } -// ResourceScope is an enum defining the different scopes availabe to a custom resource +// ResourceScope is an enum defining the different scopes available to a custom resource type ResourceScope string const ( diff --git a/storage/sql/config.go b/storage/sql/config.go index 24467169..827b0df1 100644 --- a/storage/sql/config.go +++ b/storage/sql/config.go @@ -311,7 +311,7 @@ func (s *MySQL) open(logger log.Logger) (*conn, error) { err = db.Ping() if err != nil { if mysqlErr, ok := err.(*mysql.MySQLError); ok && mysqlErr.Number == mysqlErrUnknownSysVar { - logger.Info("reconnecting with MySQL pre-5.7.20 compatibilty mode") + logger.Info("reconnecting with MySQL pre-5.7.20 compatibility mode") // MySQL 5.7.20 introduced transaction_isolation and deprecated tx_isolation. // MySQL 8.0 doesn't have tx_isolation at all.