Specify files explicity in rubocop rake task

This commit is contained in:
Sami Samhuri 2025-06-30 09:38:27 -07:00
parent df63cfe0ce
commit d51a1db42c
No known key found for this signature in database

View file

@ -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]