-
Notifications
You must be signed in to change notification settings - Fork 1
/
.rubocop.yml
98 lines (72 loc) · 1.82 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
93
94
95
96
97
98
require: rubocop-rspec
Rails:
Enabled: false
AllCops:
TargetRubyVersion: 2.6.3
Metrics/ClassLength:
Max: 500
Metrics/LineLength:
Max: 100
HttpPositionalArguments:
Enabled: false
# Group gems logically rather than alphabetically.
Bundler/OrderedGems:
Enabled: false
# Documentation comments are optional.
Style/Documentation:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false
RSpec/DescribeClass:
Exclude:
- 'spec/tasks/**/*_spec.rb'
Style/ClassAndModuleChildren:
Enabled: false
Style/AndOr:
Enabled: true
EnforcedStyle: conditionals
Style/Lambda:
Enabled: false
# Do not enforce word array style, leave decision to developer.
Style/WordArray:
Enabled: false
# Allow use of let! in specs
RSpec/LetSetup:
Enabled: false
# This rule currently is bugged, cannot be configured to use slashes.
Style/RegexpLiteral:
Enabled: false
# Do not force coupling to Rails.
Rails/Delegate:
Enabled: false
Style/VariableNumber:
EnforcedStyle: snake_case
RSpec/NamedSubject:
Enabled: false
# Do not force slow tests. Trust devs to make the readability call here.
RSpec/MultipleExpectations:
Enabled: false
# Ruby does not have a .to_bool method.
Style/DoubleNegation:
Enabled: false
# Rely on more meaningful complexity metrics
Metrics/MethodLength:
Enabled: false
# Don't limit DSL block length
Metrics/BlockLength:
Exclude:
- 'spec/**/*_spec.rb'
# The default 5 line limit is unusable when statements such as
# gets with lots of parameters are spread over multiple lines IMO.
RSpec/ExampleLength:
Max: 15
# Don't sacrifice readability for performance unless needed.
Performance/Casecmp:
Enabled: false
# We like DSL writers.
Style/TrivialAccessors:
AllowDSLWriters: true
# Exclude requireable file matching the gem name
Style/FileName:
Exclude:
- 'lib/event-logger.rb'