forked from collectiveidea/interactor
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.rubocop.yml
45 lines (40 loc) · 1003 Bytes
/
.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
# This should always correspond to the required Ruby version specified in the
# gemspec.
AllCops:
TargetRubyVersion: 2.0
# TODO: What should we do here?
Style/FrozenStringLiteralComment:
Enabled: false
# Allow some style changes in the specs.
AmbiguousBlockAssociation:
Exclude:
- spec/**/*
Metrics/BlockLength:
Exclude:
- spec/**/*
Metrics/ModuleLength:
Exclude:
- spec/**/*
Style/BlockDelimiters:
Exclude:
- spec/**/*
# Here, inconsistent indentation helps to understand tree nature of callbacks.
Style/AlignArray:
Exclude:
- spec/integration_spec.rb
# TODO: Remove when throw is used rather than raise in Interactor::Context.fail!
Lint/HandleExceptions:
Exclude:
- lib/interactor.rb
Style/RescueModifier:
Exclude:
- spec/**/*
# These style conventions are personal preference.
Style/EmptyMethod:
Enabled: false
Style/IndentArray:
EnforcedStyle: consistent
Style/StringLiterals:
EnforcedStyle: double_quotes
Style/SymbolArray:
Enabled: false