Skip to content

Commit

Permalink
Merge pull request #131 from bastelfreak/rubo
Browse files Browse the repository at this point in the history
Rakefile: Use rubocop tasks from voxpupuli-rubocop
  • Loading branch information
bastelfreak authored Mar 17, 2024
2 parents 3937bb1 + a4574ba commit d347584
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,9 @@
require 'rspec/core/rake_task'

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

namespace :test do
Expand Down

0 comments on commit d347584

Please sign in to comment.