-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
41 lines (31 loc) · 981 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
32
33
34
35
36
37
38
39
40
41
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'yaml'
################################
# Tests #
################################
RSpec::Core::RakeTask.new
task test: :spec
################################
# Rubocop #
################################
require 'rubocop/rake_task'
RuboCop::RakeTask.new(:rubocop) do |t|
t.options = ['--config', 'rubocop.yml']
end
################################
# Documentation #
################################
require 'yard'
YARD::Rake::YardocTask.new do |t|
t.stats_options = ['--list-undoc']
end
yardstick_options = YAML.load_file('yardstick.yml')
require 'yardstick/rake/measurement'
Yardstick::Rake::Measurement.new(:measurement, yardstick_options) do |measurement|
measurement.output = 'measurement/report.txt'
end
################################
# Defaults #
################################
task default: %i[spec rubocop]