forked from collectiveidea/delayed_job_active_record
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
91 lines (67 loc) · 1.31 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
AllCops:
RunRailsCops: true
#################
# [i] Overrides #
#################
CollectionMethods:
# Mapping from undesired method to desired_method
# e.g. to use `detect` over `find`:
#
# CollectionMethods:
# PreferredMethods:
# find: detect
PreferredMethods:
collect: 'map'
collect!: 'map!'
reduce: 'inject'
find_all: 'select'
find: 'detect'
# Multi-line method chaining should be done with leading dots.
DotPosition:
EnforcedStyle: trailing
# Align ends correctly.
EndAlignment:
AlignWith: variable
IfUnlessModifier:
MaxLineLength: 75
LineLength:
Max: 200
SignalException:
EnforcedStyle: only_raise
SpaceInsideBlockBraces:
SpaceBeforeBlockParameters: false
SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space
StringLiterals:
EnforcedStyle: double_quotes
#################
# Disabled cops #
#################
AbcSize:
Enabled: false
ClassAndModuleChildren:
Enabled: false
ClassLength:
Enabled: false
CyclomaticComplexity:
Enabled: false
Documentation:
Enabled: false
EachWithObject:
Enabled: false
FormatString:
Enabled: false
Lambda:
Enabled: false
MethodLength:
Enabled: false
NegatedIf:
Enabled: false
Semicolon:
Enabled: false
SingleLineBlockParams:
Enabled: false
TrailingComma:
Enabled: false
WordArray:
Enabled: false