Skip to content

Commit

Permalink
Merge pull request #946 from nobu/rubocop-task
Browse files Browse the repository at this point in the history
Rubocop task
  • Loading branch information
nobu authored Nov 28, 2022
2 parents 5d2c47e + 4058cdc commit fb28c2f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,6 @@ jobs:
run: bundle exec rake
env:
RUBYOPT: --enable-frozen_string_literal
- if: ${{ matrix.ruby == 'head' && startsWith(matrix.os, 'ubuntu') }}
run: bundle exec rake rubocop

2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ group :development do
gem 'racc', '> 1.4.10'
gem 'kpeg', github: 'evanphx/kpeg'
gem 'test-unit'
gem 'rubocop'
gem 'rubocop', '>= 1.31.0'
gem 'gettext'
end
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -105,5 +105,5 @@ else
RuboCop::RakeTask.new(:rubocop) do |t|
t.options = [*parsed_files]
end
task :build => [:generate, "rubocop:auto_correct"]
task :build => [:generate, "rubocop:autocorrect"]
end

0 comments on commit fb28c2f

Please sign in to comment.