-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.rubocop.yml
More file actions
38 lines (29 loc) · 754 Bytes
/
.rubocop.yml
File metadata and controls
38 lines (29 loc) · 754 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
# Omakase Ruby styling for Rails
inherit_gem: { rubocop-rails-omakase: rubocop.yml }
# Load custom cops
require:
- ./lib/rubocop/cop/custom/ternary_line_breaks
- ./lib/rubocop/cop/custom/one_line_methods
- ./lib/rubocop/cop/custom/no_class_defined_checks
# Load plugins
plugins:
- rubocop-sorbet
AllCops:
NewCops: enable
# Enable custom cops
Custom/TernaryLineBreaks:
Enabled: true
Custom/OneLineMethods:
Enabled: true
Custom/NoClassDefinedChecks:
Enabled: true
# Enable Sorbet cops
Sorbet/BlockMethodDefinition:
Enabled: true
Sorbet/Refinement:
Enabled: true
# Overwrite or add rules to create your own house style
#
# # Use `[a, [b, c]]` not `[ a, [ b, c ] ]`
# Layout/SpaceInsideArrayLiteralBrackets:
# Enabled: false