Skip to content

Commit 0995543

Browse files
authored
Add Spell Checking in CI (#12)
1 parent b4ba1c9 commit 0995543

File tree

4 files changed

+21
-2
lines changed

4 files changed

+21
-2
lines changed

.github/workflows/lint.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,6 @@ jobs:
2424

2525
- name: Run Linter
2626
uses: golangci/golangci-lint-action@v6
27+
28+
- name: Check spelling
29+
uses: crate-ci/typos@master

_typos.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[default]
2+
extend-ignore-re = [
3+
# This enables # spellchecker:disable-line
4+
"(?Rm)^.*(#|//)\\s*spellchecker:disable-line$",
5+
# This enables # spellchecker:off/on
6+
"(?s)(#|//)\\s*spellchecker:off.*?\\n\\s*(#|//)\\s*spellchecker:on",
7+
]
8+
9+
[default.extend-words]
10+
11+
12+
[files]
13+
extend-exclude = [
14+
"go.mod",
15+
"go.sum",
16+
]

internal/controller/metalstackcluster_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ func (r *MetalStackClusterReconciler) Reconcile(ctx context.Context, req ctrl.Re
120120
if statusErr != nil {
121121
err = errors.Join(err, fmt.Errorf("unable to update status: %w", statusErr))
122122
} else if !reconciler.infraCluster.Status.Ready {
123-
err = errors.New("cluster is not yet ready, requeueing")
123+
err = errors.New("cluster is not yet ready, requeuing")
124124
}
125125
}()
126126

internal/controller/metalstackmachine_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ func (r *MetalStackMachineReconciler) Reconcile(ctx context.Context, req ctrl.Re
145145
if statusErr != nil {
146146
err = errors.Join(err, fmt.Errorf("unable to update status: %w", statusErr))
147147
} else if !reconciler.infraMachine.Status.Ready {
148-
err = errors.New("machine is not yet ready, requeueing")
148+
err = errors.New("machine is not yet ready, requeuing")
149149
}
150150
}()
151151

0 commit comments

Comments
 (0)