forked from puppetlabs/puppet-editor-services
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
114 lines (92 loc) · 2.05 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
105
106
107
108
109
110
111
112
113
114
inherit_from: .rubocop_todo.yml
AllCops:
Include:
- 'lib/**/*.rb'
- 'puppet-languageserver'
Exclude:
- 'tmp/**/*'
- 'spec/**/*'
- 'vendor/**/*'
- Gemfile
- Rakefile
Style/Documentation:
Enabled: false
Style/NumericLiterals:
Enabled: false
# Length is not useful indicator
Layout/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
# Line endings are just a mess
Layout/EndOfLine:
Enabled: false
# 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
# This is not valid on Ruby 2.1
Layout/HeredocIndentation:
Enabled: false
# Rubocop 0.80.0 rules
Style/HashEachMethods:
Enabled: false
Style/HashTransformKeys:
Enabled: true
Style/HashTransformValues:
Enabled: true
# Rubocop 0.80.1 rules
Lint/RaiseException:
Enabled: true
Lint/StructNewOverride:
Enabled: true