Skip to content

Commit 205da5b

Browse files
authored
Add spelling checking (#86)
1 parent c4b90f5 commit 205da5b

File tree

12 files changed

+50
-25
lines changed

12 files changed

+50
-25
lines changed

.github/dependabot.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# cSpell:ignore gomod
2+
13
version: 2
24
updates:
35
- package-ecosystem: github-actions

.github/workflows/release.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# cSpell:ignore GOARCH GOARM buildx softprops
2+
13
name: Release
24

35
on:
@@ -100,7 +102,7 @@ jobs:
100102
path: artifacts
101103

102104
- name: Display structure of files
103-
run: ls -Rlah
105+
run: ls -R -lah
104106

105107
- name: Attach files
106108
if: github.event_name == 'release'

.github/workflows/tests.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# cSpell:ignore pipx jsonschema schemafile
2+
13
name: Tests
24

35
on:

.vscode/extensions.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
22
"recommendations": [
3-
"golang.go",
43
"editorconfig.editorconfig",
4+
"golang.go",
55
"ms-vscode.makefile-tools",
6-
"redhat.vscode-yaml"
6+
"redhat.vscode-yaml",
7+
"streetsidesoftware.code-spell-checker"
78
]
8-
}
9+
}

.vscode/settings.json

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,20 @@
22
"editor.formatOnSave": true,
33
"yaml.schemas": {
44
"https://json.schemastore.org/github-workflow.json": ".github/workflows/*.yaml"
5-
}
6-
}
5+
},
6+
"cSpell.words": [
7+
"codereaper",
8+
"Noget",
9+
"stretchr",
10+
"swiftlint",
11+
"testdata",
12+
"tmpl"
13+
],
14+
"cSpell.ignorePaths": [
15+
".gitignore",
16+
"Dockerfile",
17+
"docs/generated",
18+
"go.*",
19+
"internal/translations/testdata",
20+
]
21+
}

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# cSpell:ignore trimpath coverprofile
2+
13
CI = $(shell env | grep ^CI=)
24
VERSION = 0.0.0
35
SUFFIX =

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88

99
## Installation
1010

11-
The prefered method of installation is through [asdf](http://asdf-vm.com/).
11+
The preferred method of installation is through [asdf](http://asdf-vm.com/).
1212

1313
A lane plugin to install has been set up at [asdf-lane](https://github.com/CodeReaper/asdf-lane).
1414

1515
Alternatively this tool can be run directly:
1616
```go
17-
go run github.com/codereaper/lane@1.0.0
17+
go run github.com/codereaper/lane@1
1818
```
1919

2020
## Containerized

cmd/translations.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ Make sure to share the sheet with the 'client_email' assigned to your service ac
3333
Use: "download",
3434
Short: "Download translations",
3535
Long: additionalHelp,
36-
Example: " lane translations download -o output.csv -c googleapi.json -d 11p...ev7lc -f csv",
36+
Example: " lane translations download -o output.csv -c google-api.json -d 11p...ev7lc -f csv",
3737
RunE: func(cmd *cobra.Command, args []string) error {
3838
return downloader.Download(context.Background(), &flags)
3939
},
4040
}
4141
cmd.Flags().StringVarP(&flags.Output, "output", "o", "", "Path to save output file (Required)")
42-
cmd.Flags().StringVarP(&flags.Credentials, "credentials", "c", "", "A path to the credentails json file issued by Google (Required). More details under help")
42+
cmd.Flags().StringVarP(&flags.Credentials, "credentials", "c", "", "A path to the credentials json file issued by Google (Required). More details under help")
4343
cmd.Flags().StringVarP(&flags.DocumentId, "document", "d", "", "The document id of the sheet to download (Required). Found in its url, e.g. https://docs.google.com/spreadsheets/d/<document-id>/edit#gid=0")
4444
cmd.Flags().StringVarP(&flags.Format, "format", "f", "", "The format of the output, defaults to csv")
4545
cmd.MarkFlagRequired("output")

docs/generated/lane_translations_download.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ lane translations download [flags]
2020
### Examples
2121

2222
```
23-
lane translations download -o output.csv -c googleapi.json -d 11p...ev7lc -f csv
23+
lane translations download -o output.csv -c google-api.json -d 11p...ev7lc -f csv
2424
```
2525

2626
### Options
2727

2828
```
29-
-c, --credentials string A path to the credentails json file issued by Google (Required). More details under help
29+
-c, --credentials string A path to the credentials json file issued by Google (Required). More details under help
3030
-d, --document string The document id of the sheet to download (Required). Found in its url, e.g. https://docs.google.com/spreadsheets/d/<document-id>/edit#gid=0
3131
-f, --format string The format of the output, defaults to csv
3232
-h, --help help for download

internal/downloader/downloader.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@ import (
99
"strings"
1010
)
1111

12+
// cSpell:disable
1213
var validFormats = map[string]string{
1314
"csv": "text/csv",
1415
"tsv": "text/tab-separated-values",
1516
"ods": "application/x-vnd.oasis.opendocument.spreadsheet",
1617
"xlsx": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
17-
}
18+
} // cSpell:enable
1819

1920
func Download(ctx context.Context, flags *Flags) error {
2021
service, err := newService(ctx, flags.Credentials)

0 commit comments

Comments
 (0)