forked from ManageIQ/patternfly-sass
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
56 lines (56 loc) · 1.34 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
ClassLength:
# It's not worth bending over backwards to avoid long classes.
Enabled: false
CollectionMethods:
PreferredMethods:
collect: 'map'
reduce: 'inject'
detect: 'find'
find_all: 'select'
CyclomaticComplexity:
Enabled: false
Documentation:
# TODO: We need to add a bunch of docs before we can enable this.
Enabled: false
HashSyntax:
EnforcedStyle: hash_rockets
IfUnlessModifier:
Enabled: false
LineLength:
Enabled: true
Max: 160
Metrics/AbcSize:
Enabled: false
MethodLength:
Max: 50
CountComments: false
ModuleFunction:
# The module_function declaration makes methods private so it means you can't use the module as a module.
Enabled: false
ParenthesesAroundCondition:
AllowSafeAssignment: false
PerlBackrefs:
Enabled: false
RaiseArgs:
EnforcedStyle: compact
RedundantReturn:
AllowMultipleReturnValues: true
RegexpLiteral:
Enabled: false
SignalException:
EnforcedStyle: only_raise
SpaceAroundEqualsInParameterDefault:
EnforcedStyle: no_space
SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space
StringLiterals:
# They say to not use double quoted strings unless there is interpolation.
# While this gives a marginal parse time speedup, it makes working with
# strings annoying.
Enabled: false
TrailingComma:
Enabled: true
UnneededPercentX:
Enabled: false
WhileUntilModifier:
Enabled: false