Skip to content

Commit 01e2d28

Browse files
Spellcheck documentation changes in PRs (#3281)
1 parent 15ba65e commit 01e2d28

13 files changed

+102
-20
lines changed

Diff for: .github/workflows/spellcheck.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: 'Documentation spellcheck'
2+
on:
3+
pull_request:
4+
paths: ['**/*.md']
5+
6+
permissions:
7+
pull-requests: read
8+
9+
jobs:
10+
spellcheck:
11+
name: 'Documentation spellcheck'
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v3
17+
18+
- uses: streetsidesoftware/cspell-action@v2
19+
name: Spellcheck
20+
with:
21+
files: '**/*.md'
22+
inline: warning
23+
incremental_files_only: true

Diff for: .github/workflows/sync-branches.yml

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
".devcontainer" \
3535
".vscode" \
3636
"eng/actions" \
37+
"cspell.json" \
3738
"documentation/**.md"
3839
3940
- name: Open PR

Diff for: .vscode/settings.json

+7-1
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,11 @@
3535
// ms-vscode.powershell settings
3636
"powershell.promptToUpdatePowerShell": false,
3737
"powershell.integratedConsole.showOnStartup": false,
38-
"powershell.startAutomatically": false
38+
"powershell.startAutomatically": false,
39+
40+
// streetsidesoftware.code-spell-checker
41+
42+
// Increase the text buffer size to 1000 characters instead of the default of 500.
43+
// Parts of our documentation include large text blobs, such as examples of public keys.
44+
"cSpell.blockCheckingWhenTextChunkSizeGreaterThan": 1000
3945
}

Diff for: CONTRIBUTING.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Good bug reports make it easier for maintainers to verify and root cause the und
1919
* A high-level description of the problem.
2020
* A _minimal reproduction_, i.e. the smallest size of code/configuration required to reproduce the wrong behavior.
2121
* A description of the _expected behavior_, contrasted with the _actual behavior_ observed.
22-
* Information on the environment: OS/distro, CPU arch, SDK version, etc.
22+
* Information on the environment: OS/distribution, CPU arch, SDK version, etc.
2323
* Additional information, e.g. is it a regression from previous versions? are there any known workarounds?
2424

2525
### DOs and DON'Ts
@@ -53,7 +53,7 @@ We use and recommend the following workflow:
5353
- Clearly state that you are going to take on implementing it, if that's the case. You can request that the issue be assigned to you. Note: The issue filer and the implementer don't have to be the same person.
5454
2. Create a personal fork of the repository on GitHub (if you don't already have one).
5555
3. In your fork, create a branch off of main (`git checkout -b mybranch`).
56-
- Name the branch so that it clearly communicates your intentions, such as issue-123 or githubhandle-issue.
56+
- Name the branch so that it clearly communicates your intentions, such as `issue-123` or `githubhandle-issue`.
5757
- Branches are useful since they isolate your changes from incoming changes from upstream. They also enable you to create multiple PRs from the same fork.
5858
4. Make and commit your changes to your branch.
5959
5. Add new tests corresponding to your change, if applicable.

Diff for: cspell.json

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"version": "0.2",
3+
"words": [
4+
"callstacks",
5+
"CLSID",
6+
"codespace",
7+
"coreclr",
8+
"darc",
9+
"discoverability",
10+
"dockerfiles",
11+
"ESRP",
12+
"exfiltrate",
13+
"gcdump",
14+
"gcdumps",
15+
"globbing",
16+
"globstar",
17+
"JWTs",
18+
"libc",
19+
"livemetrics",
20+
"minidump",
21+
"MSRC",
22+
"newtonsoft",
23+
"respecifying",
24+
"runtimes",
25+
"speedscope",
26+
"threadpool",
27+
"upvoting",
28+
"walkthroughs"
29+
],
30+
"patterns": [
31+
{
32+
"name": "markdown_code_block",
33+
"pattern": "/^(\\s*`{3,}).*[^```]*?^\\1/gmx"
34+
},
35+
{
36+
"name": "markdown_inline_code",
37+
"pattern": "/`[^`\\n\\r]*`/gmx"
38+
}
39+
],
40+
"languageSettings": [
41+
{
42+
"languageId": [
43+
"markdown"
44+
],
45+
"ignoreRegExpList": [
46+
"markdown_code_block",
47+
"markdown_inline_code"
48+
]
49+
}
50+
]
51+
}

Diff for: documentation/api/definitions.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ Summary state of an operation.
348348

349349
## ProcessIdentifier
350350

351-
Object with process identifying information. The properties on this object describe indentifying aspects for a found process; these values can be used in other API calls to perform operations on specific processes.
351+
Object with process identifying information. The properties on this object describe identifying aspects for a found process; these values can be used in other API calls to perform operations on specific processes.
352352

353353
| Name | Type | Description |
354354
|---|---|---|
@@ -373,7 +373,7 @@ The `name` property may not be a unique identifier if the application was built
373373

374374
Object with detailed information about a specific process.
375375

376-
Some properties will have non-null values for procesess that are running on .NET 5 or newer (denoted with `.NET 5+`). These properties will be null for runtime versions prior to .NET 5.
376+
Some properties will have non-null values for processes that are running on .NET 5 or newer (denoted with `.NET 5+`). These properties will be null for runtime versions prior to .NET 5.
377377

378378
| Name | Type | Description |
379379
|---|---|---|

Diff for: documentation/api/operations.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
# Operations
55

6-
Operations are used to track long running operations in dotnet-monitor, specifically egressing data via egressProviders instead of directly to the client. This api is very similiar to [Azure asynchronous operations](https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/async-operations#url-to-monitor-status).
6+
Operations are used to track long running operations in dotnet-monitor, specifically egressing data via egressProviders instead of directly to the client. This api is very similar to [Azure asynchronous operations](https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/async-operations#url-to-monitor-status).
77

88
| Operation | Description |
99
|---|---|

Diff for: documentation/configuration.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ Optionally, a shorthand format allows you to omit the `Key` and `Value` terms an
448448

449449
### Examples
450450

451-
#### Match the iisexpress process by name
451+
#### Match the IIS Express process by name
452452

453453
<details>
454454
<summary>JSON</summary>
@@ -485,7 +485,7 @@ Optionally, a shorthand format allows you to omit the `Key` and `Value` terms an
485485
```
486486
</details>
487487

488-
#### Match the iisexpress process by name (Shorthand)
488+
#### Match the IIS Express process by name (Shorthand)
489489

490490
<details>
491491
<summary>JSON</summary>
@@ -985,7 +985,7 @@ The Queue Message's payload will be the blob name (`<BlobPrefix>/<ArtifactName>`
985985
--from-literal=Egress__S3Storage__monitorS3Blob__secretAccessKey=mySecretPassword \
986986
--from-literal=Egress__S3Storage__monitorS3Blob__regionName=us-east-1 \
987987
--dry-run=client -o yaml | kubectl apply -f -
988-
```
988+
```
989989
</details>
990990

991991
### Filesystem egress provider
@@ -1143,7 +1143,7 @@ Each collection rule can specify a set of process filters to select which proces
11431143

11441144
#### Example
11451145

1146-
The following example shows the `Filters` portion of a collection rule that has the rule only apply to processes named "dotnet" and whose command line contains "myapp.dll".
1146+
The following example shows the `Filters` portion of a collection rule that has the rule only apply to processes named `dotnet` and whose command line contains `myapp.dll`.
11471147

11481148
<details>
11491149
<summary>JSON</summary>
@@ -1256,7 +1256,7 @@ A trigger that has its condition satisfied when the number of HTTP requests have
12561256
| Name | Type | Required | Description | Default Value | Min Value | Max Value |
12571257
|---|---|---|---|---|---|---|
12581258
| `RequestCount` | int | true | The threshold of the number of slow requests that start within the sliding window of time. | | | |
1259-
| `RequestDuration` | Timespan? | false | The threshold of the amount of time in which a request is considered to be slow. | `"00:00:05"` (5 seconds) | `"00:00:00"` (zero seconds) | `"01:00:00"` (1 hour) |
1259+
| `RequestDuration` | TimeSpan? | false | The threshold of the amount of time in which a request is considered to be slow. | `"00:00:05"` (5 seconds) | `"00:00:00"` (zero seconds) | `"01:00:00"` (1 hour) |
12601260
| `SlidingWindowDuration` | TimeSpan? | false | The sliding time window in which the the number of slow requests are counted. | `"00:01:00"` (one minute) | `"00:00:01"` (one second) | `"1.00:00:00"` (1 day) |
12611261
| `IncludePaths` | string[] | false | The list of request path patterns to monitor. If not specified, all request paths are considered. If specified, only request paths matching one of the patterns in this list will be considered. Request paths matching a pattern in the `ExcludePaths` list will be ignored. | `null` | | |
12621262
| `ExcludePaths` | string[] | false | The list of request path patterns to ignore. Request paths matching a pattern in this list will be ignored. | `null` | | |
@@ -1430,7 +1430,7 @@ These [trigger shortcuts](collectionrules/triggershortcuts.md) simplify configur
14301430

14311431
#### ASP.NET Request Path Wildcards and Globbing
14321432

1433-
The `IncludePaths` and `ExcludePaths` properties of the ASP.NET triggers allow for wildcards and globbing so that every included or excluded path does not necessarily need to be explicitly specified. For these triggers, a match with an `ExcludePaths` pattern will supercede a match with an `IncludePaths` pattern.
1433+
The `IncludePaths` and `ExcludePaths` properties of the ASP.NET triggers allow for wildcards and globbing so that every included or excluded path does not necessarily need to be explicitly specified. For these triggers, a match with an `ExcludePaths` pattern will supersede a match with an `IncludePaths` pattern.
14341434

14351435
The globstar `**/` will match zero or more path segments including the forward slash `/` character at the end of the segment.
14361436

@@ -1780,7 +1780,7 @@ An action that executes an executable found in the file system. Non-zero exit co
17801780

17811781
##### Example
17821782

1783-
Usage that executes a .NET executable named "myapp.dll" using `dotnet`.
1783+
Usage that executes a .NET executable named `myapp.dll` using `dotnet`.
17841784

17851785
<details>
17861786
<summary>JSON</summary>
@@ -1843,7 +1843,7 @@ No outputs
18431843

18441844
##### Example
18451845

1846-
Usage that loads one of the sample profilers from [`dotnet/runtime`: src/tests/profiler/native/gcallocateprofiler/gcallocateprofiler.cpp](https://github.com/dotnet/runtime/blob/9ddd58a58d14a7bec5ed6eb777c6703c48aca15d/src/tests/profiler/native/gcallocateprofiler/gcallocateprofiler.cpp).
1846+
Usage that loads one of the sample profilers from [`dotnet/runtime: src/tests/profiler/native/gcallocateprofiler/gcallocateprofiler.cpp`](https://github.com/dotnet/runtime/blob/9ddd58a58d14a7bec5ed6eb777c6703c48aca15d/src/tests/profiler/native/gcallocateprofiler/gcallocateprofiler.cpp).
18471847

18481848
<details>
18491849
<summary>JSON</summary>

Diff for: documentation/release-process.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ The remainder of the release will automatically push NuGet packages to nuget.org
105105

106106
## Release to Storage Accounts
107107

108-
1. Approximately 3 days before Docker image release, execute a dry-run of the [dotnet-monitor-release](https://dev.azure.com/dnceng/internal/_build?definitionId=1103) pipeline (`Branch` should be set to `main`; `IsDryRun` should be checked; uncheck `IsTestRun`; under `Resources`, select the `dotnet monitor` build from which assets will be published). This will validate that the nupkg files can be published to the `dotnetcli` storage account and checksums can be published to the `dotnetclichecksums` storage account.
109-
1. The day before Docker image release, execute run of the [dotnet-monitor-release](https://dev.azure.com/dnceng/internal/_build?definitionId=1103) pipeline (`Branch` should be set to `main`; uncheck `IsDryRun`; uncheck `IsTestRun`; under `Resources`, select the `dotnet monitor` build from which assets will be published). This will publish the nupkg files to the `dotnetcli` storage account and the checksums to the `dotnetclichecksums` storage account.
108+
1. Approximately 3 days before Docker image release, execute a dry-run of the [dotnet-monitor-release](https://dev.azure.com/dnceng/internal/_build?definitionId=1103) pipeline (`Branch` should be set to `main`; `IsDryRun` should be checked; uncheck `IsTestRun`; under `Resources`, select the `dotnet monitor` build from which assets will be published). This will validate that the `.nupkg` files can be published to the `dotnetcli` storage account and checksums can be published to the `dotnetclichecksums` storage account.
109+
1. The day before Docker image release, execute run of the [dotnet-monitor-release](https://dev.azure.com/dnceng/internal/_build?definitionId=1103) pipeline (`Branch` should be set to `main`; uncheck `IsDryRun`; uncheck `IsTestRun`; under `Resources`, select the `dotnet monitor` build from which assets will be published). This will publish the `.nupkg` files to the `dotnetcli` storage account and the checksums to the `dotnetclichecksums` storage account.
110110

111111
## Release Docker Images
112112

Diff for: documentation/releaseNotes/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
This folder contains the release notes that appear here: [https://github.com/dotnet/dotnet-monitor/releases](https://github.com/dotnet/dotnet-monitor/releases).
33

44
## Creation
5-
Release notes can be created by running the [Generate release notes](https://github.com/dotnet/dotnet-monitor/actions/workflows/generate-release-notes.yml) workflow. This workflow will generate release notes for a given branch, corretly name it according to the format described in [File Naming](#file-naming), and open a PR with the new file.
5+
Release notes can be created by running the [Generate release notes](https://github.com/dotnet/dotnet-monitor/actions/workflows/generate-release-notes.yml) workflow. This workflow will generate release notes for a given branch, correctly name it according to the format described in [File Naming](#file-naming), and open a PR with the new file.
66

77
## File Naming
88
Release notes are named in the format `releaseNotes.v[fullVersionNumber].md` for a released version. This is set to archive release notes from a version that has been released. `fullVersionNumber` should be the version assigned on the github release page, for example `releaseNotes.v5.0.0-preview.6.21370.3.md` would be the name of the 5.0 Preview 6 release notes (if they were archived).

Diff for: documentation/releaseNotes/releaseNotes.v6.0.0-preview.8.21503.3.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Today we are releasing the next official preview of the `dotnet-monitor` tool. T
55
- Updated process detection to cancel waiting on unresponsive processes.
66
- Documented recommended container limits. See [Running in Kubernetes](https://github.com/dotnet/dotnet-monitor/blob/v6.0.0-preview.8.21503.3/documentation/kubernetes.md) for more details.
77
- ⚠️ Upgraded runtime framework dependency from .NET Core 3.1 to .NET 6
8-
- ⚠️ Reversioned from 5.0.0 to 6.0.0
8+
- ⚠️ Re-versioned from 5.0.0 to 6.0.0
99
- ⚠️ Fix all counter intervals to single global option (#923)
1010

1111
\*⚠️ **_indicates a breaking change_**

Diff for: documentation/releaseNotes/releaseNotes.v6.0.2.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ Today we are releasing the 6.0.2 build of the `dotnet-monitor` tool. This releas
22

33
- Ensure dump folder exists before capturing dump (#1216)
44
- Ensure `config show` command completely writes end of configuration (#1112)
5-
- Allow command line parameters to be overriden by file-based configuration (#1102)
6-
- Allow command line parameters to be overriden by environment variables (#1398)
5+
- Allow command line parameters to be overridden by file-based configuration (#1102)
6+
- Allow command line parameters to be overridden by environment variables (#1398)
77
- Fix `generatekey` command `output` parameter description (#1119)

Diff for: dotnet-monitor.yml

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ pr:
1414
- .github
1515
- .vscode
1616
- .gitignore
17+
- cspell.json
1718
- eng/actions
1819
- '**.md'
1920

0 commit comments

Comments
 (0)