-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathSteepfile
More file actions
19 lines (16 loc) · 637 Bytes
/
Copy pathSteepfile
File metadata and controls
19 lines (16 loc) · 637 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Steepfile
target :lib do
signature "sig"
check "lib"
library "stringio"
# Configure diagnostic severity
# These errors are from Ruby code patterns that are runtime-safe but hard to express in RBS
configure_code_diagnostics do |hash|
# Suppress errors for method calls on potentially nil values
# The actual code handles nil cases properly at runtime
hash[Steep::Diagnostic::Ruby::NoMethod] = :hint
hash[Steep::Diagnostic::Ruby::ArgumentTypeMismatch] = :hint
hash[Steep::Diagnostic::Ruby::MethodBodyTypeMismatch] = :hint
hash[Steep::Diagnostic::Ruby::UnannotatedEmptyCollection] = :hint
end
end