-
Notifications
You must be signed in to change notification settings - Fork 1
/
.rubocop.yml
94 lines (78 loc) · 2.02 KB
/
.rubocop.yml
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
inherit_from: .rubocop_todo.yml
inherit_gem:
rubocop-shopify: rubocop.yml
AllCops:
NewCops: enable
Exclude:
- bin/*
- node_modules/**/*
- db/schema.rb
- test/dummy/db/schema.rb
SuggestExtensions: false
require:
- rubocop-rails
- rubocop-performance
- rubocop-sorbet
Rails/UnknownEnv:
Environments:
# without this, rubocop complains about references to the staging environment
- production
- development
- test
- staging
Sorbet:
Enabled: true
# All files in Atlas must have a valid sigil
#
# For example, `typed: false`, `typed: true` or `typed: strict`.
Sorbet/ValidSigil:
Enabled: true
Exclude:
- app/utils/sorbet.rb
- db/migrate/**/*.rb
# All files in Atlas must be at least at strictness `false`
Sorbet/FalseSigil:
Enabled: true
Include:
- "**/*.rb"
- "**/*.rbi"
- "**/*.rake"
- "**/*.ru"
Exclude:
- bin/**/*
- db/**/*.rb
- script/**/*
- lib/generators/atlas_engine/install_generator.rb
- db/migrate/**/*.rb
- test/dummy/db/migrate/**/*.rb
# Sorbet sigil must come first
Sorbet/EnforceSigilOrder:
Enabled: true
# Enforce the order of signature parts
#
# Fist the inheritance related builders, then params, then order and finally the
# modifier: `abstract.params(...).returns(...).soft`.
Sorbet/SignatureBuildOrder:
Enabled: true
# Enforce a compatible keyword arguments with Sorbet
#
# All keyword arguments are at the end of the parameters list, and all keyword
# arguments with a default value must be after those without default values.
Sorbet/KeywordArgumentOrdering:
Enabled: true
# Forbid constants through meta-programming
#
# Things like `constantize` or `const_get`.
Sorbet/ConstantsFromStrings:
Enabled: false
# Forbid include from non-literal constants
#
# Things like `include some_method`.
Sorbet/ForbidIncludeConstLiteral:
Enabled: false
# Disabling this cop until we are able to clean up violations
Sorbet/CallbackConditionalsBinding:
Enabled: false
# Forbit usages of T::Struct and T::Props
Sorbet/ForbidTStruct:
Enabled: true