forked from glennsarti/puppetfile-resolver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
94 lines (78 loc) · 1.85 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
inherit_from: .rubocop_todo.yml
AllCops:
NewCops: enable
Include:
- 'lib/**/*.rb'
- 'puppetfile-cli.rb'
Exclude:
- 'tmp/**/*'
- 'spec/**/*'
- 'vendor/**/*'
- Gemfile
- Rakefile
Style/Documentation:
Enabled: false
Style/NumericLiterals:
Enabled: false
# Length is not useful indicator
Metrics/LineLength:
Enabled: false
Metrics/MethodLength:
Enabled: false
Metrics/ModuleLength:
Enabled: false
Metrics/ClassLength:
Enabled: false
Metrics/BlockLength:
Enabled: false
Metrics/AbcSize:
Enabled: false
Metrics/PerceivedComplexity:
Enabled: false
Metrics/CyclomaticComplexity:
Enabled: false
# Empty method definitions over more than one line is ok
Style/EmptyMethod:
Enabled: false
# Either sytnax for regex is ok
Style/RegexpLiteral:
Enabled: false
# Sometimes, I actually want both!
Style/DateTime:
Enabled: false
# Please don't fail at failing.
Lint/RedundantCopDisableDirective:
Enabled: false
# Don't care
Naming/MemoizedInstanceVariableName:
Enabled: false
Layout/EmptyLineAfterGuardClause:
Enabled: false
Metrics/ParameterLists:
Enabled: false
# In some cases readability is better without these cops enabled
Style/ConditionalAssignment:
Enabled: false
Style/Next:
Enabled: false
# Enforce LF line endings, even when on Windows
Layout/EndOfLine:
EnforcedStyle: lf
# We only alias for monkey patching
Style/Alias:
Enabled: false
# Harder to read when on
Style/SymbolProc:
Enabled: false
Style/HashSyntax:
Enabled: false
Layout/HashAlignment:
EnforcedHashRocketStyle: table
Naming/RescuedExceptionsVariableName:
PreferredName: e
# There's no benefit to this and can make things harder to read.
Style/NumericPredicate:
Enabled: false
# This is not valid on Ruby 2.1
Style/SafeNavigation:
Enabled: false