forked from cyberark/conjur
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop_settings.yml
92 lines (88 loc) · 2.51 KB
/
.rubocop_settings.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
AllCops:
TargetRubyVersion: 2.5
# These non-default settings best reflect our current code style.
Layout/LineLength:
Max: 80
Style/RescueStandardError:
EnforcedStyle: implicit
Style/AndOr:
EnforcedStyle: always
Style/StderrPuts:
Enabled: false
Layout/HeredocIndentation:
Enabled: true
EnforcedStyle: squiggly
Layout/MultilineMethodCallBraceLayout:
EnforcedStyle: symmetrical
Layout/SpaceAroundBlockParameters:
EnforcedStyleInsidePipes: no_space
Layout/SpaceAroundEqualsInParameterDefault:
EnforcedStyle: space
Layout/SpaceBeforeBlockBraces:
EnforcedStyle: space
EnforcedStyleForEmptyBraces: space
Layout/SpaceInsideBlockBraces:
EnforcedStyle: space
EnforcedStyleForEmptyBraces: no_space
SpaceBeforeBlockParameters: true
Layout/SpaceInsideHashLiteralBraces:
EnforcedStyle: space
EnforcedStyleForEmptyBraces: no_space
Layout/SpaceInsideParens:
EnforcedStyle: no_space
Layout/SpaceInsideReferenceBrackets:
EnforcedStyle: no_space
EnforcedStyleForEmptyBrackets: no_space
Layout/TrailingEmptyLines:
EnforcedStyle: final_newline
Style/BarePercentLiterals:
EnforcedStyle: percent_q
Style/MethodCallWithArgsParentheses:
Enabled: true
IgnoredMethods: [
# Ruby keywords:
gem, require, raise, cattr_accessor,
# Test keywords:
step, to, to_not, not_to,
# GLI keywords
desc, command, flag, arg_name, switch
]
# Either style of these arguably has its place depending on the context.
Style/FormatStringToken:
Enabled: false
Style/LambdaCall:
Enabled: false
Style/StringLiterals:
Enabled: false
Layout/SpaceInsideArrayLiteralBrackets:
Enabled: false
# However, these score at comparatively fewer offences, so I'll
# leave it here in case we want to enforce a style after all.
EnforcedStyle: no_space
EnforcedStyleForEmptyBrackets: no_space
# The default configuration of these makes it hard to use proportional fonts.
Layout/ParameterAlignment:
EnforcedStyle: with_fixed_indentation
Layout/EndAlignment:
EnforcedStyleAlignWith: start_of_line
Layout/ExtraSpacing:
AllowForAlignment: false
Layout/FirstParameterIndentation:
EnforcedStyle: consistent
Layout/FirstHashElementIndentation:
EnforcedStyle: consistent
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented
Layout/MultilineOperationIndentation:
EnforcedStyle: indented
Layout/SpaceAroundOperators:
AllowForAlignment: false
Layout/SpaceBeforeFirstArg:
AllowForAlignment: false
Metrics/BlockLength:
CountComments: false
Max: 25
Exclude:
- 'Rakefile'
- '**/*.rake'
- 'spec/**/*.rb'