Skip to content

Commit fb28c2f

Browse files
authored
Merge pull request #946 from nobu/rubocop-task
Rubocop task
2 parents 5d2c47e + 4058cdc commit fb28c2f

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.github/workflows/test.yml

+2
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,6 @@ jobs:
2828
run: bundle exec rake
2929
env:
3030
RUBYOPT: --enable-frozen_string_literal
31+
- if: ${{ matrix.ruby == 'head' && startsWith(matrix.os, 'ubuntu') }}
32+
run: bundle exec rake rubocop
3133

Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ group :development do
77
gem 'racc', '> 1.4.10'
88
gem 'kpeg', github: 'evanphx/kpeg'
99
gem 'test-unit'
10-
gem 'rubocop'
10+
gem 'rubocop', '>= 1.31.0'
1111
gem 'gettext'
1212
end

Rakefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,5 +105,5 @@ else
105105
RuboCop::RakeTask.new(:rubocop) do |t|
106106
t.options = [*parsed_files]
107107
end
108-
task :build => [:generate, "rubocop:auto_correct"]
108+
task :build => [:generate, "rubocop:autocorrect"]
109109
end

0 commit comments

Comments
 (0)