-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.rubocop.yml
More file actions
82 lines (67 loc) · 1.97 KB
/
Copy path.rubocop.yml
File metadata and controls
82 lines (67 loc) · 1.97 KB
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
inherit_from:
- ./config/.rails-rubocop.yml
# Rails configuration overrides
Layout/ClosingParenthesisIndentation: # Results in some weirdness so disable it
Enabled: false
Lint/RedundantSafeNavigation: # False positives / no safe auto-corrections so disable it
Enabled: false
Performance/MapCompact: # May report false positives
Enabled: false
Performance/OpenStruct: # May report false positives
Enabled: false
Performance/RedundantMerge: # May report false positives
Enabled: false
Style/ArrayIntersect: # May report false positives
Enabled: false
# End Rails configuration overrides
# Configure empty lines between method definitions
Layout/EmptyLineBetweenDefs:
Enabled: true
NumberOfEmptyLines: 1
EmptyLineBetweenMethodDefs: true
EmptyLineBetweenClassDefs: true
EmptyLineBetweenModuleDefs: true
AllowAdjacentOneLineDefs: true
# DefLikeMacros: []
plugins:
- rubocop-rails
- rubocop-rspec
- rubocop-performance
- rubocop-rake
AllCops:
# RuboCop has a bunch of cops enabled by default. This setting tells RuboCop
# to ignore them, so only the ones explicitly set in this file are enabled.
DisabledByDefault: true
SuggestExtensions: false
Exclude:
- "bin/**/*"
- "db/schema.rb"
- "node_modules/**/*"
- !ruby/regexp /nomad\/[^gumroad_deployer]/
- "tmp/**/*"
- "vendor/bundle/**/*"
Layout/ArgumentAlignment:
Enabled: true
Layout/ArrayAlignment:
Enabled: true
Layout/BlockAlignment:
Enabled: true
Layout/DefEndAlignment:
Enabled: true
Layout/HashAlignment:
Enabled: true
Layout/FirstHashElementIndentation:
Enabled: true
Layout/FirstArrayElementIndentation:
Enabled: true
Layout/SpaceInsideArrayLiteralBrackets:
Enabled: true
Layout/SpaceInsideArrayPercentLiteral:
Enabled: true
Rails/BulkChangeTable:
Enabled: true
Database: mysql
Exclude:
- !ruby/regexp /^db\/migrate\/(201[1-9]|202[0-2]|20230[1-9])/ # Exclude migration files created before the cop was introduced
Style/BlockDelimiters:
Enabled: true