Skip to content

Commit 31d0611

Browse files
zyfjeffmattklein123
authored andcommitted
ci: Add spell checker to ci (envoyproxy#4439)
Correct commonly misspelled English words Signed-off-by: zyfjeff <[email protected]>
1 parent c52c897 commit 31d0611

File tree

92 files changed

+236
-133
lines changed

Some content is hidden

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

92 files changed

+236
-133
lines changed

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ jobs:
114114
- run: rm -rf /home/circleci/project/.git # CircleCI git caching is likely broken
115115
- checkout
116116
- run: ci/do_circle_ci.sh check_format
117+
- run: ci/do_circle_ci.sh check_spelling
117118
build_image:
118119
docker:
119120
- image: circleci/python:2.7

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ git rebase -i HEAD^^
212212
git push origin -f
213213
```
214214

215-
Note, that in general rewriting history in this way is a hinderance to the review process and this
215+
Note, that in general rewriting history in this way is a hindrance to the review process and this
216216
should only be done to correct a DCO mistake.
217217

218218
## Triggering CI re-run without making changes

api/envoy/api/v2/listener/listener.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ message Filter {
6161
// 4. Transport protocol.
6262
// 5. Application protocols (e.g. ALPN for TLS protocol).
6363
//
64-
// For criterias that allow ranges or wildcards, the most specific value in any
64+
// For criteria that allow ranges or wildcards, the most specific value in any
6565
// of the configured filter chains that matches the incoming connection is going
6666
// to be used (e.g. for SNI ``www.example.com`` the most specific match would be
6767
// ``www.example.com``, then ``*.example.com``, then ``*.com``, then any filter

api/envoy/config/filter/http/jwt_authn/v2alpha/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ The next default location is in the query parameter as:
2626

2727
If a custom location is desired, `from_headers` or `from_params` can be used to specify custom locations to extract JWT.
2828

29-
## HTTP header to pass sucessfully verified JWT
29+
## HTTP header to pass successfully verified JWT
3030

3131
If a JWT is valid, its payload will be passed to the backend in a new HTTP header specified in `forward_payload_header` field. Its value is base64 encoded JWT payload in JSON.

api/envoy/config/filter/network/http_connection_manager/v2/http_connection_manager.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ message HttpConnectionManager {
219219
bool unix_sockets = 1;
220220
}
221221

222-
// Configures what network addresses are considered internal for stats and header sanitazion
222+
// Configures what network addresses are considered internal for stats and header sanitation
223223
// purposes. If unspecified, only RFC1918 IP addresses will be considered internal.
224224
// See the documentation for :ref:`config_http_conn_man_headers_x-envoy-internal` for more
225225
// information about internal/external addresses.

api/envoy/config/rbac/v2alpha/rbac.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ message Permission {
108108
// When any is set, it matches any action.
109109
bool any = 3 [(validate.rules).bool.const = true];
110110

111-
// A header (or psuedo-header such as :path or :method) on the incoming HTTP request. Only
111+
// A header (or pseudo-header such as :path or :method) on the incoming HTTP request. Only
112112
// available for HTTP request.
113113
envoy.api.v2.route.HeaderMatcher header = 4;
114114

@@ -166,7 +166,7 @@ message Principal {
166166
// A CIDR block that describes the downstream IP.
167167
envoy.api.v2.core.CidrRange source_ip = 5;
168168

169-
// A header (or psuedo-header such as :path or :method) on the incoming HTTP request. Only
169+
// A header (or pseudo-header such as :path or :method) on the incoming HTTP request. Only
170170
// available for HTTP request.
171171
envoy.api.v2.route.HeaderMatcher header = 6;
172172

bazel/PPROF.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ instantiation of `MainCommonBase::MainCommonBase`:
8383
8484
Once these changes have been made in your working directory, it might make sense to
8585
save the diff as a patch (`git diff > file`), which can then be quickly
86-
applied/unapplied for testing and commiting. (`git apply`, `git apply -R`)
86+
applied/unapplied for testing and committing. (`git apply`, `git apply -R`)
8787
8888
Build the binary using bazel, and run the binary without any environment variables:
8989

bazel/get_workspace_status

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ fi
3737
echo "BUILD_SCM_REVISION ${git_rev}"
3838
echo "STABLE_BUILD_SCM_REVISION ${git_rev}"
3939

40-
# Check whether there are any uncommited changes
40+
# Check whether there are any uncommitted changes
4141
git diff-index --quiet HEAD --
4242
if [[ $? == 0 ]];
4343
then

bazel/repositories.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def _python_deps():
195195
build_file = "@envoy//bazel/external:twitter_common_finagle_thrift.BUILD",
196196
)
197197

198-
# Bazel native C++ dependencies. For the depedencies that doesn't provide autoconf/automake builds.
198+
# Bazel native C++ dependencies. For the dependencies that doesn't provide autoconf/automake builds.
199199
def _cc_deps():
200200
_repository_impl("grpc_httpjson_transcoding")
201201
native.bind(

ci/README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,11 @@ The `./ci/run_envoy_docker.sh './ci/do_ci.sh <TARGET>'` targets are:
8787
* `bazel.release.server_only` &mdash; build Envoy static binary under `-c opt` with gcc.
8888
* `bazel.coverage` &mdash; build and run tests under `-c dbg` with gcc, generating coverage information in `$ENVOY_DOCKER_BUILD_DIR/envoy/generated/coverage/coverage.html`.
8989
* `bazel.coverity` &mdash; build Envoy static binary and run Coverity Scan static analysis.
90-
* `bazel.tsan` &mdash; build and run tests under `-c dbg --config=clang-tsan` with clang.
91-
* `check_format`&mdash; run `clang-format` and `buildifier` on entire source tree.
92-
* `fix_format`&mdash; run and enforce `clang-format` and `buildifier` on entire source tree.
90+
* `bazel.tsan` &mdash; build and run tests under `-c dbg --config=clang-tsan` with clang-6.0.
91+
* `check_format`&mdash; run `clang-format-6.0` and `buildifier` on entire source tree.
92+
* `fix_format`&mdash; run and enforce `clang-format-6.0` and `buildifier` on entire source tree.
93+
* `check_spelling`&mdash; run `misspell` on entire project.
94+
* `fix_spelling`&mdash; run and enforce `misspell` on entire project.
9395
* `docs`&mdash; build documentation tree in `generated/docs`.
9496

9597
# Testing changes to the build image as a developer

0 commit comments

Comments
 (0)