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]