-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathSteepfile
More file actions
34 lines (29 loc) · 969 Bytes
/
Steepfile
File metadata and controls
34 lines (29 loc) · 969 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
32
33
34
# frozen_string_literal: true
D = Steep::Diagnostic
common_diagnostics = {
# TODO(cretz): Needed because lack of proto RBS, waiting on https://github.com/protocolbuffers/protobuf/pull/15633
D::Ruby::UnknownConstant => :information,
# Steep >= 1.9 started becoming too noisy in these cases
D::Ruby::UnannotatedEmptyCollection => :information,
D::Ruby::UndeclaredMethodDefinition => :information
}
target :lib do
signature 'sig'
check 'lib'
ignore 'lib/temporalio/api', 'lib/temporalio/internal/bridge/api'
library 'uri', 'objspace'
configure_code_diagnostics do |hash|
hash.update(common_diagnostics)
end
end
target :test do
signature 'sig', 'test/sig'
check 'test'
ignore 'test/support'
library 'uri', 'objspace'
configure_code_diagnostics do |hash|
hash.update(common_diagnostics)
# Steep cannot infer some things, so we can ignore them in tests
hash[D::Ruby::InsufficientKeywordArguments] = :information
end
end