forked from rom-rb/rom-rails
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.rubocop.yml
59 lines (47 loc) · 1.24 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
# FIXME: Lower by refactoring biggest offenders
Metrics/AbcSize:
Max: 26
# FIXME: Lower by refactoring biggest offenders
Metrics/CyclomaticComplexity:
Max: 8
# FIXME: No clue how to fix that one line…
Metrics/LineLength:
Exclude:
- lib/rom/rails/configuration.rb
# FIXME: Lower by refactoring biggest offenders
Metrics/MethodLength:
Max: 22
# FIXME: Lower by refactoring biggest offenders
Metrics/PerceivedComplexity:
Max: 10
# Don’t check temp and Rails-generated files
AllCops:
Exclude:
- spec/dummy/Rakefile
- spec/dummy/config/**/*
- spec/dummy/db/schema.rb
- spec/dummy/db/seeds.rb
- tmp/**/*
# Documentation checked by Inch CI
Style/Documentation:
Enabled: false
# This is a shim file for those who require 'rom-mongo'
Style/FileName:
Exclude:
- lib/rom-rails.rb
# Early returns have their vices
Style/GuardClause:
Enabled: false
# Model::Validator uses Model::ValidationError for this
Style/RaiseArgs:
Exclude:
- lib/rom/model.rb
# Even a single escaped slash can be confusing
Style/RegexpLiteral:
MaxSlashes: 0
# Don’t introduce semantic fail/raise distinction
Style/SignalException:
EnforcedStyle: only_raise
# Accept both single and double quotes
Style/StringLiterals:
Enabled: false