-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.rubocop.yml
127 lines (104 loc) · 2.83 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
122
123
124
125
126
127
require: rubocop-rspec
inherit_gem:
bixby: bixby_default.yml
Rails:
Enabled: true
AllCops:
DisplayCopNames: true
TargetRubyVersion: 2.6
NewCops: enable
Exclude:
- 'bin/*'
- 'config/initializers/**/*'
- 'db/**/*'
- 'node_modules/**/*'
- 'spec/factories/*'
- 'tmp/**/*'
- 'vendor/**/*'
- 'config/environments/**/*'
Layout/HashAlignment:
Exclude:
- 'app/helpers/pulmap_geoblacklight_helper.rb'
Layout/LineLength:
Max: 125
Exclude:
- 'Rakefile'
# TODO: Refactor add_show_tools_partial procs.
- 'app/controllers/catalog_controller.rb'
- 'app/helpers/advanced_helper.rb'
- 'app/helpers/pulmap_geoblacklight_helper.rb'
- 'config/deploy.rb'
- 'lib/tasks/pulmap.rake'
- 'lib/tasks/thumbnails.rake'
- 'spec/lib/thumbnail_spec.rb'
- 'spec/requests/advanced_request_spec.rb'
- 'spec/services/robots_generator_service_spec.rb'
- 'spec/views/catalog/_web_services.erb_spec.rb'
- 'spec/controllers/thumbnails_controller_spec.rb'
- 'spec/requests/geoserver_requests_spec.rb'
Lint/MissingSuper:
Exclude:
- 'app/components/blacklight/response/facet_group_component.rb'
# TODO: Reduce method complexity in omniauth callback controller.
Metrics/AbcSize:
Exclude:
- 'app/controllers/users/omniauth_callbacks_controller.rb'
- 'app/helpers/advanced_helper.rb'
- 'app/helpers/pulmap_geoblacklight_helper.rb'
- 'lib/tasks/ci.rake'
Metrics/BlockLength:
Exclude:
- 'app/controllers/catalog_controller.rb'
- 'config/routes.rb'
- 'lib/tasks/pulmap.rake'
- 'lib/tasks/thumbnails.rake'
- 'spec/**/*'
Metrics/BlockNesting:
Exclude:
- 'app/helpers/advanced_helper.rb'
Metrics/ClassLength:
Max: 100
Exclude:
- 'app/controllers/catalog_controller.rb'
Metrics/CyclomaticComplexity:
Exclude:
- 'app/helpers/advanced_helper.rb'
- 'app/helpers/pulmap_geoblacklight_helper.rb'
- 'app/controllers/geoserver_controller.rb'
Metrics/MethodLength:
Max: 14
Exclude:
- 'app/helpers/advanced_helper.rb'
- 'app/helpers/pulmap_geoblacklight_helper.rb'
- 'app/controllers/geoserver_controller.rb'
Metrics/PerceivedComplexity:
Exclude:
- 'app/helpers/advanced_helper.rb'
- 'app/helpers/pulmap_geoblacklight_helper.rb'
# Overrides method in blacklight. Must use method name.
Naming/PredicateName:
Exclude:
- 'app/controllers/catalog_controller.rb'
Rails/Output:
Exclude:
- 'config/deploy.rb'
Rails/OutputSafety:
Exclude:
- 'app/helpers/pulmap_geoblacklight_helper.rb'
Rails/RakeEnvironment:
Exclude:
- 'lib/tasks/pulmap.rake'
RSpec/DescribeClass:
Exclude:
- 'spec/features/**/*'
RSpec/ExampleLength:
Enabled: false
RSpec/FilePath:
Enabled: false
RSpec/MultipleExpectations:
Enabled: false
Style/Documentation:
Enabled: false
Style/StringLiterals:
Enabled: true
EnforcedStyle: double_quotes