Skip to content

Commit 7579e81

Browse files
authored
Merge pull request #569 from koic/add_spell_checking_workflow
Add spell checking GitHub Actions workflow
2 parents 4740f3e + 622618d commit 7579e81

File tree

5 files changed

+37
-3
lines changed

5 files changed

+37
-3
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 of all files 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 of all files in commit 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: git ls-files --empty-directory | xargs ./misspell -i 'enviromnent' -error

codespell.txt

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

config/default.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ AllCops:
99
- bin/*
1010
- db/schema.rb
1111
# What version of Rails is the inspected code using? If a value is specified
12-
# for TargetRailsVersion then it is used. Acceptable values are specificed
12+
# for TargetRailsVersion then it is used. Acceptable values are specified
1313
# as a float (i.e. 5.1); the patch version of Rails should not be included.
1414
# If TargetRailsVersion is not set, RuboCop will parse the Gemfile.lock or
1515
# gems.locked file to find the version of Rails that has been bound to the

relnotes/v2.7.1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
### Changes
88

9-
* [#301](https://github.com/rubocop/rubocop-rails/issues/301): Set disalbed by default for `Rails/PluckId`. ([@koic][])
9+
* [#301](https://github.com/rubocop/rubocop-rails/issues/301): Set disabled by default for `Rails/PluckId`. ([@koic][])
1010

1111
[@taylorthurlow]: https://github.com/taylorthurlow
1212
[@tejasbubane]: https://github.com/tejasbubane

spec/rubocop/cop/rails/redundant_receiver_in_with_options_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Account < ApplicationRecord
2929
RUBY
3030
end
3131

32-
it 'does not register an offense when using inplicit receiver ' \
32+
it 'does not register an offense when using implicit receiver ' \
3333
'in `with_options`' do
3434
expect_no_offenses(<<~RUBY)
3535
class Account < ApplicationRecord

0 commit comments

Comments
 (0)