Skip to content

Commit

Permalink
Run Rubocop in GH Actions
Browse files Browse the repository at this point in the history
CodeClimate environment is restrictive, doesn't allow Rubocop plugins or recent Rubocop versions
  • Loading branch information
benlangfeld committed Jan 1, 2024
1 parent ccab7d2 commit 1679442
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
---
engines:
rubocop:
enabled: true
channel: rubocop-0-49
enabled: false
ratings:
paths:
- "**.rb"
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,4 @@ jobs:
run: sudo systemctl start mysql.service
- run: bin/setup
- run: bundle exec rake
- run: bundle exec rubocop --parallel
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ gem 'rspec', '~> 3.4', '>= 3.4.0'
gem 'rspec-its', '~> 1.2'

gem 'codeclimate-test-reporter', '~> 1.0.3', group: :test, require: nil
gem 'rubocop', '~> 1.56.3', require: false
gem 'rubocop', '~> 1.59', require: false
gem 'rubocop-performance'
gem 'rubocop-rake'
2 changes: 1 addition & 1 deletion lib/departure/cli_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module Departure
# given SQL statement
#
# --no-check-alter is used to allow running CHANGE COLUMN statements. For more details, check:
# www.percona.com/doc/percona-toolkit/2.2/pt-online-schema-change.html#cmdoption-pt-online-schema-change--[no]check-alter # rubocop:disable Metrics/LineLength
# www.percona.com/doc/percona-toolkit/2.2/pt-online-schema-change.html#cmdoption-pt-online-schema-change--[no]check-alter # rubocop:disable Layout/LineLength
#
class CliGenerator
COMMAND_NAME = 'pt-online-schema-change'.freeze
Expand Down

0 comments on commit 1679442

Please sign in to comment.