-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathRakefile
31 lines (23 loc) · 884 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# frozen_string_literal: true
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'rubocop/rake_task'
require 'rubycritic/rake_task'
RuboCop::RakeTask.new do |task|
task.requires << 'rubocop-rspec'
end
RubyCritic::RakeTask.new do |task|
# # Name of RubyCritic task. Defaults to :rubycritic.
# task.name = 'something_special'
# # Glob pattern to match source files. Defaults to FileList['.'].
task.paths = FileList['lib/**/*.rb']
# # You can pass all the options here in that are shown by "rubycritic -h" except for
# # "-p / --path" since that is set separately. Defaults to ''.
# task.options = '--mode-ci --format json'
# # task.options = '--no-browser'
# # Defaults to false
task.verbose = true
end
RSpec::Core::RakeTask.new(:spec)
# task default: %w[rubocop:auto_correct rubycritic spec]
task default: %w[rubocop:auto_correct spec]