Skip to content

Commit d347584

Browse files
authored
Merge pull request voxpupuli#131 from bastelfreak/rubo
Rakefile: Use rubocop tasks from voxpupuli-rubocop
2 parents 3937bb1 + a4574ba commit d347584

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

Rakefile

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,9 @@
33
require 'rspec/core/rake_task'
44

55
begin
6-
require 'rubocop/rake_task'
6+
require 'voxpupuli/rubocop/rake'
77
rescue LoadError
8-
# RuboCop is an optional group
9-
else
10-
RuboCop::RakeTask.new(:rubocop) do |task|
11-
# These make the rubocop experience maybe slightly less terrible
12-
task.options = ['--display-cop-names', '--display-style-guide', '--extra-details']
13-
# Use Rubocop's Github Actions formatter if possible
14-
task.formatters << 'github' if ENV['GITHUB_ACTIONS'] == 'true'
15-
end
8+
# the voxpupuli-rubocop gem is optional
169
end
1710

1811
namespace :test do

0 commit comments

Comments
 (0)