blob: 4560af88d5c44016484ce64ee32795ac08c7dc07 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# frozen_string_literal: true
begin
require 'rubocop/rake_task'
RuboCop::RakeTask.new :lint do |t|
#t.patterns = %w(lib/**/*.rb Rakefile Gemfile tasks/*.rake)
t.patterns = %w(lib/**/*.rb test/*.rb features/*.rb Rakefile Gemfile tasks/*.rake)
end
rescue LoadError => e
task :lint do
raise 'Failed to load lint task.
Install required gems using: bundle --path=.bundle/gems
Then, invoke Rake using: bundle exec rake', cause: e
end
end
|