-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.rubocop.yml
121 lines (96 loc) · 2.94 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
119
120
121
inherit_from: .rubocop_todo.yml
require: rubocop-rspec
AllCops:
TargetRubyVersion: 3.0
# TODO: review this later
NewCops: disable
Exclude:
- '.internal_test_app/**/*'
- 'Gemfile'
- 'bin/**/*'
- 'db/**/*'
- 'lib/trln_argon/version.rb'
- 'lib/trln_argon/item_deserializer.rb'
- 'trln_argon.gemspec'
- 'lib/trln_argon/argon_search_builder/add_query_to_solr.rb'
- 'lib/generators/trln_argon/remove_solr_marc_generator.rb'
Style/Documentation:
Enabled: false
Metrics/AbcSize:
Max: 25
Exclude:
- 'lib/trln_argon/view_helpers/catalog_helper_behavior.rb'
- 'lib/trln_argon/view_helpers/hierarchy_helper.rb'
- 'lib/trln_argon/mappings.rb'
Metrics/BlockLength:
Exclude:
- 'lib/trln_argon/hathitrust_controller_behavior.rb'
- 'lib/trln_argon/trln_controller_behavior.rb'
- 'lib/trln_argon/bookmarks_controller_behavior.rb'
- 'lib/trln_argon/controller_override.rb'
- 'lib/tasks/trln_argon_tasks.rake'
- 'spec/lib/trln_argon/fields_spec.rb'
- 'spec/**/*'
- 'config/initializers/trln_argon.rb'
Metrics/ClassLength:
Exclude:
- 'lib/generators/trln_argon/install_generator.rb'
Metrics/CyclomaticComplexity:
Exclude:
- 'lib/trln_argon/view_helpers/catalog_helper_behavior.rb'
Layout/LineLength:
Max: 120
Exclude:
- 'lib/trln_argon/controller_override.rb'
Metrics/MethodLength:
Exclude:
- 'lib/trln_argon/view_helpers/catalog_helper_behavior.rb'
- 'lib/trln_argon/mappings.rb'
- 'lib/trln_argon/solr_document/expand_document.rb'
- 'lib/trln_argon/view_helpers/hierarchy_helper.rb'
- 'config/initializers/parsing_nesting_parser.rb'
Metrics/ModuleLength:
Exclude:
- 'lib/trln_argon/controller_override.rb'
- 'lib/trln_argon/fields.rb'
- 'lib/trln_argon/view_helpers/trln_argon_helper.rb'
- 'spec/lib/trln_argon/fields_spec.rb'
- 'lib/trln_argon/view_helpers/items_section_helper.rb'
- 'lib/trln_argon/solr_document/citation.rb'
Metrics/PerceivedComplexity:
Exclude:
- 'lib/trln_argon/view_helpers/catalog_helper_behavior.rb'
RSpec/DescribeClass:
Exclude:
- 'spec/features/**/*'
- 'spec/routing/catalog_routing_spec.rb'
RSpec/ExampleLength:
Max: 20
RSpec/VerifiedDoubles:
Exclude:
- 'spec/helpers/catalog_helper_spec.rb'
RSpec/MessageSpies:
EnforcedStyle: receive
Style/FrozenStringLiteralComment:
Enabled: false
# The following were disabled due to an excessive amount of errors
# after an upgrade, not because they're useless. We can enable them
# one by one over time to avoid excessively large commits
RSpec/ContextWording:
Enabled: false
RSpec/MultipleMemoizedHelpers:
Enabled: false
RSpec/EmptyLineAfterExampleGroup:
Enabled: false
Layout/HashAlignment:
Enabled: false
Layout/EmptyLineAfterGuardClause:
Enabled: false
Migration/DepartmentName:
Enabled: false
Lint/MissingCopEnableDirective:
Enabled: false
Lint/ConstantDefinitionInBlock:
Enabled: false
RSpec/IndexedLet:
Enabled: false