-
Notifications
You must be signed in to change notification settings - Fork 0
/
Steepfile
27 lines (20 loc) · 940 Bytes
/
Steepfile
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
D = Steep::Diagnostic
target :lib do
signature "sig"
check "lib" # Directory name
configure_code_diagnostics(D::Ruby.default) # `default` diagnostics setting (applies by default)
# configure_code_diagnostics(D::Ruby.strict) # `strict` diagnostics setting
# configure_code_diagnostics(D::Ruby.lenient) # `lenient` diagnostics setting
# configure_code_diagnostics(D::Ruby.silent) # `silent` diagnostics setting
# configure_code_diagnostics do |hash| # You can setup everything yourself
# hash[D::Ruby::NoMethod] = :information
# end
# `rbs-src setup -o` generates `rbs_src.dep` file
if (dep_path = Pathname("rbs_src.dep")).file?
# Stop loading libraries through rbs-collection
disable_collection()
signature "sig/rbs-src/*/*.rbs"
signature "sig/rbs-src/*/[^_]*/**/*.rbs"
dep_path.readlines().each {|lib| library(lib.chomp) }
end
end