Skip to content

Commit 0c63f5e

Browse files
authored
chore: add support for typos (scaleway#5118)
1 parent 006b5b6 commit 0c63f5e

File tree

158 files changed

+208
-181
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

158 files changed

+208
-181
lines changed

.github/workflows/lint.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,14 @@ jobs:
3737
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
3838
version: latest
3939
args: --timeout 10m
40+
41+
spelling:
42+
name: Spell Check with Typos
43+
runs-on: ubuntu-latest
44+
steps:
45+
- name: Checkout Actions Repository
46+
uses: actions/checkout@v4
47+
- name: Spell Check Repo
48+
uses: crate-ci/[email protected]
49+
env:
50+
CLICOLOR: 1

_typos.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[files]
2+
extend-exclude = [
3+
"**.cassette.yaml",
4+
"**.golden",
5+
"go.mod",
6+
"go.sum",
7+
"CHANGELOG.md"
8+
]
9+
10+
[default.extend-words]
11+
pn = "pn"
12+
thi = "thi"
13+
Vertexes = "Vertexes"
14+
ba = "ba"
15+
Viw = "Viw"
16+
UE = "UE"

cmd/scw/testdata/test-all-usage-apple-silicon-server-reinstall-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
Reinstall an existing Apple silicon server (specified by its server ID) from a new image (OS). All the data on the disk is deleted and all configuration is reset to the defailt configuration values of the image (OS).
3+
Reinstall an existing Apple silicon server (specified by its server ID) from a new image (OS). All the data on the disk is deleted and all configuration is reset to the default configuration values of the image (OS).
44

55
USAGE:
66
scw apple-silicon server reinstall <server-id ...> [arg=value ...]

cmd/scw/testdata/test-all-usage-cockpit-managed-alerts-enable-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
Enable the sending of managed alerts for the specified Project. Managed alerts are predefined alerts that apply to Scaleway recources integrated with Cockpit by default.
3+
Enable the sending of managed alerts for the specified Project. Managed alerts are predefined alerts that apply to Scaleway resources integrated with Cockpit by default.
44

55
USAGE:
66
scw cockpit managed-alerts enable [arg=value ...]

cmd/scw/testdata/test-all-usage-container-cron-create-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ USAGE:
77

88
ARGS:
99
[container-id] UUID of the container to invoke by the cron
10-
[schedule] UNIX cron shedule
10+
[schedule] UNIX cron schedule
1111
[args] Arguments to pass with the cron
1212
[name] Name of the cron to create
1313
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)

cmd/scw/testdata/test-all-usage-dns-certificate-get-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
Get the DNS zone's TLS certificate. If you do not have a certificate, the ouptut returns `no certificate found`.
3+
Get the DNS zone's TLS certificate. If you do not have a certificate, the output returns `no certificate found`.
44

55
USAGE:
66
scw dns certificate get <dns-zone ...> [arg=value ...]

cmd/scw/testdata/test-all-usage-function-domain-create-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ USAGE:
66
scw function domain create [arg=value ...]
77

88
ARGS:
9-
[hostname] Hostame to create
9+
[hostname] Hostname to create
1010
[function-id] UUID of the function to associate the domain with
1111
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
1212

cmd/scw/testdata/test-all-usage-iam-policy-get-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
Retrieve information about a policy, speficified by the `policy_id` parameter. The policy's full details, including `id`, `name`, `organization_id`, `nb_rules` and `nb_scopes`, `nb_permission_sets` are returned in the response.
3+
Retrieve information about a policy, specified by the `policy_id` parameter. The policy's full details, including `id`, `name`, `organization_id`, `nb_rules` and `nb_scopes`, `nb_permission_sets` are returned in the response.
44

55
USAGE:
66
scw iam policy get <policy-id ...> [arg=value ...]

cmd/scw/testdata/test-all-usage-instance-image-create-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ GLOBAL FLAGS:
3535
-D, --debug Enable debug mode
3636
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
3737
-p, --profile string The config profile to use
38-
--web open console page for the current ressource
38+
--web open console page for the current resource

cmd/scw/testdata/test-all-usage-instance-image-delete-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ GLOBAL FLAGS:
2525
-D, --debug Enable debug mode
2626
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
2727
-p, --profile string The config profile to use
28-
--web open console page for the current ressource
28+
--web open console page for the current resource

0 commit comments

Comments
 (0)