-
-
Notifications
You must be signed in to change notification settings - Fork 263
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1174 from koic/fix_error_for_rails_redundant_acti…
…ve_record_all_method [Fix #1173] Fix an error for `Rails/RedundantActiveRecordAllMethod` cop
- Loading branch information
Showing
3 changed files
with
64 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
oldest_supported_rubocop: | ||
runs-on: ubuntu-latest | ||
name: The oldest supported RuboCop version | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Use the oldest supported RuboCop | ||
run: | | ||
sed -e "/gem 'rubocop', github: 'rubocop\/rubocop'/d" \ | ||
-e "/gem 'rubocop-performance',/d" \ | ||
-e "/gem 'rubocop-rspec',/d" -i Gemfile | ||
cat << EOF > Gemfile.local | ||
gem 'rubocop', '1.33.0' # Specify the oldest supported RuboCop version | ||
EOF | ||
- name: set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.7 | ||
bundler-cache: true | ||
- name: spec | ||
run: bundle exec rake spec |
1 change: 1 addition & 0 deletions
1
changelog/fix_error_for_rails_redundant_active_record_all_method.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* [#1173](https://github.com/rubocop/rubocop-rails/issues/1173): Fix an error for `Rails/RedundantActiveRecordAllMethod` cop when used with RuboCop 1.51 or lower. ([@koic][]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters