-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.rubocop.yml
109 lines (83 loc) · 1.78 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
AllCops:
TargetRailsVersion: 7.1
TargetRubyVersion: 3.2
Exclude:
- 'bin/**/*'
- 'db/schema.rb'
- 'config/initializers/secret_token.rb'
- 'config/initializers/simple_form.rb'
- 'config/initializers/simple_form_bootstrap.rb'
- 'node_modules/**/*'
- 'vendor/**/*'
- '.pryrc'
DisplayCopNames: true
DisplayStyleGuide: true.
NewCops: enable
Rails/UnknownEnv:
Environments:
- production
- luxproduction
- development
- test
- staging
Rails/FilePath:
EnforcedStyle: arguments
Metrics/BlockLength:
Exclude:
- '**/Guardfile'
- '**/*.rake'
- 'config/environments/*'
- 'config/routes.rb'
- 'spec/**/*'
Layout/LineLength:
Max: 140
Metrics/MethodLength:
Exclude:
- 'db/migrate/*'
Rails/HttpPositionalArguments:
Enabled: false
Rails/I18nLocaleTexts:
Enabled: false
Rails/ReversibleMigration:
Enabled: false
Style/ClassAndModuleChildren:
Exclude:
- 'app/controllers/v1/**/*'
Style/Documentation:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false
# Enable cops that are disabled by default, but are useful nonetheless
# See https://github.com/bbatsov/rubocop/blob/master/config/disabled.yml
Rails:
Enabled: true
RSpec/LeadingSubject:
Enabled: false
RSpec/NestedGroups:
Max: 4
RSpec/MultipleExpectations:
Max: 5
RSpec/MultipleMemoizedHelpers:
Enabled: False
Style/AutoResourceCleanup:
Enabled: true
Style/MethodCalledOnDoEndBlock:
Enabled: true
Exclude:
- 'spec/**/*'
Style/OptionHash:
Enabled: true
Style/Send:
Enabled: true
Style/StringMethods:
Enabled: true
Naming/MemoizedInstanceVariableName:
Enabled: false
RSpec/FilePath:
Enabled: false
Rails/BulkChangeTable:
Enabled: false