forked from sous-chefs/graphite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
87 lines (68 loc) · 1.9 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
AllCops:
Excludes:
- vendor/**
- tmp/**
- cookbooks/**
- bin/**
# Let's not argue over this...
StringLiterals:
EnforcedStyle: double_quotes
Enabled: false
# This isn't javascript, gotta be super careful with the Ruby parser.
DotPosition:
Enabled: false
# Whitespace between modules/classes/methods can be helpful to read and
# don't hurt anybody.
EmptyLinesAroundBody:
Enabled: false
# I very much agree with the Jim Weirich school of thought on usage of do/end
# vs. {...}:
# * http://devblog.avdi.org/2011/07/26/the-procedurefunction-block-convention-in-ruby/
# * http://talklikeaduck.denhaven2.com/2007/10/02/ruby-blocks-do-or-brace
# * http://onestepback.org/index.cgi/Tech/Ruby/BraceVsDoEnd.rdoc
Blocks:
Enabled: false
# When this is useful, it's useful, every other time it's entirely surprising
# to new Rubyists, let's make it higher at least
NumericLiterals:
MinDigits: 12
# ABC complexity is a far better code smell signal than raw method length.
MethodLength:
Max: 50
LineLength:
Enabled: false
###
# This can make what we're working with in a given method pop more, especially for new rubyists
EmptyLiteral:
Enabled: false
# Other tooling can detect and handle this, too many false positives.
Documentation:
Enabled: false
# For chef cookbooks this results in false positives
ParenthesesAsGroupedExpression:
Enabled: false
# This isn't practical for all the spec code
BracesAroundHashParameters:
Enabled: false
# Emacs ruby-mode handles this just fine thanks
IndentHash:
Enabled: false
IndentArray:
Enabled: false
SignalException:
Enabled: false
# Pretty sure this isn't a requirement anywhere else
PercentLiteralDelimiters:
Enabled: false
AlignParameters:
Enabled: false
# Temporary during refactor for federated.rb recipe
# Offence count: 1
BlockNesting:
Max: 5
# TODO convert to 1.9 every
# Offences: 106
HashSyntax:
Enabled: false
Encoding:
Enabled: false