Skip to content

Commit 16a9e15

Browse files
authored
Improve spell-checking (#7126)
1 parent 107da25 commit 16a9e15

File tree

103 files changed

+324
-6351
lines changed

Some content is hidden

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

103 files changed

+324
-6351
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ jobs:
8686
run: npm install -g cspell
8787

8888
- name: run cspell
89-
run: cspell --config ./cSpell.json "website/src/**/*.md" --no-progress --no-cache
89+
run: cspell --config ./cspell.json "website/src/**/*.md" --no-progress --no-cache
9090

9191
linting:
9292
name: "Markdown linting"

.vscode/extensions.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"EditorConfig.EditorConfig",
66
"k--kato.docomment",
77
"dbaeumer.vscode-eslint",
8-
"josefpihrt-vscode.roslynator"
8+
"josefpihrt-vscode.roslynator",
9+
"streetsidesoftware.code-spell-checker"
910
]
1011
}

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@ There are other available commands too. As set up in the [.build](./.build/) dir
7575

7676
## How to Check the docs
7777

78-
We use [Markdownlint](https://github.com/DavidAnson/markdownlint) to check markdown formatting and [cSpell](https://cspell.org) for spelling. We have GitHub actions to check these for PRs, but if you'd like to check locally, you can:
78+
We use [Markdownlint](https://github.com/DavidAnson/markdownlint) to check markdown formatting and [CSpell](https://cspell.org) for spelling. We have GitHub actions to check these for PRs, but if you'd like to check locally, you can:
7979

80-
- Install cSpell: `npm install -g cspell`
80+
- Install CSpell: `npm install --global cspell`
8181
- Install the markdownlint CLI: `npm install -g markdownlint-cli`.
82-
- For spellcheck, run `cspell --config ./cSpell.json "website/src/**/*.md" --no-progress`
82+
- For spellcheck, run `cspell --config ./cspell.json "website/src/**/*.md" --no-progress`
8383
- For markdown linting, run `markdownlint "./website/src/**/*.md" --disable MD013`
8484

8585
## Code of conduct

cSpell.json

Lines changed: 0 additions & 107 deletions
This file was deleted.

cspell.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json",
3+
"version": "0.2",
4+
"language": "en",
5+
"dictionaries": ["csharp", "custom"],
6+
"dictionaryDefinitions": [
7+
{
8+
"name": "custom",
9+
"path": "./dictionary.txt"
10+
}
11+
],
12+
"ignoreRegExpList": [
13+
"featuredVideoId:(.*)", // video hash
14+
"videoId=\"(.*)\"" // video hash
15+
]
16+
}

dictionary.txt

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
Andi
2+
aspnetcore
3+
automagically
4+
autonumber
5+
Badurina
6+
bananacakepop
7+
BCPROCKS
8+
blazor
9+
blazorwasm
10+
BSON
11+
cacheable
12+
CCPA
13+
chillicream
14+
Contoso
15+
CQRS
16+
dataloaders
17+
decompile
18+
enisdenjo
19+
entityframework
20+
FIPS
21+
foos
22+
fricking
23+
Giroux
24+
GraphiQL
25+
graphqlconfig
26+
graphqlrc
27+
graphyne
28+
greendonut
29+
Hasura
30+
hotchocolate
31+
Kellner
32+
Kydne
33+
Linq
34+
Marek
35+
matchesBrics
36+
mercurius
37+
meros
38+
ncontains
39+
nendsWith
40+
NEWHOPE
41+
Newtonsoft
42+
ngte
43+
nintersects
44+
nlte
45+
Noda
46+
Normen
47+
noverlaps
48+
Npgsql
49+
nstartsWith
50+
NSwag
51+
ntouches
52+
nwithin
53+
oneof
54+
OpenIddict
55+
OWIN
56+
pageable
57+
PKCE
58+
Postgraphile
59+
preconfigured
60+
protobuf
61+
quox
62+
quux
63+
Rafi
64+
reencode
65+
relayjs
66+
Rgba
67+
runbooks
68+
Senn
69+
shoooe
70+
Skywalker
71+
snapshooter
72+
Specwise
73+
srid
74+
Staib
75+
starwars
76+
strawberryshake
77+
Structs
78+
sublicensable
79+
supergraph
80+
Swashbuckle
81+
Tengler
82+
unpublish
83+
URQL
84+
vsix
85+
websockets
86+
winget
87+
Wunder
88+
xunit

website/src/blog/2018-09-02-hot-chocolate-0.4.5.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ We now are finished with implementing the query validation rules. The following
2727
- Directives Are Defined [124](https://github.com/ChilliCream/graphql-platform/issues/124)
2828
- Values of Correct Type [120](https://github.com/ChilliCream/graphql-platform/issues/120)
2929

30-
We now also support the `@deprectaed` directive when using schema-first.
30+
We now also support the `@deprecated` directive when using schema-first.
3131

3232
Furthermore, we fixed a lot of bugs around schema-first. So, at the moment code-first is still the most viable way to create a schema,but we are working hard to get both flavours on par.
3333

website/src/blog/2019-02-20-schema-stitching.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,7 @@ type UserMutations {
925925
The stitching engine provides a lot of extension points, but if we wanted to write the stitching for one specific resolver by ourselves then we could do that by using the `IStitchingContext` which is a scoped service and can be resolved through the resolver context.
926926

927927
```csharp
928-
IStitchingContext stitchingContext = context.Service<IStichingContext>();
928+
IStitchingContext stitchingContext = context.Service<IStitchingContext>();
929929
IRemoteQueryClient remoteQueryClient = stitchingContext.GetRemoteQueryClient("messages");
930930
IExecutionResult result = remoteQueryClient.ExecuteAsync("{ foo { bar } }")
931931
```

website/src/blog/2019-04-11-integration-tests.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ The query executor will return an execution result, depending on the type of ope
116116

117117
An `IReadOnlyQueryResult` contains basically the result graph of the query, but asserting this could be very tiresome.
118118

119-
My good friend [Normen](https://github.com/nscheibe) who works at Swiss Life created a snapshot testing library that basically works like [jestjs](https://jestjs.io). We use _Snapshooter_ internally to test the Hot Chocolate core.
119+
My good friend [Normen](https://github.com/nscheibe) who works at Swiss Life created a snapshot testing library that basically works like [Jest](https://jestjs.io). We use _Snapshooter_ internally to test the Hot Chocolate core.
120120

121121
[Snapshooter](https://github.com/SwissLife-OSS/snapshooter) will create a snapshot at the first execution of the test. The snapshots are saved in a folder `__snapshot__` that is co-located with our test class. Every consecutive test run will be validated against that first snapshot. If the snapshots do not match the test will fail and tell us what part did not match.
122122

website/src/blog/2019-04-12-type-system.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ With our new schema builder, we did a lot of work underneath and introduced the
4848

4949
**For what is that useful?**
5050

51-
For one you can now register our new `INamingConverions` with the dependency injection and then the new `SchemaBuilder` will use your naming conventions instead of the built-in naming conventions.
51+
For one you can now register our new `INamingConventions` with the dependency injection and then the new `SchemaBuilder` will use your naming conventions instead of the built-in naming conventions.
5252

5353
Also, you can register our new `ITypeInspector` and override how we infer schema types from POCOs. This will allow you for instance to add support for custom attributes, so no need to pollute your API with our attributes anymore.
5454

55-
But fear not, you do not have to implement the whole `INamingConverions` interface for instance since you can override each part of our default implementation.
55+
But fear not, you do not have to implement the whole `INamingConventions` interface for instance since you can override each part of our default implementation.
5656

5757
Since, in many cases we just want to tune existing naming conventions we can inherit from the default implementation `DefaultNamingConventions` and overwrite just what we want to change.
5858

@@ -88,11 +88,11 @@ In order to register our conventions with the schema builder we can do the follo
8888
```csharp
8989
public void ConfigureServices(IServiceCollection services)
9090
{
91-
services.AddSingleton<INamingConverions, MyNamingConventions>();
91+
services.AddSingleton<INamingConventions, MyNamingConventions>();
9292
services.AddGraphQL(sp => Schema.Create(c =>
9393
{
9494
c.RegisterServiceProvider(sp);
95-
c.RegisterQuerType<Foo>();
95+
c.RegisterQueryType<Foo>();
9696
}));
9797

9898
}
@@ -103,7 +103,7 @@ Or we could do it like the following with the new schema builder:
103103
```csharp
104104
public void ConfigureServices(IServiceCollection services)
105105
{
106-
services.AddSingleton<INamingConverions, MyNamingConventions>();
106+
services.AddSingleton<INamingConventions, MyNamingConventions>();
107107
services.AddGraphQL(sp => SchemaBuilder.New()
108108
.AddQueryType<Foo>()
109109
.AddServices(sp));

0 commit comments

Comments
 (0)