forked from MarkUsProject/Markus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
32 lines (27 loc) · 804 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
# Multi-line method chaining should be done with leading dots.
Style/DotPosition:
EnforcedStyle: leading
# Prefer single-quoted strings when you don't need string interpolation or
# special symbols.
Style/StringLiterals:
EnforcedStyle: single_quotes
# Prefer specific method aliases over others
Style/CollectionMethods:
# Mapping from undesired method to desired_method
# e.g. to use `detect` over `find`:
#
# CollectionMethods:
# PreferredMethods:
# find: detect
PreferredMethods:
find:
detect: 'find'
# Disable to allow method chaining aligned at the '.'
Style/MultilineOperationIndentation:
Enabled: false
# Disable ABC code complexity metric
Metrics/AbcSize:
Enabled: false
# Have you noticed the width of your screen recently?
Metrics/LineLength:
Max: 120