From dba2ad58c9b42c163108b47e3dd3d81e7e012a2f Mon Sep 17 00:00:00 2001 From: Kevin Dew Date: Fri, 23 Sep 2022 14:25:32 +0100 Subject: [PATCH] Simplify rubocop configuration We don't care about a clang formatting and can use Rubocop's default rake task. Motivation for change was routine TLC --- Rakefile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Rakefile b/Rakefile index 3fdeef5..5e9f59b 100644 --- a/Rakefile +++ b/Rakefile @@ -1,12 +1,10 @@ require "bundler/gem_tasks" require "rake/testtask" +require "rubocop/rake_task" -desc "Run RuboCop" -task :lint, :environment do - sh "bundle exec rubocop --format clang" -end +RuboCop::RakeTask.new -task default: %i[lint test] +task default: %i[rubocop test] Rake::TestTask.new do |t| t.libs << "test"