Skip to content

Commit 9bfad53

Browse files
committed
Add spell checking GitHub Actions workflow
Follow up to rubocop/rubocop#10128. This PR adds spell checking GitHub Actions workflow.
1 parent 8feec0c commit 9bfad53

File tree

3 files changed

+35
-1
lines changed

3 files changed

+35
-1
lines changed

.github/workflows/spell_checking.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Spell Checking
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
codespell:
7+
name: Check spelling with codespell
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
python-version: [3.8]
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Set up Python ${{ matrix.python-version }}
15+
uses: actions/setup-python@v2
16+
with:
17+
python-version: ${{ matrix.python-version }}
18+
- name: Install dependencies
19+
run: |
20+
python -m pip install --upgrade pip
21+
pip install codespell
22+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
23+
- name: Check spelling with codespell
24+
run: codespell --ignore-words=codespell.txt || exit 1
25+
misspell:
26+
name: Check spelling with misspell
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v2
30+
- name: Install
31+
run: wget -O - -q https://git.io/misspell | sh -s -- -b .
32+
- name: Misspell
33+
run: ./misspell -error

README.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,7 @@ SQL
10101010
https://api.rubyonrails.org/classes/String.html#method-i-squish[`String#squish`] removes the indentation and newline characters so that your server log shows a fluid string of SQL rather than something like this:
10111011

10121012
----
1013-
SELECT\n users.id, accounts.plan\n FROM\n users\n INNER JOIN\n acounts\n ON\n accounts.user_id = users.id
1013+
SELECT\n users.id, accounts.plan\n FROM\n users\n INNER JOIN\n accounts\n ON\n accounts.user_id = users.id
10141014
----
10151015

10161016
=== `size` over `count` or `length` [[size-over-count-or-length]]

codespell.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
rouge

0 commit comments

Comments
 (0)