From bb2516aaab4c79263219fe5bba1fc531680746d3 Mon Sep 17 00:00:00 2001 From: Oleksandr Redko Date: Fri, 27 Feb 2026 13:53:41 +0200 Subject: [PATCH 1/2] chore: Spelling: `white space` instead of `whitespace` --- .golangci.yml | 5 ++++- CONTRIBUTING.md | 2 +- tools/metadata/main.go | 4 ++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 4cf1cfb6d6f..dae006e01b4 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -82,7 +82,7 @@ linters: - shadow misspell: locale: US - # extra words from https://go.dev//wiki/Spelling + # extra words from https://go.dev/wiki/Spelling extra-words: - typo: marshall correction: marshal @@ -98,6 +98,9 @@ linters: correction: unmarshaled - typo: unmarshalling correction: unmarshaling + # TODO: uncomment when https://github.com/golangci/misspell/issues/38 is fixed + # - typo: whitespace + # correction: white space ignore-rules: - analyses # returned by the GitHub API - cancelled # returned by the GitHub API diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index dacef506deb..2856e886925 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -264,7 +264,7 @@ Its subcommands are: - `update-go` - updates Go files with documentation URLs and formats comments. It is used by `script/generate.sh`. -- `format` - formats whitespace in `openapi_operations.yaml` and sorts its +- `format` - formats white space in `openapi_operations.yaml` and sorts its arrays. It is used by `script/fmt.sh`. - `unused` - lists operations from `openapi_operations.yaml` that are not mapped diff --git a/tools/metadata/main.go b/tools/metadata/main.go index 8a31a4fa112..a1d5f51627a 100644 --- a/tools/metadata/main.go +++ b/tools/metadata/main.go @@ -32,7 +32,7 @@ Update go source code to be consistent with openapi_operations.yaml. - Formats modified files with the equivalent of "go fmt". `, - "format_help": `Format whitespace in openapi_operations.yaml and sort its operations.`, + "format_help": `Format white space in openapi_operations.yaml and sort its operations.`, "unused_help": `List operations in openapi_operations.yaml that aren't used by any service methods.`, "working_dir_help": `Working directory. Should be the root of the go-github repository.`, @@ -40,7 +40,7 @@ Update go source code to be consistent with openapi_operations.yaml. "openapi_validate_help": ` Instead of updating, make sure that the operations in openapi_operations.yaml's "openapi_operations" field are -consistent with the sha listed in "openapi_commit". This is run in CI as a convenience so that reviewers can trust +consistent with the SHA listed in "openapi_commit". This is run in CI as a convenience so that reviewers can trust changes to openapi_operations.yaml. `, From bef2aca67cd1339f49fe702e0d2895655fb332d8 Mon Sep 17 00:00:00 2001 From: Oleksandr Redko Date: Fri, 27 Feb 2026 15:04:33 +0200 Subject: [PATCH 2/2] revert misspell --- .golangci.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index dae006e01b4..f925a98805a 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -98,9 +98,6 @@ linters: correction: unmarshaled - typo: unmarshalling correction: unmarshaling - # TODO: uncomment when https://github.com/golangci/misspell/issues/38 is fixed - # - typo: whitespace - # correction: white space ignore-rules: - analyses # returned by the GitHub API - cancelled # returned by the GitHub API