arclight 0.1.0 → 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 +14 -4
- data/.github/workflows/ruby.yml +51 -0
- data/.gitignore +2 -0
- data/.rspec +0 -1
- data/.rubocop.yml +503 -48
- data/.rubocop_todo.yml +122 -0
- data/.solr_wrapper +2 -1
- data/CONTRIBUTING.md +5 -5
- data/CONTRIBUTORS.md +79 -0
- data/Gemfile +15 -10
- data/README.md +47 -32
- data/Rakefile +0 -1
- 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 -25
- 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 -9
- 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 +4 -3
- data/app/assets/stylesheets/arclight/build.scss +4 -0
- data/app/assets/stylesheets/arclight/modules/hierarchy_and_online_contents.scss +117 -136
- data/app/assets/stylesheets/arclight/modules/highlights.scss +3 -2
- data/app/assets/stylesheets/arclight/modules/icons.scss +20 -0
- data/app/assets/stylesheets/arclight/modules/layout.scss +203 -16
- data/app/assets/stylesheets/arclight/modules/mastheads.scss +27 -45
- data/app/assets/stylesheets/arclight/modules/repositories.scss +3 -7
- data/app/assets/stylesheets/arclight/modules/repository_card.scss +5 -50
- data/app/assets/stylesheets/arclight/modules/search_form.scss +9 -0
- data/app/assets/stylesheets/arclight/modules/search_results.scss +200 -25
- data/app/assets/stylesheets/arclight/modules/show_collection.scss +21 -61
- 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 -2
- 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/{views/catalog/_search_results_repository.html.erb → components/arclight/constraints_component.html.erb} +2 -1
- 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 +4 -4
- 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 +55 -120
- data/app/models/arclight/document_downloads.rb +122 -0
- data/app/models/arclight/parent.rb +9 -9
- data/app/models/arclight/parents.rb +9 -4
- 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 +8 -3
- data/app/models/concerns/arclight/catalog.rb +33 -11
- data/app/models/concerns/arclight/search_behavior.rb +22 -21
- data/app/models/concerns/arclight/solr_document.rb +88 -59
- data/app/presenters/arclight/show_presenter.rb +34 -7
- data/app/views/arclight/_requests.html.erb +7 -0
- data/app/views/arclight/repositories/_repository.html.erb +22 -41
- data/app/views/arclight/repositories/index.html.erb +5 -0
- data/app/views/arclight/repositories/show.html.erb +7 -8
- 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 +4 -5
- 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 +16 -7
- data/app/views/shared/_breadcrumbs.html.erb +3 -15
- data/app/views/shared/_main_menu_links.html.erb +1 -1
- data/arclight.gemspec +22 -17
- 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 +90 -55
- data/config/routes.rb +1 -1
- data/docker-compose.yml +16 -0
- data/lib/arclight/digital_object.rb +2 -1
- data/lib/arclight/engine.rb +23 -31
- data/lib/arclight/exceptions.rb +1 -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 +24 -20
- data/lib/arclight/normalized_id.rb +7 -2
- data/lib/arclight/normalized_title.rb +3 -0
- data/lib/arclight/repository.rb +72 -47
- 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 +1 -1
- data/lib/arclight/year_range.rb +13 -4
- data/lib/arclight.rb +6 -1
- data/lib/generators/arclight/install_generator.rb +110 -10
- data/lib/generators/arclight/templates/arclight.scss +6 -3
- data/lib/generators/arclight/templates/catalog_controller.rb +249 -173
- data/lib/generators/arclight/templates/config/downloads.yml +12 -0
- data/lib/generators/arclight/templates/config/locales/arclight.en.yml +61 -0
- data/lib/generators/arclight/templates/config/repositories.yml +42 -31
- data/lib/generators/arclight/update_generator.rb +1 -1
- data/lib/tasks/index.rake +25 -28
- data/package.json +15 -9
- data/solr/conf/schema.xml +101 -332
- data/solr/conf/solrconfig.xml +99 -164
- data/tasks/arclight.rake +22 -11
- data/template.rb +6 -11
- metadata +230 -105
- data/.travis.yml +0 -33
- data/app/assets/javascripts/arclight/collection_context.js +0 -18
- data/app/assets/javascripts/arclight/collection_navigation.js +0 -114
- data/app/assets/javascripts/arclight/collection_scrollspy.js +0 -6
- data/app/assets/javascripts/arclight/component_ancestors.js +0 -56
- data/app/assets/javascripts/arclight/oembed_viewer.js +0 -39
- data/app/assets/javascripts/arclight/truncator.js.erb +0 -23
- data/app/assets/stylesheets/arclight/bootstrap_overrides.scss +0 -3
- data/app/assets/stylesheets/arclight/modules/sidebar.scss +0 -16
- data/app/controllers/concerns/arclight/field_config_helpers.rb +0 -86
- data/app/factories/blacklight_field_configuration_factory.rb +0 -29
- data/app/views/arclight/repositories/_in_person_repository.html.erb +0 -19
- data/app/views/arclight/viewers/_oembed.html.erb +0 -7
- data/app/views/catalog/_arclight_document_index_header.html.erb +0 -13
- data/app/views/catalog/_arclight_document_index_header_online_contents_default.html.erb +0 -0
- data/app/views/catalog/_arclight_document_show_header.html.erb +0 -15
- data/app/views/catalog/_arclight_document_show_header_collection.html.erb +0 -12
- data/app/views/catalog/_arclight_index_compact_default.html.erb +0 -15
- data/app/views/catalog/_arclight_online_content_indicator.html.erb +0 -5
- data/app/views/catalog/_arclight_rangelimit.html.erb +0 -24
- data/app/views/catalog/_arclight_viewer_default.html.erb +0 -1
- data/app/views/catalog/_collection_contents.html.erb +0 -12
- data/app/views/catalog/_collection_count.html.erb +0 -7
- data/app/views/catalog/_collection_downloads.html.erb +0 -17
- data/app/views/catalog/_collection_online_contents.html.erb +0 -17
- data/app/views/catalog/_collection_overview.html.erb +0 -7
- data/app/views/catalog/_component_overview.html.erb +0 -46
- data/app/views/catalog/_context_card.html.erb +0 -27
- data/app/views/catalog/_context_sidebar.html.erb +0 -8
- data/app/views/catalog/_custom_metadata.html.erb +0 -16
- data/app/views/catalog/_home.html.erb +0 -1
- data/app/views/catalog/_index_breadcrumb_default.html.erb +0 -3
- data/app/views/catalog/_index_default.html.erb +0 -17
- data/app/views/catalog/_index_header.html.erb +0 -7
- data/app/views/catalog/_index_header_hierarchy_default.html.erb +0 -42
- data/app/views/catalog/_index_header_online_contents_default.html.erb +0 -1
- data/app/views/catalog/_index_hierarchy_default.html.erb +0 -28
- data/app/views/catalog/_index_online_contents_default.html.erb +0 -6
- data/app/views/catalog/_results_histogram.html.erb +0 -10
- data/app/views/catalog/_search_results.html.erb +0 -31
- data/app/views/catalog/_search_within_form.html.erb +0 -16
- data/app/views/catalog/_show_breadcrumbs_default.html.erb +0 -7
- data/app/views/catalog/_show_collection.html.erb +0 -40
- data/app/views/catalog/_show_component_sidebar.html.erb +0 -12
- data/app/views/catalog/_show_default.html.erb +0 -32
- data/app/views/catalog/_show_header.html.erb +0 -5
- data/app/views/catalog/_show_sidebar.html.erb +0 -30
- data/app/views/layouts/catalog_result.html.erb +0 -7
- data/app/views/shared/_context_sidebar.html.erb +0 -8
- data/app/views/shared/_header_navbar.html.erb +0 -54
- data/lib/arclight/custom_component.rb +0 -98
- data/lib/arclight/custom_document.rb +0 -93
- data/lib/arclight/indexer.rb +0 -9
- data/lib/arclight/shared_indexing_behavior.rb +0 -97
- data/lib/arclight/shared_terminology_behavior.rb +0 -65
- data/lib/arclight/solr_ead_indexer_ext.rb +0 -159
- data/lib/arclight/viewer.rb +0 -45
- data/lib/arclight/viewers/oembed.rb +0 -56
- data/lib/generators/arclight/templates/arclight.js +0 -2
- data/solr/conf/scripts.conf +0 -24
- data/vendor/assets/javascripts/responsiveTruncator.js +0 -69
- data/vendor/assets/javascripts/stickyfill.js +0 -480
- /data/app/assets/images/{blacklight → arclight}/logo.png +0 -0
- /data/{app/views/catalog/_arclight_document_index_header_hierarchy_default.html.erb → config/repositories.yml} +0 -0
data/.rubocop.yml
CHANGED
|
@@ -1,66 +1,521 @@
|
|
|
1
|
-
|
|
1
|
+
plugins:
|
|
2
|
+
- rubocop-factory_bot
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
- 'vendor/**/*'
|
|
10
|
-
TargetRubyVersion: 2.4
|
|
11
|
-
DisplayCopNames: true
|
|
4
|
+
require:
|
|
5
|
+
- rubocop-rspec
|
|
6
|
+
- rubocop-rails
|
|
7
|
+
- rubocop-rake
|
|
8
|
+
- rubocop-rspec_rails
|
|
9
|
+
- rubocop-capybara
|
|
12
10
|
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
inherit_from:
|
|
12
|
+
- .rubocop_todo.yml
|
|
15
13
|
|
|
16
|
-
|
|
17
|
-
Max: 120
|
|
14
|
+
AllCops:
|
|
18
15
|
Exclude:
|
|
19
|
-
-
|
|
20
|
-
-
|
|
21
|
-
-
|
|
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
|
|
22
24
|
|
|
23
25
|
Metrics/ModuleLength:
|
|
24
|
-
Max: 120
|
|
25
|
-
|
|
26
|
-
Metrics/ClassLength:
|
|
27
|
-
Max: 120
|
|
28
|
-
|
|
29
|
-
Metrics/BlockLength:
|
|
30
26
|
Exclude:
|
|
31
|
-
-
|
|
32
|
-
-
|
|
33
|
-
- 'spec/**/*'
|
|
34
|
-
- 'lib/arclight/custom_document.rb'
|
|
27
|
+
- "app/helpers/arclight_helper.rb"
|
|
28
|
+
- "app/models/concerns/arclight/solr_document.rb"
|
|
35
29
|
|
|
36
|
-
Metrics/
|
|
30
|
+
Metrics/BlockLength:
|
|
37
31
|
Exclude:
|
|
38
|
-
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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/**/*"
|
|
42
40
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
-
|
|
41
|
+
Naming/PredicateName:
|
|
42
|
+
ForbiddenPrefixes:
|
|
43
|
+
- is_
|
|
46
44
|
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
Layout/LineLength:
|
|
46
|
+
Max: 160
|
|
49
47
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
- 'spec/lib/arclight/viewers/oembed_spec.rb' # Default file path is o_embed, and that looks weird
|
|
48
|
+
Rails:
|
|
49
|
+
Enabled: true
|
|
53
50
|
|
|
54
|
-
|
|
51
|
+
Bundler/DuplicatedGem:
|
|
55
52
|
Enabled: false
|
|
56
53
|
|
|
57
|
-
|
|
58
|
-
Max: 4
|
|
59
|
-
|
|
60
|
-
Style/Documentation:
|
|
54
|
+
Style/FormatStringToken:
|
|
61
55
|
Exclude:
|
|
62
|
-
-
|
|
63
|
-
- 'lib/arclight.rb'
|
|
56
|
+
- "spec/test_app_templates/lib/generators/test_app_generator.rb"
|
|
64
57
|
|
|
65
|
-
|
|
58
|
+
Gemspec/DeprecatedAttributeAssignment: # new in 1.30
|
|
59
|
+
Enabled: true
|
|
60
|
+
Gemspec/RequireMFA: # new in 1.23
|
|
66
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'
|