Skip to content

Commit

Permalink
Reformat with rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
thatbudakguy committed Aug 30, 2024
1 parent ddf5cb2 commit a0a6cad
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
7 changes: 7 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ RSpec/MultipleMemoizedHelpers:
Exclude:
- "spec/lib/earthworks/harvester_spec.rb"

RSpec/MultipleExpectations:
Enabled: false

Metrics/ClassLength:
Exclude:
- "app/controllers/catalog_controller.rb"

Gemspec/DeprecatedAttributeAssignment: # new in 1.30
Enabled: true
Gemspec/RequireMFA: # new in 1.23
Expand Down
3 changes: 1 addition & 2 deletions app/components/code_snippet_modal_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@ def vector_data?
'vector data']

# If the intersection of these arrays is not empty, then there is at least one vector type value
!(@document[Settings.FIELDS.RESOURCE_TYPE].map(&:downcase) &
vector_types).empty?
!!@document[Settings.FIELDS.RESOURCE_TYPE].map(&:downcase).intersect?(vector_types)
end

def raster_data?
Expand Down
8 changes: 4 additions & 4 deletions app/components/document/sidebar_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ module Document
class SidebarComponent < Geoblacklight::Document::SidebarComponent
def components
[
Geoblacklight::LoginLinkComponent.new(document: document),
Geoblacklight::StaticMapComponent.new(document: document),
DownloadLinksComponent.new(document: document),
AlsoAvailableComponent.new(document: document)
Geoblacklight::LoginLinkComponent.new(document:),
Geoblacklight::StaticMapComponent.new(document:),
DownloadLinksComponent.new(document:),
AlsoAvailableComponent.new(document:)
]
end
end
Expand Down

0 comments on commit a0a6cad

Please sign in to comment.