arclight 0.0.1 → 1.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.all-contributorsrc +450 -0
- data/.codeclimate.yml +5 -0
- data/.eslintrc +22 -0
- data/.github/workflows/ruby.yml +51 -0
- data/.gitignore +7 -0
- data/.rspec +0 -1
- data/.rubocop.yml +521 -0
- data/.rubocop_todo.yml +122 -0
- data/.solr_wrapper +6 -0
- data/CONTRIBUTING.md +43 -0
- data/CONTRIBUTORS.md +79 -0
- data/Gemfile +41 -0
- data/LICENSE.txt +1 -0
- data/README.md +100 -12
- data/Rakefile +13 -3
- data/app/assets/images/arclight/logo.png +0 -0
- data/app/assets/images/blacklight/bookmark.svg +1 -0
- data/app/assets/images/blacklight/collection.svg +5 -0
- data/app/assets/images/blacklight/compact.svg +1 -0
- data/app/assets/images/blacklight/container.svg +5 -0
- data/app/assets/images/blacklight/ead.svg +1 -0
- data/app/assets/images/blacklight/file.svg +5 -0
- data/app/assets/images/blacklight/folder.svg +1 -0
- data/app/assets/images/blacklight/list.svg +1 -0
- data/app/assets/images/blacklight/minus.svg +1 -0
- data/app/assets/images/blacklight/online.svg +5 -0
- data/app/assets/images/blacklight/pdf.svg +1 -0
- data/app/assets/images/blacklight/plus.svg +1 -0
- data/app/assets/images/blacklight/repository.svg +1 -0
- data/app/assets/javascripts/arclight/arclight.js +4 -0
- data/app/assets/javascripts/arclight/oembed_controller.js +58 -0
- data/app/assets/javascripts/arclight/truncate_controller.js +27 -0
- data/app/assets/stylesheets/arclight/application.scss +14 -0
- data/app/assets/stylesheets/arclight/build.scss +4 -0
- data/app/assets/stylesheets/arclight/modules/collection_search.scss +3 -0
- data/app/assets/stylesheets/arclight/modules/hierarchy_and_online_contents.scss +155 -0
- data/app/assets/stylesheets/arclight/modules/highlights.scss +11 -0
- data/app/assets/stylesheets/arclight/modules/icons.scss +20 -0
- data/app/assets/stylesheets/arclight/modules/layout.scss +220 -0
- data/app/assets/stylesheets/arclight/modules/mastheads.scss +42 -0
- data/app/assets/stylesheets/arclight/modules/repositories.scss +25 -0
- data/app/assets/stylesheets/arclight/modules/repository_card.scss +9 -0
- data/app/assets/stylesheets/arclight/modules/search_form.scss +9 -0
- data/app/assets/stylesheets/arclight/modules/search_results.scss +250 -0
- data/app/assets/stylesheets/arclight/modules/show_collection.scss +38 -0
- data/app/assets/stylesheets/arclight/modules/truncator.scss +58 -0
- data/app/assets/stylesheets/arclight/responsive.scss +13 -0
- data/app/assets/stylesheets/arclight/variables.scss +25 -0
- data/app/components/arclight/access_component.html.erb +14 -0
- data/app/components/arclight/access_component.rb +25 -0
- data/app/components/arclight/bookmark_component.html.erb +25 -0
- data/app/components/arclight/bookmark_component.rb +9 -0
- data/app/components/arclight/breadcrumb_component.rb +50 -0
- data/app/components/arclight/breadcrumbs_hierarchy_component.html.erb +34 -0
- data/app/components/arclight/breadcrumbs_hierarchy_component.rb +25 -0
- data/app/components/arclight/collection_context_component.html.erb +12 -0
- data/app/components/arclight/collection_context_component.rb +27 -0
- data/app/components/arclight/collection_info_component.html.erb +28 -0
- data/app/components/arclight/collection_info_component.rb +26 -0
- data/app/components/arclight/collection_sidebar_component.html.erb +15 -0
- data/app/components/arclight/collection_sidebar_component.rb +39 -0
- data/app/components/arclight/constraints_component.html.erb +7 -0
- data/app/components/arclight/constraints_component.rb +17 -0
- data/app/components/arclight/document_collection_context_component.html.erb +29 -0
- data/app/components/arclight/document_collection_context_component.rb +28 -0
- data/app/components/arclight/document_collection_hierarchy_component.html.erb +50 -0
- data/app/components/arclight/document_collection_hierarchy_component.rb +62 -0
- data/app/components/arclight/document_component.html.erb +39 -0
- data/app/components/arclight/document_component.rb +49 -0
- data/app/components/arclight/document_components_hierarchy_component.html.erb +20 -0
- data/app/components/arclight/document_components_hierarchy_component.rb +34 -0
- data/app/components/arclight/document_download_component.html.erb +24 -0
- data/app/components/arclight/document_download_component.rb +71 -0
- data/app/components/arclight/embed_component.html.erb +10 -0
- data/app/components/arclight/embed_component.rb +43 -0
- data/app/components/arclight/expand_hierarchy_button_component.html.erb +5 -0
- data/app/components/arclight/expand_hierarchy_button_component.rb +16 -0
- data/app/components/arclight/group_component.html.erb +34 -0
- data/app/components/arclight/group_component.rb +23 -0
- data/app/components/arclight/header_component.html.erb +5 -0
- data/app/components/arclight/header_component.rb +10 -0
- data/app/components/arclight/index_metadata_field_component.html.erb +16 -0
- data/app/components/arclight/index_metadata_field_component.rb +20 -0
- data/app/components/arclight/masthead_component.html.erb +17 -0
- data/app/components/arclight/masthead_component.rb +10 -0
- data/app/components/arclight/metadata_section_component.html.erb +13 -0
- data/app/components/arclight/metadata_section_component.rb +22 -0
- data/app/components/arclight/oembed_viewer_component.html.erb +5 -0
- data/app/components/arclight/oembed_viewer_component.rb +16 -0
- data/app/components/arclight/online_content_filter_component.html.erb +15 -0
- data/app/components/arclight/online_content_filter_component.rb +17 -0
- data/app/components/arclight/online_status_indicator_component.rb +19 -0
- data/app/components/arclight/repository_breadcrumb_component.html.erb +10 -0
- data/app/components/arclight/repository_breadcrumb_component.rb +17 -0
- data/app/components/arclight/repository_location_component.html.erb +20 -0
- data/app/components/arclight/repository_location_component.rb +10 -0
- data/app/components/arclight/search_bar_component.html.erb +27 -0
- data/app/components/arclight/search_bar_component.rb +32 -0
- data/app/components/arclight/search_result_breadcrumbs_component.html.erb +6 -0
- data/app/components/arclight/search_result_breadcrumbs_component.rb +37 -0
- data/app/components/arclight/search_result_component.html.erb +20 -0
- data/app/components/arclight/search_result_component.rb +18 -0
- data/app/components/arclight/search_result_title_component.html.erb +15 -0
- data/app/components/arclight/search_result_title_component.rb +15 -0
- data/app/components/arclight/sidebar_component.html.erb +9 -0
- data/app/components/arclight/sidebar_component.rb +19 -0
- data/app/components/arclight/upper_metadata_layout_component.rb +10 -0
- data/app/components/blacklight/icons/bookmark_component.rb +12 -0
- data/app/components/blacklight/icons/collection_component.rb +14 -0
- data/app/components/blacklight/icons/compact_component.rb +12 -0
- data/app/components/blacklight/icons/container_component.rb +14 -0
- data/app/components/blacklight/icons/ead_component.rb +12 -0
- data/app/components/blacklight/icons/file_component.rb +14 -0
- data/app/components/blacklight/icons/folder_component.rb +12 -0
- data/app/components/blacklight/icons/online_component.rb +15 -0
- data/app/components/blacklight/icons/pdf_component.rb +12 -0
- data/app/components/blacklight/icons/repository_component.rb +12 -0
- data/app/controllers/arclight/repositories_controller.rb +40 -0
- data/app/helpers/arclight/ead_format_helpers.rb +309 -0
- data/app/helpers/arclight/field_config_helpers.rb +26 -0
- data/app/helpers/arclight_helper.rb +108 -0
- data/app/models/arclight/document_downloads.rb +122 -0
- data/app/models/arclight/parent.rb +24 -0
- data/app/models/arclight/parents.rb +39 -0
- data/app/models/arclight/requests/aeon_external_request.rb +42 -0
- data/app/models/arclight/requests/aeon_web_ead.rb +52 -0
- data/app/models/arclight/requests/google_form.rb +49 -0
- data/app/models/concerns/arclight/catalog.rb +44 -0
- data/app/models/concerns/arclight/search_behavior.rb +47 -0
- data/app/models/concerns/arclight/solr_document.rb +160 -0
- data/app/presenters/arclight/index_presenter.rb +10 -0
- data/app/presenters/arclight/show_presenter.rb +54 -0
- data/app/views/arclight/.keep +0 -0
- data/app/views/arclight/_requests.html.erb +7 -0
- data/app/views/arclight/repositories/_repository.html.erb +43 -0
- data/app/views/arclight/repositories/index.html.erb +9 -0
- data/app/views/arclight/repositories/show.html.erb +37 -0
- data/app/views/arclight/requests/_aeon_external_request_endpoint.html.erb +8 -0
- data/app/views/arclight/requests/_aeon_web_ead.html.erb +6 -0
- data/app/views/arclight/requests/_google_form.html.erb +10 -0
- data/app/views/catalog/_document_list.html.erb +8 -0
- data/app/views/catalog/_group.html.erb +4 -0
- data/app/views/catalog/_group_toggle.html.erb +10 -0
- data/app/views/catalog/_search_results_header.html.erb +3 -0
- data/app/views/catalog/hierarchy.html.erb +19 -0
- data/app/views/catalog/index.html.erb +17 -0
- data/app/views/shared/_breadcrumbs.html.erb +3 -0
- data/app/views/shared/_main_menu_links.html.erb +6 -0
- data/arclight.gemspec +29 -11
- data/bin/rails +13 -0
- data/config/breadcrumbs.rb +24 -0
- data/config/i18n-tasks.yml +134 -0
- data/config/importmap.rb +3 -0
- data/config/locales/arclight.en.yml +100 -0
- data/config/repositories.yml +0 -0
- data/config/routes.rb +6 -0
- data/docker-compose.yml +16 -0
- data/lib/arclight/digital_object.rb +27 -0
- data/lib/arclight/engine.rb +47 -0
- data/lib/arclight/exceptions.rb +19 -0
- data/lib/arclight/hash_absolute_xpath.rb +62 -0
- data/lib/arclight/level_label.rb +46 -0
- data/lib/arclight/missing_id_strategy.rb +21 -0
- data/lib/arclight/normalized_date.rb +49 -0
- data/lib/arclight/normalized_id.rb +30 -0
- data/lib/arclight/normalized_title.rb +33 -0
- data/lib/arclight/repository.rb +116 -0
- data/lib/arclight/routes/hierarchy.rb +19 -0
- data/lib/arclight/routes.rb +8 -0
- data/lib/arclight/traject/ead2_component_config.rb +335 -0
- data/lib/arclight/traject/ead2_config.rb +316 -0
- data/lib/arclight/traject/nokogiri_namespaceless_reader.rb +22 -0
- data/lib/arclight/version.rb +3 -1
- data/lib/arclight/year_range.rb +111 -0
- data/lib/arclight.rb +11 -1
- data/lib/generators/arclight/install_generator.rb +163 -0
- data/lib/generators/arclight/templates/arclight.scss +6 -0
- data/lib/generators/arclight/templates/catalog_controller.rb +423 -0
- data/lib/generators/arclight/templates/config/downloads.yml +25 -0
- data/lib/generators/arclight/templates/config/locales/arclight.en.yml +61 -0
- data/lib/generators/arclight/templates/config/repositories.yml +53 -0
- data/lib/generators/arclight/update_generator.rb +22 -0
- data/lib/tasks/index.rake +84 -0
- data/package.json +30 -0
- data/solr/conf/_rest_managed.json +3 -0
- data/solr/conf/admin-extra.html +31 -0
- data/solr/conf/elevate.xml +36 -0
- data/solr/conf/mapping-ISOLatin1Accent.txt +246 -0
- data/solr/conf/protwords.txt +21 -0
- data/solr/conf/schema.xml +400 -0
- data/solr/conf/solrconfig.xml +328 -0
- data/solr/conf/spellings.txt +2 -0
- data/solr/conf/stopwords.txt +58 -0
- data/solr/conf/stopwords_en.txt +58 -0
- data/solr/conf/synonyms.txt +31 -0
- data/solr/conf/xslt/example.xsl +132 -0
- data/solr/conf/xslt/example_atom.xsl +67 -0
- data/solr/conf/xslt/example_rss.xsl +66 -0
- data/solr/conf/xslt/luke.xsl +337 -0
- data/tasks/arclight.rake +79 -0
- data/template.rb +10 -0
- metadata +440 -20
- data/.travis.yml +0 -5
data/.rubocop.yml
ADDED
|
@@ -0,0 +1,521 @@
|
|
|
1
|
+
plugins:
|
|
2
|
+
- rubocop-factory_bot
|
|
3
|
+
|
|
4
|
+
require:
|
|
5
|
+
- rubocop-rspec
|
|
6
|
+
- rubocop-rails
|
|
7
|
+
- rubocop-rake
|
|
8
|
+
- rubocop-rspec_rails
|
|
9
|
+
- rubocop-capybara
|
|
10
|
+
|
|
11
|
+
inherit_from:
|
|
12
|
+
- .rubocop_todo.yml
|
|
13
|
+
|
|
14
|
+
AllCops:
|
|
15
|
+
Exclude:
|
|
16
|
+
- ".internal_test_app/**/*"
|
|
17
|
+
- "bin/**/*"
|
|
18
|
+
- "db/**/*"
|
|
19
|
+
- "lib/generators/arclight/templates/**/*"
|
|
20
|
+
- "vendor/**/*"
|
|
21
|
+
- "node_modules/**/*"
|
|
22
|
+
TargetRubyVersion: 3.0
|
|
23
|
+
DisplayCopNames: true
|
|
24
|
+
|
|
25
|
+
Metrics/ModuleLength:
|
|
26
|
+
Exclude:
|
|
27
|
+
- "app/helpers/arclight_helper.rb"
|
|
28
|
+
- "app/models/concerns/arclight/solr_document.rb"
|
|
29
|
+
|
|
30
|
+
Metrics/BlockLength:
|
|
31
|
+
Exclude:
|
|
32
|
+
- "arclight.gemspec"
|
|
33
|
+
- "lib/arclight/traject/ead2_config.rb"
|
|
34
|
+
- "lib/tasks/**/*"
|
|
35
|
+
- "spec/features/traject/ead2_indexing_spec.rb"
|
|
36
|
+
- "spec/helpers/arclight_helper_spec.rb"
|
|
37
|
+
- "spec/features/collection_page_spec.rb"
|
|
38
|
+
- "spec/**/*"
|
|
39
|
+
- "tasks/**/*"
|
|
40
|
+
|
|
41
|
+
Naming/PredicateName:
|
|
42
|
+
ForbiddenPrefixes:
|
|
43
|
+
- is_
|
|
44
|
+
|
|
45
|
+
Layout/LineLength:
|
|
46
|
+
Max: 160
|
|
47
|
+
|
|
48
|
+
Rails:
|
|
49
|
+
Enabled: true
|
|
50
|
+
|
|
51
|
+
Bundler/DuplicatedGem:
|
|
52
|
+
Enabled: false
|
|
53
|
+
|
|
54
|
+
Style/FormatStringToken:
|
|
55
|
+
Exclude:
|
|
56
|
+
- "spec/test_app_templates/lib/generators/test_app_generator.rb"
|
|
57
|
+
|
|
58
|
+
Gemspec/DeprecatedAttributeAssignment: # new in 1.30
|
|
59
|
+
Enabled: true
|
|
60
|
+
Gemspec/RequireMFA: # new in 1.23
|
|
61
|
+
Enabled: false
|
|
62
|
+
Layout/LineContinuationLeadingSpace: # new in 1.31
|
|
63
|
+
Enabled: true
|
|
64
|
+
Layout/LineContinuationSpacing: # new in 1.31
|
|
65
|
+
Enabled: true
|
|
66
|
+
Layout/LineEndStringConcatenationIndentation: # new in 1.18
|
|
67
|
+
Enabled: true
|
|
68
|
+
Layout/SpaceBeforeBrackets: # new in 1.7
|
|
69
|
+
Enabled: true
|
|
70
|
+
Lint/AmbiguousAssignment: # new in 1.7
|
|
71
|
+
Enabled: true
|
|
72
|
+
Lint/AmbiguousOperatorPrecedence: # new in 1.21
|
|
73
|
+
Enabled: true
|
|
74
|
+
Lint/AmbiguousRange: # new in 1.19
|
|
75
|
+
Enabled: true
|
|
76
|
+
Lint/ConstantOverwrittenInRescue: # new in 1.31
|
|
77
|
+
Enabled: true
|
|
78
|
+
Lint/DeprecatedConstants: # new in 1.8
|
|
79
|
+
Enabled: true
|
|
80
|
+
Lint/DuplicateBranch: # new in 1.3
|
|
81
|
+
Enabled: true
|
|
82
|
+
Lint/DuplicateRegexpCharacterClassElement: # new in 1.1
|
|
83
|
+
Enabled: true
|
|
84
|
+
Lint/EmptyBlock: # new in 1.1
|
|
85
|
+
Enabled: true
|
|
86
|
+
Lint/EmptyClass: # new in 1.3
|
|
87
|
+
Enabled: true
|
|
88
|
+
Lint/EmptyInPattern: # new in 1.16
|
|
89
|
+
Enabled: true
|
|
90
|
+
Lint/IncompatibleIoSelectWithFiberScheduler: # new in 1.21
|
|
91
|
+
Enabled: true
|
|
92
|
+
Lint/LambdaWithoutLiteralBlock: # new in 1.8
|
|
93
|
+
Enabled: true
|
|
94
|
+
Lint/NoReturnInBeginEndBlocks: # new in 1.2
|
|
95
|
+
Enabled: true
|
|
96
|
+
Lint/NonAtomicFileOperation: # new in 1.31
|
|
97
|
+
Enabled: true
|
|
98
|
+
Lint/NumberedParameterAssignment: # new in 1.9
|
|
99
|
+
Enabled: true
|
|
100
|
+
Lint/OrAssignmentToConstant: # new in 1.9
|
|
101
|
+
Enabled: true
|
|
102
|
+
Lint/RedundantDirGlobSort: # new in 1.8
|
|
103
|
+
Enabled: true
|
|
104
|
+
Lint/RefinementImportMethods: # new in 1.27
|
|
105
|
+
Enabled: true
|
|
106
|
+
Lint/RequireRangeParentheses: # new in 1.32
|
|
107
|
+
Enabled: true
|
|
108
|
+
Lint/RequireRelativeSelfPath: # new in 1.22
|
|
109
|
+
Enabled: true
|
|
110
|
+
Lint/SymbolConversion: # new in 1.9
|
|
111
|
+
Enabled: true
|
|
112
|
+
Lint/ToEnumArguments: # new in 1.1
|
|
113
|
+
Enabled: true
|
|
114
|
+
Lint/TripleQuotes: # new in 1.9
|
|
115
|
+
Enabled: true
|
|
116
|
+
Lint/UnexpectedBlockArity: # new in 1.5
|
|
117
|
+
Enabled: true
|
|
118
|
+
Lint/UnmodifiedReduceAccumulator: # new in 1.1
|
|
119
|
+
Enabled: true
|
|
120
|
+
Lint/UselessRuby2Keywords: # new in 1.23
|
|
121
|
+
Enabled: true
|
|
122
|
+
Naming/BlockForwarding: # new in 1.24
|
|
123
|
+
Enabled: true
|
|
124
|
+
Security/CompoundHash: # new in 1.28
|
|
125
|
+
Enabled: true
|
|
126
|
+
Security/IoMethods: # new in 1.22
|
|
127
|
+
Enabled: true
|
|
128
|
+
Style/ArgumentsForwarding: # new in 1.1
|
|
129
|
+
Enabled: true
|
|
130
|
+
Style/CollectionCompact: # new in 1.2
|
|
131
|
+
Enabled: true
|
|
132
|
+
Style/DocumentDynamicEvalDefinition: # new in 1.1
|
|
133
|
+
Enabled: true
|
|
134
|
+
Style/EmptyHeredoc: # new in 1.32
|
|
135
|
+
Enabled: true
|
|
136
|
+
Style/EndlessMethod: # new in 1.8
|
|
137
|
+
Enabled: true
|
|
138
|
+
Style/EnvHome: # new in 1.29
|
|
139
|
+
Enabled: true
|
|
140
|
+
Style/FetchEnvVar: # new in 1.28
|
|
141
|
+
Enabled: true
|
|
142
|
+
Style/FileRead: # new in 1.24
|
|
143
|
+
Enabled: true
|
|
144
|
+
Style/FileWrite: # new in 1.24
|
|
145
|
+
Enabled: true
|
|
146
|
+
Style/HashConversion: # new in 1.10
|
|
147
|
+
Enabled: true
|
|
148
|
+
Style/HashExcept: # new in 1.7
|
|
149
|
+
Enabled: true
|
|
150
|
+
Style/IfWithBooleanLiteralBranches: # new in 1.9
|
|
151
|
+
Enabled: true
|
|
152
|
+
Style/InPatternThen: # new in 1.16
|
|
153
|
+
Enabled: true
|
|
154
|
+
Style/MagicCommentFormat: # new in 1.35
|
|
155
|
+
Enabled: true
|
|
156
|
+
Style/MapCompactWithConditionalBlock: # new in 1.30
|
|
157
|
+
Enabled: true
|
|
158
|
+
Style/MapToHash: # new in 1.24
|
|
159
|
+
Enabled: true
|
|
160
|
+
Style/MultilineInPatternThen: # new in 1.16
|
|
161
|
+
Enabled: true
|
|
162
|
+
Style/NegatedIfElseCondition: # new in 1.2
|
|
163
|
+
Enabled: true
|
|
164
|
+
Style/NestedFileDirname: # new in 1.26
|
|
165
|
+
Enabled: true
|
|
166
|
+
Style/NilLambda: # new in 1.3
|
|
167
|
+
Enabled: true
|
|
168
|
+
Style/NumberedParameters: # new in 1.22
|
|
169
|
+
Enabled: true
|
|
170
|
+
Style/NumberedParametersLimit: # new in 1.22
|
|
171
|
+
Enabled: true
|
|
172
|
+
Style/ObjectThen: # new in 1.28
|
|
173
|
+
Enabled: true
|
|
174
|
+
Style/OpenStructUse: # new in 1.23
|
|
175
|
+
Enabled: true
|
|
176
|
+
Style/QuotedSymbols: # new in 1.16
|
|
177
|
+
Enabled: true
|
|
178
|
+
Style/RedundantArgument: # new in 1.4
|
|
179
|
+
Enabled: true
|
|
180
|
+
Style/RedundantInitialize: # new in 1.27
|
|
181
|
+
Enabled: true
|
|
182
|
+
Style/RedundantSelfAssignmentBranch: # new in 1.19
|
|
183
|
+
Enabled: true
|
|
184
|
+
Style/SelectByRegexp: # new in 1.22
|
|
185
|
+
Enabled: true
|
|
186
|
+
Style/StringChars: # new in 1.12
|
|
187
|
+
Enabled: true
|
|
188
|
+
Style/SwapValues: # new in 1.1
|
|
189
|
+
Enabled: true
|
|
190
|
+
RSpec/BeEq: # new in 2.9.0
|
|
191
|
+
Enabled: true
|
|
192
|
+
RSpec/BeNil: # new in 2.9.0
|
|
193
|
+
Enabled: true
|
|
194
|
+
RSpec/ChangeByZero: # new in 2.11
|
|
195
|
+
Enabled: true
|
|
196
|
+
RSpec/ClassCheck: # new in 2.13
|
|
197
|
+
Enabled: true
|
|
198
|
+
RSpec/ExcessiveDocstringSpacing: # new in 2.5
|
|
199
|
+
Enabled: true
|
|
200
|
+
RSpec/IdenticalEqualityAssertion: # new in 2.4
|
|
201
|
+
Enabled: true
|
|
202
|
+
RSpec/NoExpectationExample: # new in 2.13
|
|
203
|
+
Enabled: true
|
|
204
|
+
RSpec/SubjectDeclaration: # new in 2.5
|
|
205
|
+
Enabled: true
|
|
206
|
+
RSpec/VerifiedDoubleReference: # new in 2.10.0
|
|
207
|
+
Enabled: true
|
|
208
|
+
Capybara/SpecificFinders: # new in 2.13
|
|
209
|
+
Enabled: true
|
|
210
|
+
Capybara/SpecificMatcher: # new in 2.12
|
|
211
|
+
Enabled: true
|
|
212
|
+
FactoryBot/SyntaxMethods: # new in 2.7
|
|
213
|
+
Enabled: true
|
|
214
|
+
RSpecRails/AvoidSetupHook: # new in 2.4
|
|
215
|
+
Enabled: true
|
|
216
|
+
RSpecRails/HaveHttpStatus: # new in 2.12
|
|
217
|
+
Enabled: true
|
|
218
|
+
Rails/ActionControllerFlashBeforeRender: # new in 2.16
|
|
219
|
+
Enabled: true
|
|
220
|
+
Rails/ActionControllerTestCase: # new in 2.14
|
|
221
|
+
Enabled: true
|
|
222
|
+
Rails/ActiveRecordCallbacksOrder: # new in 2.7
|
|
223
|
+
Enabled: true
|
|
224
|
+
Rails/ActiveSupportOnLoad: # new in 2.16
|
|
225
|
+
Enabled: true
|
|
226
|
+
Rails/AddColumnIndex: # new in 2.11
|
|
227
|
+
Enabled: true
|
|
228
|
+
Rails/AfterCommitOverride: # new in 2.8
|
|
229
|
+
Enabled: true
|
|
230
|
+
Rails/AttributeDefaultBlockValue: # new in 2.9
|
|
231
|
+
Enabled: true
|
|
232
|
+
Rails/CompactBlank: # new in 2.13
|
|
233
|
+
Enabled: true
|
|
234
|
+
Rails/DeprecatedActiveModelErrorsMethods: # new in 2.14
|
|
235
|
+
Enabled: true
|
|
236
|
+
Rails/DotSeparatedKeys: # new in 2.15
|
|
237
|
+
Enabled: true
|
|
238
|
+
Rails/DuplicateAssociation: # new in 2.14
|
|
239
|
+
Enabled: true
|
|
240
|
+
Rails/DuplicateScope: # new in 2.14
|
|
241
|
+
Enabled: true
|
|
242
|
+
Rails/DurationArithmetic: # new in 2.13
|
|
243
|
+
Enabled: true
|
|
244
|
+
Rails/EagerEvaluationLogMessage: # new in 2.11
|
|
245
|
+
Enabled: true
|
|
246
|
+
Rails/ExpandedDateRange: # new in 2.11
|
|
247
|
+
Enabled: true
|
|
248
|
+
Rails/FindById: # new in 2.7
|
|
249
|
+
Enabled: true
|
|
250
|
+
Rails/FreezeTime: # new in 2.16
|
|
251
|
+
Enabled: true
|
|
252
|
+
Rails/I18nLazyLookup: # new in 2.14
|
|
253
|
+
Enabled: true
|
|
254
|
+
Rails/I18nLocaleAssignment: # new in 2.11
|
|
255
|
+
Enabled: true
|
|
256
|
+
Rails/I18nLocaleTexts: # new in 2.14
|
|
257
|
+
Enabled: true
|
|
258
|
+
Rails/Inquiry: # new in 2.7
|
|
259
|
+
Enabled: true
|
|
260
|
+
Rails/MailerName: # new in 2.7
|
|
261
|
+
Enabled: true
|
|
262
|
+
Rails/MatchRoute: # new in 2.7
|
|
263
|
+
Enabled: true
|
|
264
|
+
Rails/MigrationClassName: # new in 2.14
|
|
265
|
+
Enabled: true
|
|
266
|
+
Rails/NegateInclude: # new in 2.7
|
|
267
|
+
Enabled: true
|
|
268
|
+
Rails/Pluck: # new in 2.7
|
|
269
|
+
Enabled: true
|
|
270
|
+
Rails/PluckInWhere: # new in 2.7
|
|
271
|
+
Enabled: true
|
|
272
|
+
Rails/RedundantPresenceValidationOnBelongsTo: # new in 2.13
|
|
273
|
+
Enabled: true
|
|
274
|
+
Rails/RedundantTravelBack: # new in 2.12
|
|
275
|
+
Enabled: true
|
|
276
|
+
Rails/RenderInline: # new in 2.7
|
|
277
|
+
Enabled: true
|
|
278
|
+
Rails/RenderPlainText: # new in 2.7
|
|
279
|
+
Enabled: true
|
|
280
|
+
Rails/RootJoinChain: # new in 2.13
|
|
281
|
+
Enabled: true
|
|
282
|
+
Rails/RootPathnameMethods: # new in 2.16
|
|
283
|
+
Enabled: true
|
|
284
|
+
Rails/RootPublicPath: # new in 2.15
|
|
285
|
+
Enabled: true
|
|
286
|
+
Rails/ShortI18n: # new in 2.7
|
|
287
|
+
Enabled: true
|
|
288
|
+
Rails/SquishedSQLHeredocs: # new in 2.8
|
|
289
|
+
Enabled: true
|
|
290
|
+
Rails/StripHeredoc: # new in 2.15
|
|
291
|
+
Enabled: true
|
|
292
|
+
Rails/TimeZoneAssignment: # new in 2.10
|
|
293
|
+
Enabled: true
|
|
294
|
+
Rails/ToFormattedS: # new in 2.15
|
|
295
|
+
Enabled: true
|
|
296
|
+
Rails/ToSWithArgument: # new in 2.16
|
|
297
|
+
Enabled: true
|
|
298
|
+
Rails/TopLevelHashWithIndifferentAccess: # new in 2.16
|
|
299
|
+
Enabled: true
|
|
300
|
+
Rails/TransactionExitStatement: # new in 2.14
|
|
301
|
+
Enabled: true
|
|
302
|
+
Rails/UnusedIgnoredColumns: # new in 2.11
|
|
303
|
+
Enabled: true
|
|
304
|
+
Rails/WhereEquals: # new in 2.9
|
|
305
|
+
Enabled: true
|
|
306
|
+
Rails/WhereExists: # new in 2.7
|
|
307
|
+
Enabled: true
|
|
308
|
+
Rails/WhereMissing: # new in 2.16
|
|
309
|
+
Enabled: true
|
|
310
|
+
Rails/WhereNot: # new in 2.8
|
|
311
|
+
Enabled: true
|
|
312
|
+
Lint/DuplicateMagicComment: # new in 1.37
|
|
313
|
+
Enabled: true
|
|
314
|
+
Style/OperatorMethodCall: # new in 1.37
|
|
315
|
+
Enabled: true
|
|
316
|
+
Style/RedundantEach: # new in 1.38
|
|
317
|
+
Enabled: true
|
|
318
|
+
Style/RedundantStringEscape: # new in 1.37
|
|
319
|
+
Enabled: true
|
|
320
|
+
RSpec/SortMetadata: # new in 2.14
|
|
321
|
+
Enabled: true
|
|
322
|
+
Capybara/NegationMatcher: # new in 2.14
|
|
323
|
+
Enabled: true
|
|
324
|
+
Capybara/SpecificActions: # new in 2.14
|
|
325
|
+
Enabled: true
|
|
326
|
+
FactoryBot/ConsistentParenthesesStyle: # new in 2.14
|
|
327
|
+
Enabled: false # https://github.com/rspec/rspec-rails/issues/2635
|
|
328
|
+
RSpecRails/InferredSpecType: # new in 2.14
|
|
329
|
+
Enabled: true
|
|
330
|
+
Rails/ActionOrder: # new in 2.17
|
|
331
|
+
Enabled: true
|
|
332
|
+
Rails/IgnoredColumnsAssignment: # new in 2.17
|
|
333
|
+
Enabled: true
|
|
334
|
+
Rails/WhereNotWithMultipleConditions: # new in 2.17
|
|
335
|
+
Enabled: true
|
|
336
|
+
Gemspec/DevelopmentDependencies: # new in 1.44
|
|
337
|
+
Enabled: true
|
|
338
|
+
Lint/UselessRescue: # new in 1.43
|
|
339
|
+
Enabled: true
|
|
340
|
+
Style/ArrayIntersect: # new in 1.40
|
|
341
|
+
Enabled: true
|
|
342
|
+
Style/ComparableClamp: # new in 1.44
|
|
343
|
+
Enabled: true
|
|
344
|
+
Style/ConcatArrayLiterals: # new in 1.41
|
|
345
|
+
Enabled: true
|
|
346
|
+
Style/MapToSet: # new in 1.42
|
|
347
|
+
Enabled: true
|
|
348
|
+
Style/MinMaxComparison: # new in 1.42
|
|
349
|
+
Enabled: true
|
|
350
|
+
Style/RedundantConstantBase: # new in 1.40
|
|
351
|
+
Enabled: true
|
|
352
|
+
Style/RedundantDoubleSplatHashBraces: # new in 1.41
|
|
353
|
+
Enabled: true
|
|
354
|
+
Style/RedundantHeredocDelimiterQuotes: # new in 1.45
|
|
355
|
+
Enabled: true
|
|
356
|
+
Capybara/MatchStyle: # new in 2.17
|
|
357
|
+
Enabled: true
|
|
358
|
+
RSpec/DuplicatedMetadata: # new in 2.16
|
|
359
|
+
Enabled: true
|
|
360
|
+
RSpec/PendingWithoutReason: # new in 2.16
|
|
361
|
+
Enabled: true
|
|
362
|
+
FactoryBot/FactoryNameStyle: # new in 2.16
|
|
363
|
+
Enabled: false # https://github.com/rubocop/rubocop-rspec/issues/1587
|
|
364
|
+
RSpecRails/MinitestAssertions: # new in 2.17
|
|
365
|
+
Enabled: true
|
|
366
|
+
Rails/ResponseParsedBody: # new in 2.18
|
|
367
|
+
Enabled: true
|
|
368
|
+
Gemspec/AddRuntimeDependency: # new in 1.65
|
|
369
|
+
Enabled: true
|
|
370
|
+
Lint/DuplicateMatchPattern: # new in 1.50
|
|
371
|
+
Enabled: true
|
|
372
|
+
Lint/DuplicateSetElement: # new in 1.67
|
|
373
|
+
Enabled: true
|
|
374
|
+
Lint/HashNewWithKeywordArgumentsAsDefault: # new in 1.69
|
|
375
|
+
Enabled: true
|
|
376
|
+
Lint/ItWithoutArgumentsInBlock: # new in 1.59
|
|
377
|
+
Enabled: true
|
|
378
|
+
Lint/LiteralAssignmentInCondition: # new in 1.58
|
|
379
|
+
Enabled: true
|
|
380
|
+
Lint/MixedCaseRange: # new in 1.53
|
|
381
|
+
Enabled: true
|
|
382
|
+
Lint/NumericOperationWithConstantResult: # new in 1.69
|
|
383
|
+
Enabled: true
|
|
384
|
+
Lint/RedundantRegexpQuantifiers: # new in 1.53
|
|
385
|
+
Enabled: true
|
|
386
|
+
Lint/UnescapedBracketInRegexp: # new in 1.68
|
|
387
|
+
Enabled: true
|
|
388
|
+
Lint/UselessDefined: # new in 1.69
|
|
389
|
+
Enabled: true
|
|
390
|
+
Lint/UselessNumericOperation: # new in 1.66
|
|
391
|
+
Enabled: true
|
|
392
|
+
Metrics/CollectionLiteralLength: # new in 1.47
|
|
393
|
+
Enabled: true
|
|
394
|
+
Style/AmbiguousEndlessMethodDefinition: # new in 1.68
|
|
395
|
+
Enabled: true
|
|
396
|
+
Style/BitwisePredicate: # new in 1.68
|
|
397
|
+
Enabled: true
|
|
398
|
+
Style/CombinableDefined: # new in 1.68
|
|
399
|
+
Enabled: true
|
|
400
|
+
Style/DataInheritance: # new in 1.49
|
|
401
|
+
Enabled: true
|
|
402
|
+
Style/DigChain: # new in 1.69
|
|
403
|
+
Enabled: true
|
|
404
|
+
Style/DirEmpty: # new in 1.48
|
|
405
|
+
Enabled: true
|
|
406
|
+
Style/ExactRegexpMatch: # new in 1.51
|
|
407
|
+
Enabled: true
|
|
408
|
+
Style/FileEmpty: # new in 1.48
|
|
409
|
+
Enabled: true
|
|
410
|
+
Style/FileNull: # new in 1.69
|
|
411
|
+
Enabled: true
|
|
412
|
+
Style/FileTouch: # new in 1.69
|
|
413
|
+
Enabled: true
|
|
414
|
+
Style/KeywordArgumentsMerging: # new in 1.68
|
|
415
|
+
Enabled: true
|
|
416
|
+
Style/MapIntoArray: # new in 1.63
|
|
417
|
+
Enabled: true
|
|
418
|
+
Style/RedundantArrayConstructor: # new in 1.52
|
|
419
|
+
Enabled: true
|
|
420
|
+
Style/RedundantCurrentDirectoryInPath: # new in 1.53
|
|
421
|
+
Enabled: true
|
|
422
|
+
Style/RedundantFilterChain: # new in 1.52
|
|
423
|
+
Enabled: true
|
|
424
|
+
Style/RedundantInterpolationUnfreeze: # new in 1.66
|
|
425
|
+
Enabled: true
|
|
426
|
+
Style/RedundantLineContinuation: # new in 1.49
|
|
427
|
+
Enabled: true
|
|
428
|
+
Style/RedundantRegexpArgument: # new in 1.53
|
|
429
|
+
Enabled: true
|
|
430
|
+
Style/RedundantRegexpConstructor: # new in 1.52
|
|
431
|
+
Enabled: true
|
|
432
|
+
Style/ReturnNilInPredicateMethodDefinition: # new in 1.53
|
|
433
|
+
Enabled: true
|
|
434
|
+
Style/SafeNavigationChainLength: # new in 1.68
|
|
435
|
+
Enabled: true
|
|
436
|
+
Style/SendWithLiteralMethodName: # new in 1.64
|
|
437
|
+
Enabled: true
|
|
438
|
+
Style/SingleLineDoEndBlock: # new in 1.57
|
|
439
|
+
Enabled: true
|
|
440
|
+
Style/SuperArguments: # new in 1.64
|
|
441
|
+
Enabled: true
|
|
442
|
+
Style/SuperWithArgsParentheses: # new in 1.58
|
|
443
|
+
Enabled: true
|
|
444
|
+
Style/YAMLFileRead: # new in 1.53
|
|
445
|
+
Enabled: true
|
|
446
|
+
Capybara/ClickLinkOrButtonStyle: # new in 2.19
|
|
447
|
+
Enabled: true
|
|
448
|
+
Capybara/RedundantWithinFind: # new in 2.20
|
|
449
|
+
Enabled: true
|
|
450
|
+
Capybara/RSpec/HaveSelector: # new in 2.19
|
|
451
|
+
Enabled: true
|
|
452
|
+
Capybara/RSpec/PredicateMatcher: # new in 2.19
|
|
453
|
+
Enabled: true
|
|
454
|
+
FactoryBot/AssociationStyle: # new in 2.23
|
|
455
|
+
Enabled: true
|
|
456
|
+
FactoryBot/ExcessiveCreateList: # new in 2.25
|
|
457
|
+
Enabled: true
|
|
458
|
+
FactoryBot/FactoryAssociationWithStrategy: # new in 2.23
|
|
459
|
+
Enabled: true
|
|
460
|
+
FactoryBot/IdSequence: # new in 2.24
|
|
461
|
+
Enabled: true
|
|
462
|
+
FactoryBot/RedundantFactoryOption: # new in 2.23
|
|
463
|
+
Enabled: true
|
|
464
|
+
RSpecRails/NegationBeValid: # new in 2.23
|
|
465
|
+
Enabled: true
|
|
466
|
+
RSpecRails/TravelAround: # new in 2.19
|
|
467
|
+
Enabled: true
|
|
468
|
+
RSpec/BeEmpty: # new in 2.20
|
|
469
|
+
Enabled: true
|
|
470
|
+
RSpec/ContainExactly: # new in 2.19
|
|
471
|
+
Enabled: true
|
|
472
|
+
RSpec/EmptyMetadata: # new in 2.24
|
|
473
|
+
Enabled: true
|
|
474
|
+
RSpec/EmptyOutput: # new in 2.29
|
|
475
|
+
Enabled: true
|
|
476
|
+
RSpec/Eq: # new in 2.24
|
|
477
|
+
Enabled: true
|
|
478
|
+
RSpec/ExpectInLet: # new in 2.30
|
|
479
|
+
Enabled: true
|
|
480
|
+
RSpec/IndexedLet: # new in 2.20
|
|
481
|
+
Enabled: true
|
|
482
|
+
RSpec/IsExpectedSpecify: # new in 2.27
|
|
483
|
+
Enabled: true
|
|
484
|
+
RSpec/MatchArray: # new in 2.19
|
|
485
|
+
Enabled: true
|
|
486
|
+
RSpec/MetadataStyle: # new in 2.24
|
|
487
|
+
Enabled: true
|
|
488
|
+
RSpec/ReceiveMessages: # new in 2.23
|
|
489
|
+
Enabled: true
|
|
490
|
+
RSpec/RedundantAround: # new in 2.19
|
|
491
|
+
Enabled: true
|
|
492
|
+
RSpec/RedundantPredicateMatcher: # new in 2.26
|
|
493
|
+
Enabled: true
|
|
494
|
+
RSpec/RemoveConst: # new in 2.26
|
|
495
|
+
Enabled: true
|
|
496
|
+
RSpec/RepeatedSubjectCall: # new in 2.27
|
|
497
|
+
Enabled: true
|
|
498
|
+
RSpec/SkipBlockInsideExample: # new in 2.19
|
|
499
|
+
Enabled: true
|
|
500
|
+
RSpec/SpecFilePathFormat: # new in 2.24
|
|
501
|
+
Enabled: true
|
|
502
|
+
RSpec/SpecFilePathSuffix: # new in 2.24
|
|
503
|
+
Enabled: true
|
|
504
|
+
RSpec/UndescriptiveLiteralsDescription: # new in 2.29
|
|
505
|
+
Enabled: true
|
|
506
|
+
Rails/DangerousColumnNames: # new in 2.21
|
|
507
|
+
Enabled: true
|
|
508
|
+
Rails/EnumSyntax: # new in 2.26
|
|
509
|
+
Enabled: true
|
|
510
|
+
Rails/EnvLocal: # new in 2.22
|
|
511
|
+
Enabled: true
|
|
512
|
+
Rails/RedundantActiveRecordAllMethod: # new in 2.21
|
|
513
|
+
Enabled: true
|
|
514
|
+
Rails/SelectMap: # new in 2.21
|
|
515
|
+
Enabled: true
|
|
516
|
+
Rails/ThreeStateBooleanColumn: # new in 2.19
|
|
517
|
+
Enabled: true
|
|
518
|
+
Rails/UnusedRenderContent: # new in 2.21
|
|
519
|
+
Enabled: true
|
|
520
|
+
Rails/WhereRange: # new in 2.25
|
|
521
|
+
Enabled: true
|
data/.rubocop_todo.yml
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
# This configuration was generated by
|
|
2
|
+
# `rubocop --auto-gen-config`
|
|
3
|
+
# on 2023-02-27 17:35:23 UTC using RuboCop version 1.46.0.
|
|
4
|
+
# The point is for the user to remove these configuration records
|
|
5
|
+
# one by one as the offenses are removed from the code base.
|
|
6
|
+
# Note that changes in the inspected code, or installation of new
|
|
7
|
+
# versions of RuboCop, may require this file to be generated again.
|
|
8
|
+
|
|
9
|
+
# Offense count: 10
|
|
10
|
+
# Configuration parameters: EnforcedStyle, AllowedGems, Include.
|
|
11
|
+
# SupportedStyles: Gemfile, gems.rb, gemspec
|
|
12
|
+
# Include: **/*.gemspec, **/Gemfile, **/gems.rb
|
|
13
|
+
Gemspec/DevelopmentDependencies:
|
|
14
|
+
Exclude:
|
|
15
|
+
- 'arclight.gemspec'
|
|
16
|
+
|
|
17
|
+
# Offense count: 1
|
|
18
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
|
|
19
|
+
Metrics/AbcSize:
|
|
20
|
+
Max: 19
|
|
21
|
+
|
|
22
|
+
# Offense count: 1
|
|
23
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
|
24
|
+
Metrics/CyclomaticComplexity:
|
|
25
|
+
Max: 8
|
|
26
|
+
|
|
27
|
+
# Offense count: 3
|
|
28
|
+
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
|
|
29
|
+
Metrics/MethodLength:
|
|
30
|
+
Max: 11
|
|
31
|
+
|
|
32
|
+
# Offense count: 2
|
|
33
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
|
34
|
+
Metrics/PerceivedComplexity:
|
|
35
|
+
Max: 9
|
|
36
|
+
|
|
37
|
+
# Offense count: 60
|
|
38
|
+
# Configuration parameters: Prefixes, AllowedPatterns.
|
|
39
|
+
# Prefixes: when, with, without
|
|
40
|
+
RSpec/ContextWording:
|
|
41
|
+
Enabled: false
|
|
42
|
+
|
|
43
|
+
# Offense count: 1
|
|
44
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
45
|
+
# Configuration parameters: SkipBlocks, EnforcedStyle.
|
|
46
|
+
# SupportedStyles: described_class, explicit
|
|
47
|
+
RSpec/DescribedClass:
|
|
48
|
+
Exclude:
|
|
49
|
+
- 'spec/presenters/arclight/show_presenter_spec.rb'
|
|
50
|
+
|
|
51
|
+
# Offense count: 60
|
|
52
|
+
# Configuration parameters: CountAsOne.
|
|
53
|
+
RSpec/ExampleLength:
|
|
54
|
+
Max: 49
|
|
55
|
+
|
|
56
|
+
# Offense count: 112
|
|
57
|
+
RSpec/MultipleExpectations:
|
|
58
|
+
Max: 22
|
|
59
|
+
|
|
60
|
+
# Offense count: 37
|
|
61
|
+
# Configuration parameters: AllowSubject.
|
|
62
|
+
RSpec/MultipleMemoizedHelpers:
|
|
63
|
+
Max: 10
|
|
64
|
+
|
|
65
|
+
# Offense count: 22
|
|
66
|
+
# Configuration parameters: AllowedGroups.
|
|
67
|
+
RSpec/NestedGroups:
|
|
68
|
+
Max: 5
|
|
69
|
+
|
|
70
|
+
# Offense count: 2
|
|
71
|
+
RSpec/PendingWithoutReason:
|
|
72
|
+
Exclude:
|
|
73
|
+
- 'spec/features/document_tools_spec.rb'
|
|
74
|
+
- 'spec/features/google_form_request_spec.rb'
|
|
75
|
+
|
|
76
|
+
# Offense count: 5
|
|
77
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
78
|
+
# Configuration parameters: Strict, EnforcedStyle, AllowedExplicitMatchers.
|
|
79
|
+
# SupportedStyles: inflected, explicit
|
|
80
|
+
RSpec/PredicateMatcher:
|
|
81
|
+
Exclude:
|
|
82
|
+
- 'spec/helpers/arclight_helper_spec.rb'
|
|
83
|
+
- 'spec/lib/arclight/year_range_spec.rb'
|
|
84
|
+
|
|
85
|
+
# Offense count: 1
|
|
86
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
87
|
+
# Configuration parameters: NilOrEmpty, NotPresent, UnlessPresent.
|
|
88
|
+
Rails/Blank:
|
|
89
|
+
Exclude:
|
|
90
|
+
- 'lib/arclight/repository.rb'
|
|
91
|
+
|
|
92
|
+
# Offense count: 1
|
|
93
|
+
# Configuration parameters: Include.
|
|
94
|
+
# Include: app/helpers/**/*.rb
|
|
95
|
+
Rails/HelperInstanceVariable:
|
|
96
|
+
Exclude:
|
|
97
|
+
- 'app/helpers/arclight_helper.rb'
|
|
98
|
+
|
|
99
|
+
# Offense count: 1
|
|
100
|
+
Rails/OutputSafety:
|
|
101
|
+
Exclude:
|
|
102
|
+
- 'app/helpers/arclight/field_config_helpers.rb'
|
|
103
|
+
|
|
104
|
+
# Offense count: 6
|
|
105
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
106
|
+
# Configuration parameters: Include.
|
|
107
|
+
# Include: **/Rakefile, **/*.rake
|
|
108
|
+
Rails/RakeEnvironment:
|
|
109
|
+
Exclude:
|
|
110
|
+
- 'lib/tasks/index.rake'
|
|
111
|
+
- 'tasks/arclight.rake'
|
|
112
|
+
|
|
113
|
+
# Offense count: 1
|
|
114
|
+
Security/Open:
|
|
115
|
+
Exclude:
|
|
116
|
+
- 'lib/tasks/index.rake'
|
|
117
|
+
|
|
118
|
+
# Offense count: 1
|
|
119
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
120
|
+
Style/RedundantConstantBase:
|
|
121
|
+
Exclude:
|
|
122
|
+
- 'spec/spec_helper.rb'
|
data/.solr_wrapper
ADDED
data/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
## Contributing
|
|
2
|
+
|
|
3
|
+
ArcLight is a collaborative open source project where contributions are welcome. This contributing guide is borrowed in part from the [GeoBlacklight Contributing Guide](https://github.com/geoblacklight/geoblacklight/blob/main/CONTRIBUTING.md).
|
|
4
|
+
|
|
5
|
+
### Reporting issues
|
|
6
|
+
|
|
7
|
+
Did you find a bug in ArcLight or interested in a new feature? Please make sure to add an issue for it in the [issue tracker](https://github.com/projectblacklight/arclight/issues) as follows:
|
|
8
|
+
|
|
9
|
+
- Make sure you have a [GitHub account](https://github.com/signup/free)
|
|
10
|
+
- Submit a new [Github issue](https://github.com/projectblacklight/arclight/issues) by:
|
|
11
|
+
- Clearly describing the issue
|
|
12
|
+
- Provide a descriptive summary
|
|
13
|
+
- Explain the expected behavior
|
|
14
|
+
- Explain the actual behavior
|
|
15
|
+
- Provide steps to reproduce the actual behavior
|
|
16
|
+
|
|
17
|
+
### Contributing code or documentation
|
|
18
|
+
|
|
19
|
+
ArcLight also welcomes code and documentation contributions. We follow the [pull request](https://help.github.com/articles/using-pull-requests/) model for contributing on GitHub.
|
|
20
|
+
|
|
21
|
+
#### Pull request overview
|
|
22
|
+
|
|
23
|
+
1. Fork it ( http://github.com/projectblacklight/arclight/fork )
|
|
24
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
|
25
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
|
26
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
|
27
|
+
5. Create new Pull Request
|
|
28
|
+
|
|
29
|
+
#### Merging Changes
|
|
30
|
+
|
|
31
|
+
Here are some general rules to follow for merging pull requests.
|
|
32
|
+
|
|
33
|
+
- It is considered "poor form" to merge your own request.
|
|
34
|
+
- Please take the time to review the changes and get a sense of what is being changed. Things to consider:
|
|
35
|
+
- Does the commit message explain what is going on?
|
|
36
|
+
- Does the code changes have tests? _Not all changes need new tests, some changes are refactorings_
|
|
37
|
+
- Do all new methods, modules, and classes have comments? Do changed methods, modules, and classes have comments?
|
|
38
|
+
- Does the commit contain more than it should? Are two separate concerns being addressed in one commit?
|
|
39
|
+
- Did the Travis tests complete successfully?
|
|
40
|
+
- If you are uncertain, bring other contributors into the conversation by creating a comment that includes their `@username`.
|
|
41
|
+
- If you like the pull request, but want others to chime in, create a +1 comment and tag a user.
|
|
42
|
+
|
|
43
|
+
If you wish to ask questions or participate further, see our general [README](https://github.com/projectblacklight/arclight/blob/main/README.md).
|