This repository has been archived by the owner on Jan 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.rubocop.yml
92 lines (91 loc) · 2.1 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
# Oldest supported Ruby version.
# See http://rubocop.readthedocs.io/en/latest/configuration/#setting-the-target-ruby-version
AllCops:
TargetRubyVersion: 2.0
AbcSize:
Enabled: false
AlignParameters:
EnforcedStyle: with_fixed_indentation
BlockLength:
Enabled: false
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'
CommandLiteral:
EnforcedStyle: percent_x
CommentAnnotation:
Enabled: false
ConditionalAssignment:
Enabled: false
CyclomaticComplexity:
Enabled: false
Documentation:
# TODO: We need to add a bunch of docs before we can enable this.
Enabled: false
EmptyLinesAroundAccessModifier:
Enabled: false
GuardClause:
Enabled: false
HashSyntax:
EnforcedStyle: hash_rockets
IfUnlessModifier:
Enabled: false
LineLength:
Enabled: true
Max: 100
MethodLength:
Enabled: false
ModuleFunction:
# The module_function declaration makes methods private so it means you can't use the module as a module.
Enabled: false
ModuleLength:
Enabled: false
NegatedWhile:
Enabled: false
NumericLiterals:
Enabled: false
ParenthesesAroundCondition:
AllowSafeAssignment: false
PercentLiteralDelimiters:
Enabled: false
PerceivedComplexity:
Enabled: false
PerlBackrefs:
Enabled: false
RaiseArgs:
EnforcedStyle: compact
RedundantReturn:
AllowMultipleReturnValues: true
RegexpLiteral:
Enabled: false
SignalException:
EnforcedStyle: only_raise
SpaceAroundEqualsInParameterDefault:
EnforcedStyle: no_space
SpaceInsideHashLiteralBraces:
EnforcedStyle: 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
Style/SafeNavigation:
Enabled: false
SymbolArray:
Enabled: false
TrailingCommaInArguments:
Enabled: false
TrailingCommaInLiteral:
EnforcedStyleForMultiline: comma
TrivialAccessors:
Enabled: false
UselessAccessModifier:
Enabled: false
WhileUntilModifier:
Enabled: false