forked from rom-rb/rom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
87 lines (69 loc) · 1.69 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
# Generated by `rubocop --auto-gen-config`
inherit_from: .rubocop_todo.yml
# Exclude temporary files
AllCops:
Exclude:
- tmp/**/*
- vendor/**/*
Style/BlockDelimiters:
EnforcedStyle: semantic
FunctionalMethods:
- let
- let!
- subject
- watch
- before
# No need to handle LoadError in Rakefile
Lint/HandleExceptions:
Exclude:
- rakelib/*.rake
- spec/spec_helper.rb
- benchmarks/setup.rb
# gemspec is a special snowflake
Metrics/LineLength:
Exclude:
- rom.gemspec
# The enforced style doesn’t match Vim’s defaults
Style/AlignParameters:
Enabled: false
# UTF-8 is perfectly fine in comments
Style/AsciiComments:
Enabled: false
# Documentation checked by Inch CI
Style/Documentation:
Enabled: false
# Early returns have their vices
Style/GuardClause:
Enabled: false
# Need to be skipped for >-> usage
Style/Lambda:
Enabled: false
# Multiline block chains are ok
Style/MultilineBlockChain:
Enabled: false
# Multiline operation chains are indented
Style/MultilineOperationIndentation:
EnforcedStyle: indented
# Result::Success and Result::Failure use > for callbacks
Style/OpMethod:
Exclude:
- lib/rom/command_registry.rb
# Don’t introduce semantic fail/raise distinction
Style/SignalException:
EnforcedStyle: only_raise
# Need to be skipped for >-> usage
Style/SpaceAroundOperators:
Enabled: false
# Accept both single and double quotes
Style/StringLiterals:
Enabled: false
# Allow def self.foo; @foo; end
Style/TrivialAccessors:
Enabled: false
# Allow compact style for specs
Style/ClassAndModuleChildren:
Exclude:
- spec/**/*_spec.rb
# Allow logical `or`/`and` in conditionals
Style/AndOr:
EnforcedStyle: conditionals