-
Notifications
You must be signed in to change notification settings - Fork 7
/
.rubocop.yml
118 lines (90 loc) · 2.08 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
inherit_from: .rubocop_todo.yml
require: rubocop-rspec
inherit_gem:
bixby: bixby_default.yml
Rails:
Enabled: true
Rails/Date:
Enabled: false
# This cop has many false positives with objects
# from the ruby-marc gem. Many of these objects
# have an `include?` method but not an `exclude?`
Rails/NegateInclude:
Enabled: false
Rails/RakeEnvironment:
Exclude:
- lib/tasks/*
Rails/RedundantPresenceValidationOnBelongsTo:
Exclude:
- 'app/models/dump.rb'
Rails/TimeZone:
Enabled: false
Rails/UnknownEnv:
Environments:
- production
- staging
- development
- test
AllCops:
DisplayCopNames: true
NewCops: enable
TargetRubyVersion: 3.2
Exclude:
- 'db/**/*'
- 'bin/*'
- 'config/deploy.rb'
- 'config/initializers/*'
- 'vendor/**/*'
- 'tmp/**/*'
- 'marc_to_solr/translation_maps/location_display.rb'
- 'marc_to_solr/translation_maps/locations.rb'
- 'marc_to_solr/translation_maps/holding_library.rb'
Style/AsciiComments:
Enabled: false
Layout/IndentationConsistency:
EnforcedStyle: indented_internal_methods
Style/FrozenStringLiteralComment:
Enabled: false
Style/MethodDefParentheses:
Enabled: false
Style/NumericPredicate:
Enabled: false
Layout/LineLength:
Exclude:
- 'spec/**/*'
- 'marc_to_solr/**/*'
- 'app/**/*'
Lint/SuppressedException:
Exclude:
- 'lib/tasks/spec.rake'
- 'marc_to_solr/lib/location_extract.rb'
Metrics/ModuleLength:
Exclude:
- 'marc_to_solr/lib/process_holdings_helpers.rb'
Naming/VariableNumber:
Enabled: false
RSpec/DescribeClass:
Exclude:
- 'spec/db/seeds_spec.rb'
- 'spec/marc_to_solr/**/*'
RSpec/ExampleLength:
Enabled: false
RSpec/NestedGroups:
Enabled: false
Lint/UselessAssignment:
Enabled: false
Metrics/MethodLength:
Exclude:
- 'marc_to_solr/lib/princeton_marc.rb'
Rails/HasAndBelongsToMany:
Exclude:
- 'app/models/delivery_location.rb'
- 'app/models/holding_location.rb'
Rails/HasManyOrHasOneDependent:
Exclude:
- 'app/models/*'
Rails/ApplicationRecord:
Exclude:
- 'app/models/*'
Security/Open:
Enabled: true