-
Notifications
You must be signed in to change notification settings - Fork 3
/
.rubocop.yml
104 lines (77 loc) · 2.01 KB
/
.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
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
AllCops:
NewCops: enable
SuggestExtensions: false
# DefaultFormatter: fuubar
TargetRubyVersion: 2.5
Exclude:
- 'spec/fixtures/**/*'
- 'tmp/**/*'
Gemspec/RequiredRubyVersion: { Enabled: false }
Metrics/LineLength:
Max: 130
Exclude:
- 'spec/**/*'
Metrics/BlockLength:
Enabled: false
Exclude:
- 'spec/**/*'
Metrics/BlockNesting:
Max: 4
Metrics/MethodLength:
Max: 20
Enabled: false
Metrics/ClassLength: { Enabled: false }
Metrics/AbcSize:
# Max: 50
Enabled: false
Metrics/CyclomaticComplexity:
Max: 50
Metrics/PerceivedComplexity:
Max: 50
Metrics/ParameterLists:
Max: 10
Style/StringLiterals:
Enabled: false
# EnforcedStyle: double_quotes
Style/RedundantReturn: { Enabled: false }
Layout/ArgumentAlignment:
EnforcedStyle: with_fixed_indentation
Layout/SpaceBeforeBlockBraces:
EnforcedStyle: no_space
Layout/SpaceAroundEqualsInParameterDefault:
EnforcedStyle: no_space
Layout/SpaceAfterColon: { Enabled: false }
Layout/SpaceAroundOperators: { Enabled: false }
Layout/EndAlignment:
EnforcedStyleAlignWith: variable
Layout/SpaceInsideBlockBraces:
SpaceBeforeBlockParameters: false
Layout/EmptyLinesAroundBlockBody:
Exclude:
- 'spec/**/*'
Layout/EmptyLinesAroundModuleBody:
Enabled: false
# EnforcedStyle: empty_lines_except_namespace
Layout/EmptyLinesAroundClassBody:
Enabled: false
# EnforcedStyle: empty_lines_except_namespace
Layout/DotPosition:
# so that code can be copied to console
EnforcedStyle: trailing
Layout/FirstHashElementIndentation:
EnforcedStyle: consistent
Layout/EmptyLines: { Enabled: false }
Style/AsciiComments: { Enabled: false }
Style/Documentation:
# TODO
Enabled: false
Style/BlockDelimiters:
Enabled: false
Exclude:
- 'spec/**/*'
# trailing commas make simpler diffs
Style/TrailingCommaInHashLiteral: { Enabled: false }
Style/TrailingCommaInArrayLiteral: { Enabled: false }
Style/KeywordParametersOrder: { Enabled: false }
Naming/AccessorMethodName: { Enabled: false }
Naming/VariableNumber: { Enabled: false }