forked from sul-dlss/libsys-webforms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
83 lines (63 loc) · 1.27 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
require:
- rubocop-performance
- rubocop-rails
- rubocop-rspec
AllCops:
TargetRubyVersion: 2.6
Exclude:
- 'Gemfile'
- 'bin/**/*'
- 'db/**/*'
- 'config/**/*'
- 'spec/spec_helper.rb'
- 'test/spec_helper.rb'
- 'spec/factories/*'
- 'vendor/**/*'
- 'lib/tasks/display-coverage.rake'
- 'loc_marc2bibframe2/**/*'
Lint/HandleExceptions:
Enabled: false
Lint/UnreachableCode:
Enabled: false
Lint/UnusedBlockArgument:
Enabled: false
Metrics/BlockLength:
Max: 101
Metrics/LineLength:
Max: 120
Metrics/ClassLength:
Max: 120
Metrics/CyclomaticComplexity:
Max: 10
Exclude:
- 'app/models/ability.rb'
Metrics/PerceivedComplexity:
Max: 10
Exclude:
- 'app/models/ability.rb'
Metrics/MethodLength:
Max: 20
Metrics/AbcSize:
Max: 27
Metrics/ParameterLists:
Max: 6
Rails/SkipsModelValidations:
Exclude:
- 'app/models/edi_lin.rb'
RSpec/AnyInstance:
Exclude:
- 'spec/rails_helper.rb'
RSpec/DescribeClass:
Exclude:
- 'spec/views/shared/_top_navbar.html.erb_spec.rb'
RSpec/ExampleLength:
Max: 8
RSpec/InstanceVariable:
Enabled: false
Style/PercentLiteralDelimiters:
Enabled: false
Style/StringLiterals:
Enabled: true
EnforcedStyle: single_quotes
Style/FrozenStringLiteralComment:
Enabled: false