-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.rubocop.yml
More file actions
55 lines (43 loc) · 983 Bytes
/
.rubocop.yml
File metadata and controls
55 lines (43 loc) · 983 Bytes
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
# Omakase Ruby styling for Rails
inherit_gem: { rubocop-rails-omakase: rubocop.yml }
# Overwrite or add rules to create your own house style
#
# # Use `[a, [b, c]]` not `[ a, [ b, c ] ]`
# Layout/SpaceInsideArrayLiteralBrackets:
# Enabled: false
plugins:
- rubocop-rails
- rubocop-performance
AllCops:
NewCops: enable
TargetRubyVersion: 3.2
Exclude:
- 'db/**/*'
- 'config/**/*'
- 'script/**/*'
- 'bin/**/*'
- 'vendor/**/*'
- 'node_modules/**/*'
- 'tmp/**/*'
Layout/LineLength:
Max: 120
Metrics/BlockLength:
Exclude:
- 'spec/**/*'
- 'config/routes.rb'
- 'config/environments/*.rb'
Style/Documentation:
Enabled: false
Rails:
Enabled: true
Layout/TrailingWhitespace:
Enabled: false
Layout/SpaceInsideArrayLiteralBrackets:
Enabled: false
Rails/SkipsModelValidations:
Enabled: false
Rails/ActionControllerFlashBeforeRender:
Enabled: false
Style/StringLiterals:
Enabled: true
EnforcedStyle: single_quotes