-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
41 lines (33 loc) · 955 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
inherit_from: .rubocop_todo.yml
Style/InlineComment:
Description: Avoid inline comments.
Enabled: true
Style/MutableConstant:
Description: Freeze mutable constants.
Enabled: true
Style/TrailingWhitespace:
Enabled: true
Style/Documentation:
Enabled: false
Metrics/AbcSize:
Description: >-
A calculated magnitude based on number of assignments,
branches, and conditions.
Enabled: true
Max: 40
Metrics/MethodLength:
Enabled: true
Max: 12
Style/HashSyntax:
Description: >-
Prefer Ruby 1.9 hash syntax { a: 1, b: 2 } over 1.8 syntax
{ :a => 1, :b => 2 }.
Enabled: true
EnforcedStyle: ruby19_no_mixed_keys
UseHashRocketsWithSymbolValues: false
PreferHashRocketsForNonAlnumEndingSymbols: false
Metrics/MethodLength:
Description: 'Avoid methods longer than 24 lines of code.'
Enabled: true
CountComments: false # count full line comments?
Max: 24