Skip to content

Commit

Permalink
Merge pull request rubocop#569 from koic/add_spell_checking_workflow
Browse files Browse the repository at this point in the history
Add spell checking GitHub Actions workflow
  • Loading branch information
koic authored Oct 2, 2021
2 parents 4740f3e + 622618d commit 7579e81
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 3 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/spell_checking.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Spell Checking

on: [pull_request]

jobs:
codespell:
name: Check spelling of all files with codespell
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install codespell
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Check spelling with codespell
run: codespell --ignore-words=codespell.txt || exit 1
misspell:
name: Check spelling of all files in commit with misspell
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install
run: wget -O - -q https://git.io/misspell | sh -s -- -b .
- name: Misspell
run: git ls-files --empty-directory | xargs ./misspell -i 'enviromnent' -error
1 change: 1 addition & 0 deletions codespell.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
developpment
2 changes: 1 addition & 1 deletion config/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ AllCops:
- bin/*
- db/schema.rb
# What version of Rails is the inspected code using? If a value is specified
# for TargetRailsVersion then it is used. Acceptable values are specificed
# for TargetRailsVersion then it is used. Acceptable values are specified
# as a float (i.e. 5.1); the patch version of Rails should not be included.
# If TargetRailsVersion is not set, RuboCop will parse the Gemfile.lock or
# gems.locked file to find the version of Rails that has been bound to the
Expand Down
2 changes: 1 addition & 1 deletion relnotes/v2.7.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

### Changes

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

[@taylorthurlow]: https://github.com/taylorthurlow
[@tejasbubane]: https://github.com/tejasbubane
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Account < ApplicationRecord
RUBY
end

it 'does not register an offense when using inplicit receiver ' \
it 'does not register an offense when using implicit receiver ' \
'in `with_options`' do
expect_no_offenses(<<~RUBY)
class Account < ApplicationRecord
Expand Down

0 comments on commit 7579e81

Please sign in to comment.