-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
44 lines (34 loc) · 902 Bytes
/
.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
require: rubocop-rails
AllCops:
NewCops: enable
SuggestExtensions: false
TargetRubyVersion: 3.1
Layout/LineLength:
Max: 120
Layout/SpaceInsideArrayLiteralBrackets:
Exclude:
- config/environments/production.rb # rails
Rails/I18nLocaleTexts:
Enabled: false
Style/Documentation:
Exclude:
- app/controllers/**/*.rb
- app/helpers/application_helper.rb
- app/models/application_record.rb
- config/application.rb
- db/migrate/**/*.rb
- test/**/*.rb
Style/FrozenStringLiteralComment:
Exclude:
- config/**/*.rb # rails config files skip this
Style/GlobalStdStream:
Exclude:
- config/environments/production.rb # rails
Style/HashSyntax:
EnforcedShorthandSyntax: either
Style/StringLiterals:
Exclude:
- config/**/*.rb # rails files use double quotes
Style/SymbolArray:
Exclude:
- config/initializers/filter_parameter_logging.rb # rails