Skip to content

Commit 086cb25

Browse files
authoredAug 7, 2024··
docs: Fix spelling mistakes (#969)
There were a number of spelling mistakes in the documentation. This PR fixes them as the spelling will soon be enforced in docs.styra.com. Signed-off-by: Charlie Egan <charlie@styra.com>
1 parent 6614f5e commit 086cb25

9 files changed

+19
-9
lines changed
 

‎docs/CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ build/do.rq test
7777

7878
### E2E tests
7979

80-
End-to-End (E2E) tests assert the behaviour of the `regal` binary called with certain configs, and test files.
80+
End-to-End (E2E) tests assert the behavior of the `regal` binary called with certain configs, and test files.
8181
They expect a `regal` binary either in the top-level directory, or pointed at by `$REGAL_BIN`, and can be run
8282
locally via
8383

‎docs/adopters.md

+6
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ If you're using Regal, please consider opening a pull request to add your projec
88

99
Public open source projects integrating Regal for linting in their CI/CD pipelines.
1010

11+
<!-- cspell:disable -->
1112
- [Brainiac](https://github.com/carbonetes/brainiac)
1213
- [Cloudbeat](https://github.com/elastic/cloudbeat)
1314
- [Conftest](https://github.com/open-policy-agent/conftest)
@@ -25,16 +26,19 @@ Public open source projects integrating Regal for linting in their CI/CD pipelin
2526
- [Spacelift Policy Library](https://github.com/spacelift-io/spacelift-policies-example-library)
2627
- [Trino Operator](https://github.com/stackabletech/trino-operator)
2728
- [Phylum](https://github.com/phylum-dev/policy)
29+
<!-- cspell:enable -->
2830

2931
## Integrations
3032

3133
Projects and products that integrate Regal into their offerings.
3234

35+
<!-- cspell:disable -->
3336
- [Dependency Management Data](https://gitlab.com/tanna.dev/dependency-management-data)
3437
- [Enterprise OPA](https://github.com/styrainc/enterprise-opa)
3538
- [The Rego Playground](https://play.openpolicyagent.org)
3639
- [Trunk Check](https://trunk.io/check)
3740
- [reviewdog/action-regal](https://github.com/reviewdog/action-regal)
41+
<!-- cspell:enable-->
3842

3943
## Packaging
4044

@@ -50,11 +54,13 @@ The following package managers include Regal in their repositories, either nativ
5054

5155
Companies and organizations using Regal (not counting organizations behind the open source projects listed above).
5256

57+
<!-- cspell:disable -->
5358
- [Atlassian](https://www.atlassian.com)
5459
- [Bankdata](https://www.bankdata.dk)
5560
- [Miro](https://miro.com)
5661
- [Stacklok](https://stacklok.com)
5762
- [Styra](https://www.styra.com)
63+
<!-- cspell:enable-->
5864

5965
## Community
6066

‎docs/cicd.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
3030
Please see [`setup-regal`](https://github.com/StyraInc/setup-regal) for more information.
3131

32-
## GitLab CICD
32+
## GitLab CI/CD
3333

3434
To use Regal in GitLab CI/CD, you could for example use the following stage in your `.gitlab-ci.yml`:
3535

‎docs/language-server.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ by the Regal linter.
2828
alt="Screenshot of diagnostics as displayed in Zed"/>
2929

3030
Future versions of Regal may include also [compilation errors](https://github.com/StyraInc/regal/issues/745) as part of
31-
diagnistics messages.
31+
diagnostics messages.
3232

3333
### Hover
3434

@@ -117,7 +117,8 @@ be suggestions for:
117117
src={require('./assets/lsp/completion.png').default}
118118
alt="Screenshot of completion suggestions as displayed in Zed"/>
119119

120-
New completion providers are added continuosly, so if you have a suggestion for a new completion, please
120+
New completion providers are added continuously, so if you have a suggestion for
121+
a new completion, please
121122
[open an issue](https://github.com/StyraInc/regal/issues)!
122123

123124
### Code actions

‎docs/rules/bugs/rule-shadows-builtin.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ rules:
3636
3737
- OPA Docs: [Built-in Functions](https://www.openpolicyagent.org/docs/latest/policy-reference/#built-in-functions)
3838
- OPA Repo: [builtin_metadata.json](https://github.com/open-policy-agent/opa/blob/main/builtin_metadata.json)
39-
- Regal Docs: [var-shadows-builting](https://docs.styra.com/regal/rules/bugs/var-shadows-builtin)
39+
- Regal Docs: [var-shadows-builtin](https://docs.styra.com/regal/rules/bugs/var-shadows-builtin)
4040
4141
## Community
4242

‎docs/rules/bugs/var-shadows-builtin.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ rules:
5252
5353
- OPA Docs: [Built-in Functions](https://www.openpolicyagent.org/docs/latest/policy-reference/#built-in-functions)
5454
- OPA Repo: [builtin_metadata.json](https://github.com/open-policy-agent/opa/blob/main/builtin_metadata.json)
55-
- Regal Docs: [rule-shadows-builting](https://docs.styra.com/regal/rules/bugs/rule-shadows-builtin)
55+
- Regal Docs: [rule-shadows-builtin](https://docs.styra.com/regal/rules/bugs/rule-shadows-builtin)
5656
5757
## Community
5858

‎docs/rules/idiomatic/prefer-set-or-object-rule.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ rules:
150150
151151
## Related Resources
152152
153-
- OPA Docs: [Genarating Sets](https://www.openpolicyagent.org/docs/latest/policy-language/#generating-sets)
153+
- OPA Docs: [Generating Sets](https://www.openpolicyagent.org/docs/latest/policy-language/#generating-sets)
154154
- OPA Docs: [Generating Objects](https://www.openpolicyagent.org/docs/latest/policy-language/#generating-objects)
155155
- OPA Docs: [Comprehensions](https://www.openpolicyagent.org/docs/latest/policy-language/#comprehensions)
156156
- Styra Blog: [Five Things You Didn't Know About OPA](https://www.styra.com/blog/five-things-you-didnt-know-about-opa/)

‎docs/rules/imports/redundant-alias.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,16 @@ import data.users.permissions
2020

2121
## Rationale
2222

23-
The last component of an import path is always made referencable by its name inside the package in which it's imported.
23+
The last component of an import path can always be referenced by the last
24+
component of the import path itself inside the package in which it's imported.
2425
Using an alias with the same name is thus redundant, and should be omitted.
2526

2627
## Configuration Options
2728

2829
This linter rule provides the following configuration options:
2930

3031
```yaml
31-
rules:
32+
rules:
3233
imports:
3334
redundant-alias:
3435
# one of "error", "warning", "ignore"

‎docs/rules/testing/metasyntactic-variable.md

+2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ occasionally useful in examples, but should be avoided in production policy.
3131

3232
This linter rules forbids any metasyntactic variable names, as listed by Wikipedia:
3333

34+
<!-- cspell:disable -->
3435
- foobar
3536
- foo
3637
- bar
@@ -45,6 +46,7 @@ This linter rules forbids any metasyntactic variable names, as listed by Wikiped
4546
- plugh
4647
- xyzzy
4748
- thud
49+
<!-- cspell:enable -->
4850

4951
## Exceptions
5052

0 commit comments

Comments
 (0)
Please sign in to comment.