Skip to content

Commit

Permalink
Merge pull request #1882 from bastelfreak/vp
Browse files Browse the repository at this point in the history
rubocop: Use rake task from voxpupuli-rubocop
  • Loading branch information
bastelfreak authored May 15, 2024
2 parents 193e04f + 62c561b commit dbe14d5
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -197,15 +197,7 @@ rescue LoadError
end

begin
require 'rubocop/rake_task'
require 'voxpupuli/rubocop/rake'
rescue LoadError
# RuboCop is an optional group
else
RuboCop::RakeTask.new(:rubocop) do |task|
# These make the rubocop experience maybe slightly less terrible
task.options = ['--display-cop-names', '--display-style-guide', '--extra-details']

# Use Rubocop's Github Actions formatter if possible
task.formatters << 'github' if ENV['GITHUB_ACTIONS'] == 'true'
end
# the voxpupuli-rubocop gem is optional
end

0 comments on commit dbe14d5

Please sign in to comment.