Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect typos in Markdown documents (2nd attempt) #9347

Merged
merged 2 commits into from
Sep 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
982 changes: 982 additions & 0 deletions .github/.wordlist.txt

Large diffs are not rendered by default.

39 changes: 39 additions & 0 deletions .github/workflows/spell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Copyright (c) 2020-2021 Project CHIP Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: Run misspell

on:
push:
paths:
- '**.md'
- '!.github/*'
pull_request:
paths:
- '**.md'
- '!.github/*'

jobs:
check-reviewdog:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: reviewdog/action-misspell@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
check-spellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: igsekor/pyspelling-any@v0.0.2
25 changes: 25 additions & 0 deletions .spellcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright (c) 2020-2021 Project CHIP Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

matrix:
- name: markdown
dictionary:
wordlists:
- .github/.wordlist.txt
pipeline:
- pyspelling.filters.markdown:
sources:
- '**/*.md|!third_party/**|!examples/common/**/repo/**'
aspell:
ignore-case: true
2 changes: 1 addition & 1 deletion docs/VSCODE_DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ session.

Developers are encouraged to add tasks to the
[launch json](../.vscode/launch.json) over time to make sure everyone is using
the same base debuging setup.
the same base debugging setup.

## Submitting a Pull Request - Practical Advice

Expand Down
2 changes: 1 addition & 1 deletion docs/discussion/lwip_ipv6.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ Instead, it might be better to build this into the ICMP layer itself.

## DNS

LwIPs DNS handling isn’t great and breaks down when the router supports
LwIP's DNS handling isn’t great and breaks down when the router supports
IPv4/IPv6. There is a single list of DNS servers, DHCP, SLAAC and DHCPv6 all
update the list without locks. Basically, whatever wrote to the list last gets
to set the list. Although there is handling for IP type (requesting A or AAAA
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/nrfconnect_examples_configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ them default values for any application.

The application configuration is specified using Kconfig configuration files
(`*.conf`), where available Kconfig options can be used and their default values
overrided. Typically, there are many files having impact on the final
overridden. Typically, there are many files having impact on the final
configuration shape.

There is no need to modify all these files separately. See the following list
Expand Down
4 changes: 2 additions & 2 deletions docs/guides/nxp_k32w_android_commissioning.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ onto a CHIP-enabled Thread network.

The commissioning process is composed of the following main stages:

- K32W061 (CHIP accessory) device is put in BLE advertisment mode by pressing
- K32W061 (CHIP accessory) device is put in BLE advertisement mode by pressing
the USERINTERFACE button;
- CHIPTool discovers the CHIP accessory over BLE;
- CHIPTool establishes a secure channel with the accessory using a SPAKE2+
Expand Down Expand Up @@ -182,7 +182,7 @@ To make your PC work as a Thread Border Router, complete the following tasks:

- On System startup, dnsmasq will not wait for wlan0 interface to
initialize and will fail. We need to tell systemd to launch it after
networks get ready, so we will modify dnsmasq service file by specifing
networks get ready, so we will modify dnsmasq service file by specifying
the initialization order under the _After=_ and _Wants=_ sections:

$ sudo vim /lib/systemd/system/dnsmasq.service
Expand Down
4 changes: 2 additions & 2 deletions docs/guides/python_chip_controller_advanced_usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ Reading symbols from python3...
```

The Python will create lots of threads due to main loop, so you may want to
supress thread related outputs first by running the following command:
suppress thread related outputs first by running the following command:

```
(gdb) set print thread-events off
Expand Down Expand Up @@ -247,4 +247,4 @@ then you can use `bt` (for `backtrace`) to see the backtrace of the call stack.
```

The frame #0 and frame #1 are the function frames in the CHIP C++ library, the
other frames live in the Python intepreter so you can ignore it.
other frames live in the Python interpreter so you can ignore it.
8 changes: 4 additions & 4 deletions docs/guides/python_chip_controller_building.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ with network credentials.
Done
```

Matter specifiction does not define how the Thread or Wi-Fi credentials are
Matter specification does not define how the Thread or Wi-Fi credentials are
obtained by Controller. For example, for Thread, instead of fetching
datasets directly from the Thread Border Router, you might also use a
different out-of-band method.
Expand All @@ -248,7 +248,7 @@ with network credentials.
#### Commissioning a Wi-Fi device

1. Assuming your Wi-Fi SSID is _TESTSSID_, and your Wi-Fi password is
_P455W4RD_, inject the credentials to the device by excuting the following
_P455W4RD_, inject the credentials to the device by executing the following
command:

```
Expand Down Expand Up @@ -396,7 +396,7 @@ If no nodeid given, a random Node ID will be used.

### `close-session <nodeid>`

If case there eixsts an open session (PASE or CASE) to the device with a given
If case there exists an open session (PASE or CASE) to the device with a given
Node ID, mark it as expired.

### `discover`
Expand Down Expand Up @@ -470,7 +470,7 @@ chip-device-ctrl > zcl LevelControl MoveWithOnOff 12344321 1 0 moveMode=1 rate=2
For any integer and char string (null terminated) types, just use `key=value`,
for example: `rate=2`, `string=123`, `string_2="123 456"`

For byte string type, use `key=encoding:value`, currectly, we support `str` and
For byte string type, use `key=encoding:value`, currently, we support `str` and
`hex` encoding, the `str` encoding will encode a NULL terminated string. For
example, `networkId=hex:0123456789abcdef` (for
`[0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef]`), `ssid=str:Test` (for
Expand Down
2 changes: 1 addition & 1 deletion examples/all-clusters-app/esp32/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ commissioning and cluster control.

`chip-device-ctrl > zcl LevelControl MoveToLevel 135246 1 1 level=10 transitionTime=0 optionMask=0 optionOverride=0`

- For ESP32C3-DevKitM, use the ColorContorl cluster commands to control the
- For ESP32C3-DevKitM, use the ColorControl cluster commands to control the
CurrentHue and CurrentSaturation attribute. This allows you to control the
color of on-board LED.

Expand Down
2 changes: 1 addition & 1 deletion examples/chip-tool/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ where:

- ssid is the Wi-Fi SSID either as a string, or in the form hex:XXXXXXXX where
the bytes of the SSID are encoded as two-digit hex numbers.
- paswword is the Wi-Fi password, again either as a string or as hex data
- password is the Wi-Fi password, again either as a string or as hex data
- The 0 is the fabric id, until more complete support for multiple fabrics is
implemented in our commissioning process.

Expand Down
4 changes: 2 additions & 2 deletions examples/lighting-app/efr32/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ combination with JLinkRTTClient as follows:

- _Press and Release_ : Start, or restart, BLE advertisement in fast mode. It will advertise in this mode
for 30 seconds. The device will then switch to a slower interval advertisement.
After 15 minutes, the adverstiment stops.
After 15 minutes, the advertisement stops.

- _Pressed and hold for 6 s_ : Initiates the factory reset of the device.
Releasing the button within the 6-second window cancels the factory reset
Expand Down Expand Up @@ -280,7 +280,7 @@ via 2002::2
- To use the chip-rpc console after it has been installed run:
`python3 -m chip_rpc.console --device /dev/tty.<SERIALDEVICE> -b 115200 -o /<YourFolder>/pw_log.out`

- Then you can simulate a button press or realease using the following command
- Then you can simulate a button press or release using the following command
where : idx = 0 or 1 for Button PB0 or PB1 action = 0 for PRESSED, 1 for
RELEASE Test toggling the LED with
`rpcs.chip.rpc.Button.Event(idx=1, pushed=True)`
Expand Down
2 changes: 1 addition & 1 deletion examples/lighting-app/nxp/linux-imx/imx8m/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ The generated executable file supports to work with below commandline argument:
- Prerequisites

By following the [Building](#building) section of this document, the Yocto
image is cross-compiled and programed to a microSD card.
image is cross-compiled and programmed to a microSD card.

Follow the steps below to setup the environment needed to run the example on
the i.MX 8M Mini EVK:
Expand Down
20 changes: 10 additions & 10 deletions examples/lighting-app/telink/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
```

here `${CHIP_BASE}` is directory which contains CHIP repo files **!!!Pay
attention that OUTPUT_DIR should conatins ABSOLUTE path to output dir**
attention that OUTPUT_DIR should contains ABSOLUTE path to output dir**

1. Run build script:
```
Expand Down Expand Up @@ -71,7 +71,7 @@ $ BORDER_ROUTING=0 NETWORK_MANAGER=1 ./script/setup

### Setup IPv6

Pay attention that border router shoud be configured as IPv6 access point.
Pay attention that border router should be configured as IPv6 access point.

1. To do so perform the following command:
```
Expand All @@ -86,7 +86,7 @@ Pay attention that border router shoud be configured as IPv6 access point.
### Config network

Use [Web GUI](https://openthread.io/guides/border-router/web-gui) to config
Thread network **tlsr9518adk80d** board supports only static comissioning with
Thread network **tlsr9518adk80d** board supports only static commissioning with
predefined Thread credentials shown in table below:

| Item | Value |
Expand Down Expand Up @@ -115,11 +115,11 @@ To get output from device, connect UART to following pins:

The following buttons are available on **tlsr9518adk80d** board:

| Name | Function | Description |
| :------- | :--------------- | :---------------------------------------------------------------------------------------------------- |
| Button 1 | Factory reset | Perform factory reset to forget currently commissioned Thread network and back to uncommisioned state |
| Button 2 | Lighting control | Manually triggers the lighting state |
| Button 3 | Thread start | Comission thread with static credentials and enables the Thread on device |
| Name | Function | Description |
| :------- | :--------------- | :----------------------------------------------------------------------------------------------------- |
| Button 1 | Factory reset | Perform factory reset to forget currently commissioned Thread network and back to uncommissioned state |
| Button 2 | Lighting control | Manually triggers the lighting state |
| Button 3 | Thread start | Commission thread with static credentials and enables the Thread on device |

### LEDs

Expand All @@ -128,7 +128,7 @@ following states:

| State | Description |
| :-------------------------- | :--------------------------------------------------------------------------- |
| Blinks with short pulses | Device is not commisioned to Thread, Thred is disabled |
| Blinks with short pulses | Device is not commissioned to Thread, Thread is disabled |
| Blinls with frequent pulses | Device is commissioned, Thread enabled. Device trying to JOIN thread network |
| Blinks with whde pulses | Device commissioned and joined to thread network as CHILD |

Expand All @@ -139,7 +139,7 @@ following states:
1. With your client device (PC, Laptop etc.) connect to BorderRouterAP WiFi
2. Press Button 3 on **tlsr9518adk80d** board and wait till it joins to Thread
network
3. Find ajusted IPv6 address in UART output of **tlsr9518adk80d**
3. Find adjusted IPv6 address in UART output of **tlsr9518adk80d**
4. Perform following command on your client device:
```
ping -6 ${IP_ADDRESS_OF_CHIP_DEVICE}
Expand Down
2 changes: 1 addition & 1 deletion examples/lock-app/cc13x2x7_26x2x7/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ fully provisioned, BLE advertising will stop.

#### Bluetooth LE Rendezvous

To commission and control this application wtihin a CHIP-eanbled Thread network,
To commission and control this application within a CHIP-enabled Thread network,
consult the [CHIPTool README](../../../src/android/CHIPTool/README.md) for
information on the Android smartphone application. Reference the Device
Configuration information printed in the Logging Output of this application.
Expand Down
2 changes: 1 addition & 1 deletion examples/lock-app/efr32/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ combination with JLinkRTTClient as follows:

- _Press and Release_ : Start, or restart, BLE advertisement in fast mode. It will advertise in this mode
for 30 seconds. The device will then switch to a slower interval advertisement.
After 15 minutes, the adverstiment stops.
After 15 minutes, the advertisement stops.

- _Pressed and hold for 6 s_ : Initiates the factory reset of the device.
Releasing the button within the 6-second window cancels the factory reset
Expand Down
2 changes: 1 addition & 1 deletion examples/lock-app/k32w/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ below:
![POWER_VIEW](../../platform/k32w/doc/images/power_view.JPG)

Please note that that the Power Measurement Tool is not very accurate and
professional tools must be used if exact power consumption needs to be kwnown.
professional tools must be used if exact power consumption needs to be known.

## Known issues

Expand Down
26 changes: 13 additions & 13 deletions examples/minimal-mdns/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ discovery.

### Advertising to test client listings

#### Simulated uncommisioned node
#### Simulated uncommissioned node

```sh
dns-sd -R DD200C20D25AE5F7 _matterc._udp,S52,L840,V123 . 11111 D=840 VP=123+456
Expand All @@ -99,11 +99,11 @@ S52._sub._matterc._udp.local. PTR DD200C20D25AE5F7._matterc._udp.loca
L840._sub._matterc._udp.local. PTR DD200C20D25AE5F7._matterc._udp.local.
V123._sub._matterc._udp.local. PTR DD200C20D25AE5F7._matterc._udp.local.
DD200C20D25AE5F7._matterc._udp.local. TXT "D=840" "VP=123+456"
DD200C20D25AE5F7._mattterc._udp.local. SRV 0 0 11111 B75AFB458ECD.local.
DD200C20D25AE5F7._matterc._udp.local. SRV 0 0 11111 B75AFB458ECD.local.
B75AFB458ECD.local. AAAA ba2a:b311:742e:b44c:f515:576f:9783:3f30
```

#### Simulated commisioning node
#### Simulated commissioning node

```sh
dns-sd -R DD200C20D25AE5F7 _matterd._udp,S52,L840,V123 . 11111 D=840 VP=123+456 PH=3
Expand All @@ -121,7 +121,7 @@ DD200C20D25AE5F7._matterd._udp.local. SRV 0 0 11111 B75AFB458ECD.local.
B75AFB458ECD.local. AAAA ba2a:b311:742e:b44c:f515:576f:9783:3f30
```

#### Simulated commisioned node
#### Simulated commissioned node

```sh
dns-sd -R 2906C908D115D362-8FC7772401CD0696 _matter._tcp . 22222
Expand All @@ -132,15 +132,15 @@ dns-sd -R 2906C908D115D362-8FC7772401CD0696 _matter._tcp . 22222
Nodes:

```sh
dns-sd -B _matterc._udp # Nodes awaiting commisioning
dns-sd -B _matterc._udp,S52 # Nodes awaiting commisioning with short discriminator 52
dns-sd -B _matterc._udp,L840 # Nodes awaiting commisioning with long discriminator 840
dns-sd -B _matterc._udp,V123 # Nodes awaiting commisioning with vendor id 123

dns-sd -B _matterd._udp # Commisionable nodes
dns-sd -B _matterd._udp,S52 # Commisionable nodes with short discriminator 52
dns-sd -B _matterd._udp,L840 # Commisionable nodes with long discriminator 840
dns-sd -B _matterd._udp,V123 # Commisionable nodes with vendor id 123
dns-sd -B _matterc._udp # Nodes awaiting commissioning
dns-sd -B _matterc._udp,S52 # Nodes awaiting commissioning with short discriminator 52
dns-sd -B _matterc._udp,L840 # Nodes awaiting commissioning with long discriminator 840
dns-sd -B _matterc._udp,V123 # Nodes awaiting commissioning with vendor id 123

dns-sd -B _matterd._udp # Commissionable nodes
dns-sd -B _matterd._udp,S52 # Commissionable nodes with short discriminator 52
dns-sd -B _matterd._udp,L840 # Commissionable nodes with long discriminator 840
dns-sd -B _matterd._udp,V123 # Commissionable nodes with vendor id 123
```

IP Address:
Expand Down
2 changes: 1 addition & 1 deletion examples/persistent-storage/efr32/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ platforms.
## EFR32

The EFR32 platform KVS is fully implemented, the KVS is enabled and configured
using theese defines:
using these defines:

```
defines = [
Expand Down
2 changes: 1 addition & 1 deletion examples/pump-app/cc13x2x7_26x2x7/doc/programming-ccs.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ file) in the `Load Program` dialog. Click `OK` to begin loading the target.

![CCS step 9](images/ccs-12.jpg)

- After loacating the source file for `main.cpp` we can step through the code
- After locating the source file for `main.cpp` we can step through the code
as it executes.

![CCS step 9](images/ccs-13.jpg)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ file) in the `Load Program` dialog. Click `OK` to begin loading the target.

![CCS step 9](images/ccs-12.jpg)

- After loacating the source file for `main.cpp` we can step through the code
- After locating the source file for `main.cpp` we can step through the code
as it executes.

![CCS step 9](images/ccs-13.jpg)
Expand Down
2 changes: 1 addition & 1 deletion examples/tv-casting-app/linux/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This is a CHIP TV Casting app that can be used to cast content to a TV. This app
discovers TVs on the local network that act as commissioners, lets the user
select one, sends the TV a User Directed Commissioning request, enters
commisioning mode, advertises itself as a Commissionable Node and gets
commissioning mode, advertises itself as a Commissionable Node and gets
commissioned. Then it allows the user to send CHIP ContentLauncher commands to
the TV.

Expand Down
Loading