-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSteepfile
46 lines (41 loc) · 1.57 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# frozen_string_literal: true
# D = Steep::Diagnostic
#
# target :lib do
# signature "sig"
# ignore_signature "sig/test"
#
# check "lib" # Directory name
# check "path/to/source.rb" # File name
# check "app/models/**/*.rb" # Glob
# # ignore "lib/templates/*.rb"
#
# # library "pathname" # Standard libraries
# # library "strong_json" # Gems
#
# # 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
# end
# target :test do
# unreferenced! # Skip type checking the `lib` code when types in `test` target is changed
# signature "sig/test" # Put RBS files for tests under `sig/test`
# check "test" # Type check Ruby scripts under `test`
#
# configure_code_diagnostics(D::Ruby.lenient) # Weak type checking for test code
#
# # library "pathname" # Standard libraries
# end
target :lib do
signature 'sig'
check 'lib'
library 'forwardable'
library 'strscan'
configure_code_diagnostics do |hash|
hash[Steep::Diagnostic::Ruby::UnannotatedEmptyCollection] = :information
end
end