Skip to content
This repository was archived by the owner on Nov 14, 2024. It is now read-only.

Commit cbe478f

Browse files
authored
chore: check for common misspellings (#38)
1 parent 8ae38a0 commit cbe478f

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.golangci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ linters-settings:
6969
- pkg: k8s.io/metrics/pkg/apis/metrics/(v[\w\d]+)
7070
alias: metrics${1}
7171

72+
misspell:
73+
locale: US
74+
7275
revive:
7376
# see https://github.com/mgechev/revive#available-rules for details.
7477
ignore-generated-header: true
@@ -162,6 +165,7 @@ linters:
162165
- importas
163166
- ineffassign
164167
- makezero
168+
- misspell
165169
- noctx
166170
- revive
167171
- rowserrcheck

internal/checks/kube/rbac.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func (k *KubernetesChecker) checkRBACDefault(ctx context.Context) ([]*api.CheckR
8080
k.log.Debug(ctx, "Got SSRR PolicyRule", slog.F("rule", r))
8181
}
8282

83-
// TODO: optimise this
83+
// TODO: optimize this
8484
for req, reqVerbs := range k.reqs.ResourceRequirements {
8585
if err := satisfies(req, reqVerbs, compactRules); err != nil {
8686
summary := fmt.Sprintf("resource %s: %s", req.Resource, err)

internal/checks/kube/resources_list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"cdr.dev/coder-doctor/internal/api"
77
)
88

9-
// This is a list of all known Resource and/or RBAC requirements for each verison of Coder.
9+
// This is a list of all known Resource and/or RBAC requirements for each version of Coder.
1010
// Order by version DESCENDING.
1111
var allRequirements = []VersionedResourceRequirements{
1212
{

0 commit comments

Comments
 (0)