-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
51 lines (40 loc) · 1002 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
48
49
50
51
# frozen_string_literal: true
require "bundler/setup"
APP_RAKEFILE = File.expand_path("spec/dummy/Rakefile", __dir__)
load "rails/tasks/engine.rake"
load "rails/tasks/statistics.rake"
require "bundler/gem_tasks"
require "rspec/core/rake_task"
require "rubocop/rake_task"
RSpec::Core::RakeTask.new(:spec)
RuboCop::RakeTask.new
# rubocop:disable Rails/RakeEnvironment
namespace :steep do
desc "Prepare for typecheck"
task :prepare do
sh "bundle exec rbs collection install --frozen"
end
desc "Run typecheck"
task :check do
sh "bundle exec steep check"
end
end
namespace :yard do
desc "Start YARD server"
task :server do
sh "bundle exec yard server --reload"
end
desc "Check YARD docs"
task :check do
sh "bundle exec yard --no-output --no-cache --fail-on-warning"
end
end
namespace :check do
desc "Run all checks"
task :all do
require "tasks/check_all"
CheckAll.call
end
end
# rubocop:enable Rails/RakeEnvironment
task default: "check:all"