forked from mastodon/mastodon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSteepfile
66 lines (59 loc) · 2 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# frozen_string_literal: true
# D = Steep::Diagnostic
#
# target :lib do
# signature "sig"
#
# check "lib" # Directory name
# check "Gemfile" # File name
# check "app/models/**/*.rb" # Glob
# # ignore "lib/templates/*.rb"
#
# # library "pathname", "set" # Standard libraries
# # library "strong_json" # Gems
#
# # configure_code_diagnostics(D::Ruby.strict) # `strict` diagnostics setting
# # configure_code_diagnostics(D::Ruby.lenient) # `lenient` diagnostics setting
# # configure_code_diagnostics do |hash| # You can setup everything yourself
# # hash[D::Ruby::NoMethod] = :information
# # end
# end
# target :test do
# signature "sig", "sig-private"
#
# check "test"
#
# # library "pathname", "set" # Standard libraries
# end
ignores = [
Steep::Diagnostic::Ruby::MethodDefinitionMissing,
Steep::Diagnostic::Ruby::UnknownConstant,
Steep::Diagnostic::Ruby::NoMethod,
Steep::Diagnostic::Ruby::UnexpectedBlockGiven,
Steep::Diagnostic::Ruby::IncompatibleAssignment,
Steep::Diagnostic::Ruby::UnknownInstanceVariable,
Steep::Diagnostic::Ruby::UnexpectedPositionalArgument,
Steep::Diagnostic::Ruby::UnresolvedOverloading,
Steep::Diagnostic::Ruby::InsufficientPositionalArguments,
Steep::Diagnostic::Ruby::UnknownGlobalVariable,
Steep::Diagnostic::Ruby::UnexpectedError,
Steep::Diagnostic::Ruby::MethodBodyTypeMismatch,
Steep::Diagnostic::Ruby::ArgumentTypeMismatch,
Steep::Diagnostic::Ruby::UnexpectedSuper,
Steep::Diagnostic::Ruby::UnexpectedYield,
Steep::Diagnostic::Ruby::BreakTypeMismatch,
Steep::Diagnostic::Ruby::RequiredBlockMissing,
Steep::Diagnostic::Ruby::ImplicitBreakValueMismatch,
Steep::Diagnostic::Ruby::UnexpectedKeywordArgument,
Steep::Diagnostic::Ruby::BlockTypeMismatch,
]
target :app do
check 'app'
signature 'sig'
library 'activesupport'
configure_code_diagnostics do |hash|
ignores.each do |ignore|
hash[ignore] = :information
end
end
end