-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
31 lines (23 loc) · 674 Bytes
/
Rakefile
File metadata and controls
31 lines (23 loc) · 674 Bytes
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
# rbs_inline: enabled
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
require 'rubocop/rake_task'
# Use RBS Inline configuration for Ruby 3.3+
rubocop_config = if RUBY_VERSION >= '3.3.0'
'.rubocop_rbs.yml'
else
'.rubocop.yml'
end
RuboCop::RakeTask.new do |task|
task.options = ['--config', rubocop_config]
end
# Steep is only available for Ruby 3.3+
default_tasks = %i[spec rubocop]
if RUBY_VERSION >= '3.3.0'
require 'steep/rake_task'
Steep::RakeTask.new
default_tasks << :steep
end
task default: default_tasks