-
Notifications
You must be signed in to change notification settings - Fork 1
/
.rubocop.yml
109 lines (80 loc) · 1.7 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
105
106
107
108
109
require:
- rubocop-rails
- rubocop-rspec
- rubocop-performance
- rubocop-factory_bot
AllCops:
TargetRubyVersion: 3.2
NewCops: enable
Exclude:
- 'db/schema.rb'
- 'bin/**/*'
- '.pryrc'
- 'vendor/bundle/**/*'
Rails:
Enabled: true
Layout/LineLength:
Max: 120
Style/AsciiComments:
Enabled: false
Layout/SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space
Style/Documentation:
Enabled: false
Layout/DotPosition:
EnforcedStyle: trailing
Style/EmptyMethod:
EnforcedStyle: expanded
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented
Style/LambdaCall:
Exclude:
- app/views/**/*.jbuilder
Metrics/BlockLength:
Exclude:
- spec/**/*
- config/**/*
- lib/tasks/**/*.rake
Metrics/AbcSize:
Exclude:
- spec/support/**/*
- db/migrate/**
Rails/SkipsModelValidations:
Enabled: false
RSpec/MultipleExpectations:
Enabled: false
RSpec/MessageSpies:
Enabled: false
RSpec/ContextWording:
Enabled: false
RSpec/ExampleLength:
Enabled: false
RSpec/NestedGroups:
Max: 4
RSpec/MultipleMemoizedHelpers:
Enabled: false
Metrics/MethodLength:
Exclude:
- db/migrate/**
Rails/NotNullColumn:
Enabled: false
Style/ParallelAssignment:
Enabled: false
Style/HashSyntax:
Exclude:
- scripts/upload_video.rb
RSpec/ChangeByZero:
Enabled: false
Style/RedundantStringEscape:
Enabled: false
Rails/DeprecatedActiveModelErrorsMethods:
Exclude:
- spec/services/yandex/revise_other_dir_service_spec.rb
- spec/services/yandex/revise_dir_service_spec.rb
FactoryBot/ConsistentParenthesesStyle:
Enabled: false
RSpec/PendingWithoutReason:
Exclude:
- spec/support/model_with_upload_workflow.rb
RSpec/IndexedLet:
Enabled: false