-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
104 lines (102 loc) · 2.57 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
95
96
97
98
99
100
101
102
103
104
require:
- rubocop-rails
- rubocop-rspec
AllCops:
TargetRubyVersion: 3.0
NewCops: enable
Exclude:
- 'config/initializers/**'
- 'node_modules/**/*'
- 'bin/**/*'
- 'db/schema.rb'
- 'db/migrate/*'
- 'lib/templates/rails/scaffold_controller/**'
Style/Documentation:
Enabled: false
Bundler/OrderedGems:
Enabled: false
Style/EmptyMethod:
Enabled: false
Metrics/BlockLength:
Enabled: false
Layout/LineLength:
Max: 185
Metrics/MethodLength:
Max: 20
Style/NumericPredicate:
Enabled: false
Style/ClassAndModuleChildren:
Enabled: false
Rails/LexicallyScopedActionFilter:
Enabled: false
Metrics/CyclomaticComplexity:
Max: 10
RSpec/StubbedMock:
Enabled: false
Metrics/ModuleLength:
Exclude:
- 'app/controllers/concerns/telegram/preorder.rb'
Metrics/ClassLength:
Exclude:
- 'app/controllers/telegram_webhook_controller.rb'
Metrics/AbcSize:
Max: 21
Exclude:
- 'app/controllers/telegram_webhook_controller.rb'
- 'app/controllers/concerns/telegram/admin_commands.rb'
- 'app/services/products/xlsx_uploader.rb'
- 'app/controllers/statistic/orders_controller.rb'
Naming/AccessorMethodName:
Exclude:
- 'app/controllers/concerns/telegram/admin_commands.rb'
- 'app/controllers/concerns/telegram/preorder.rb'
Layout/ArgumentAlignment:
Enabled: false
Layout/HashAlignment:
EnforcedLastArgumentHashStyle: ignore_implicit
Layout/MultilineMethodCallIndentation:
Enabled: false
Layout/FirstHashElementIndentation:
Exclude:
- 'app/controllers/concerns/telegram/admin_commands.rb'
Style/FrozenStringLiteralComment:
EnforcedStyle: never
Rails/SkipsModelValidations:
Exclude:
- 'app/services/telegram_bot/contact_shared_handler.rb'
RSpec/ImplicitBlockExpectation:
Enabled: false
RSpec/ImplicitSubject:
Enabled: false
RSpec/MultipleExpectations:
Enabled: false
RSpec/MessageSpies:
Enabled: false
RSpec/ContextWording:
Enabled: false
RSpec/NestedGroups:
Enabled: false
RSpec/EmptyExampleGroup:
Enabled: false
RSpec/MultipleMemoizedHelpers:
Enabled: false
RSpec/MessageChain:
Enabled: false
Rails/OutputSafety:
Enabled: false
RSpec/ExampleLength:
Enabled: false
RSpec/AnyInstance:
Enabled: false
RSpec/VerifiedDoubles:
Enabled: false
Naming/InclusiveLanguage:
Enabled: false
RSpec/FilePath:
Exclude:
- 'spec/controllers/concerns/telegram/third_party_apis_commands_spec.rb'
- 'spec/controllers/concerns/telegram/admin_commands_spec.rb'
RSpec/DescribeMethod:
Exclude:
- 'spec/controllers/concerns/telegram/third_party_apis_commands_spec.rb'
- 'spec/controllers/concerns/telegram/admin_commands_spec.rb'