From 2313973b9b94b86c28e22e9d45d6fefbae4ade58 Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Fri, 24 Jan 2025 12:42:52 +0100 Subject: [PATCH] Rake: Use RuboCop tasks from voxpupuli-rubocop --- Rakefile | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/Rakefile b/Rakefile index 0bd10b7..0aacec4 100644 --- a/Rakefile +++ b/Rakefile @@ -2,16 +2,9 @@ desc 'Run all tests' task test: %i[spec test:acceptance] 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