This repository has been archived by the owner on Mar 4, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
72 lines (57 loc) · 1.74 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
## Styles ######################################################################
Style/AlignParameters:
EnforcedStyle: with_fixed_indentation
Style/BracesAroundHashParameters:
Enabled: false
# Broken (2014-12-15). Use `yardstick` gem instead.
# See: https://github.com/bbatsov/rubocop/issues/947
# TODO: Enable back once cop is fixed.
Style/Documentation:
Enabled: false
Style/EmptyLineBetweenDefs:
AllowAdjacentOneLineDefs: true
Style/Encoding:
EnforcedStyle: when_needed
Style/HashSyntax:
EnforcedStyle: hash_rockets
Style/IndentHash:
EnforcedStyle: consistent
# New lambda syntax is as ugly to me as new syntax of Hash.
Style/Lambda:
Enabled: false
Style/MultilineOperationIndentation:
EnforcedStyle: indented
# IMHO `%r{foo/bar}` looks way more cleaner than `/foo\/bar/`.
# Enabling this cop also makes Guardfile (which is full of pathname regexps)
# look absolutley (style) inconsistent and terrible. Thus it should be on
# developer's choice whenever to user `%r` or not. Just like we don't enforce
# to use `["foo"]` over `%w(foo)` and so on.
Style/RegexpLiteral:
Enabled: false
# A bit useless restriction, that makes impossible aligning code like this:
#
# redis do |conn|
# conn.hset :k1, now
# conn.hincrby :k2, 123
# end
Style/SingleSpaceBeforeFirstArg:
Enabled: false
Style/StringLiterals:
EnforcedStyle: double_quotes
# Not all trivial readers/writers can be defined with attr_* methods
#
# class Example < SimpleDelegator
# def __getobj__
# @obj
# end
#
# def __setobj__(obj)
# @obj = obj
# end
# end
Style/TrivialAccessors:
Enabled: false
## Metrics #####################################################################
Metrics/MethodLength:
CountComments: false
Max: 15