/
Rakefile
47 lines (38 loc) · 885 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
42
43
44
45
46
47
# frozen_string_literal: true
%w[
bundler/gem_tasks
rake/testtask
rspec/core/rake_task
].each { |f| require f }
RSpec::Core::RakeTask.new(:spec)
desc "alias spec => test"
task test: :spec
begin
require "yard"
YARD::Rake::YardocTask.new do |t|
t.files = [
# Splats (alphabetical)
"config/*.yml",
"lib/**/*.rb",
"sig/**/*.rbs",
# Files (alphabetical)
"CHANGELOG.md",
"CODE_OF_CONDUCT.md",
"CONTRIBUTING.md",
"LICENSE.txt",
"README.md",
"rubocop-lts.yml",
"SECURITY.md"
]
t.options = ["-m", "markdown"] # optional
end
rescue LoadError
task :yard do
warn "NOTE: yard isn't installed, or is disabled for #{RUBY_VERSION} in the current environment"
end
end
defaults = %i[test]
require "rubocop/lts"
Rubocop::Lts.install_tasks
defaults << :rubocop_gradual
task default: defaults