-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
48 lines (34 loc) · 1013 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
45
# rubocop settings:
Metrics/LineLength:
Max: 120
Style/WordArray:
Description: 'Use %w or %W for arrays of words.'
EnforcedStyle: brackets
Style/Documentation:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false
Style/NumericPredicate:
Enabled: false
Style/AlignHash:
EnforcedColonStyle: table
Style/AlignParameters:
EnforcedStyle: with_fixed_indentation
Style/ClassAndModuleChildren:
EnforcedStyle: compact
Style/EmptyMethod:
Enabled: false
# Block Syntax Rules
Style/BlockDelimiters:
Enabled: false
Description: >-
Avoid using {...} for multi-line blocks
Prefer {...} over do...end for single-line blocks.
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#single-line-blocks'
# Disable spacing around operators
Style/SpaceAroundOperators:
Enabled: false
Description: >-
spacing around operators is disabled
take care for yourself that fractions are written without whitespaces (1/4)
and math operations with whitespaces (3 * 3)