-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
63 lines (60 loc) · 1.52 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
---
AllCops:
Exclude:
- spec/fixtures/**/*
TargetRubyVersion: 2.3
DisplayCopNames: true
# Style
Style/ConditionalAssignment:
Description: This looks way more readable.
EnforcedStyle: assign_inside_condition
Style/FrozenStringLiteralComment:
Enabled: false
Style/MethodMissingSuper:
Description: We use method_missing for all unrecognizable patterns in Puppetfile.
Enabled: false
Style/NumericLiterals:
Description: Counter-intuitive for port numbers.
Enabled: false
Style/TrailingCommaInArguments:
EnforcedStyleForMultiline: comma
Style/TrailingCommaInArrayLiteral:
EnforcedStyleForMultiline: comma
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: comma
Style/SpecialGlobalVars:
Description: These look kinda scary.
Enabled: false
Style/SymbolArray:
Description: Using percent style obscures symbolic intent of array's contents.
EnforcedStyle: brackets
Style/FormatStringToken:
Description: Hiera doesn't like this restriction.
Enabled: false
# Layout
Layout/ClosingParenthesisIndentation:
Enabled: false
Layout/AlignHash:
EnforcedColonStyle: table
EnforcedHashRocketStyle: table
# Metrics
Metrics/LineLength:
Description: People have wide screens, use them.
Max: 200
Metrics/AbcSize:
Enabled: false
Metrics/BlockLength:
Enabled: false
Metrics/ClassLength:
Enabled: false
Metrics/CyclomaticComplexity:
Enabled: false
Metrics/MethodLength:
Enabled: false
Metrics/ModuleLength:
Enabled: false
Metrics/ParameterLists:
Enabled: false
Metrics/PerceivedComplexity:
Enabled: false
...