From d51a1db42c293ebd89b08aa54508cd692f1b8c65 Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Mon, 30 Jun 2025 09:38:27 -0700 Subject: [PATCH] Specify files explicity in rubocop rake task --- Rakefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 7e9ea69..2d83557 100644 --- a/Rakefile +++ b/Rakefile @@ -7,6 +7,8 @@ RSpec::Core::RakeTask.new(:spec) do |spec| spec.pattern = FileList['spec/**/*_spec.rb'] end -RuboCop::RakeTask.new(:rubocop) +RuboCop::RakeTask.new(:rubocop) do |t| + t.patterns = ['lib/**/*.rb', 'spec/**/*.rb', 'Rakefile', 'Gemfile', 'grape_logging.gemspec'] +end task default: %i[spec rubocop]