Skip to content

Commit

Permalink
Update language spec to 3.2 and autocorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Jul 3, 2024
1 parent 2738713 commit 5c63fc0
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 25 deletions.
42 changes: 21 additions & 21 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,32 +9,32 @@ require:
- rubocop-factory_bot

AllCops:
TargetRubyVersion: 3.1
TargetRubyVersion: 3.2
DisplayCopNames: true
Exclude:
- 'bin/**/*'
- 'db/**/*'
- 'config/**/*'
- 'vendor/**/*'
- 'spec/fixtures/**/*'
- "bin/**/*"
- "db/**/*"
- "config/**/*"
- "vendor/**/*"
- "spec/fixtures/**/*"

Rails:
Enabled: true

Layout/LineLength:
Max: 120
Exclude:
- 'app/controllers/concerns/search_across_blacklight_overrides.rb'
- 'app/models/spotlight/dor/indexer.rb'
- 'lib/traject/dor_config.rb'
- 'spec/features/indexing_integration_spec.rb'
- 'spec/models/spotlight/dor/indexer_spec.rb'
- 'spec/features/bibliography_formatting_spec.rb'
- "app/controllers/concerns/search_across_blacklight_overrides.rb"
- "app/models/spotlight/dor/indexer.rb"
- "lib/traject/dor_config.rb"
- "spec/features/indexing_integration_spec.rb"
- "spec/models/spotlight/dor/indexer_spec.rb"
- "spec/features/bibliography_formatting_spec.rb"

Style/PercentLiteralDelimiters:
PreferredDelimiters:
'%i': '()'
'%w': '()'
"%i": "()"
"%w": "()"

Style/StringLiterals:
Enabled: true
Expand All @@ -54,7 +54,7 @@ Style/HashTransformValues:

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

Capybara:
Enabled: false
Expand All @@ -71,21 +71,21 @@ Bundler/OrderedGems:
RSpec/ExampleLength:
Max: 10
Exclude:
- 'spec/features/indexing_integration_spec.rb'
- "spec/features/indexing_integration_spec.rb"

RSpec/MultipleMemoizedHelpers:
Enabled: false

Metrics/BlockLength:
Exclude:
- 'app/controllers/catalog_controller.rb'
- 'app/controllers/search_across_controller.rb'
- 'app/models/spotlight/dor/indexer.rb'
- 'spec/**/*'
- "app/controllers/catalog_controller.rb"
- "app/controllers/search_across_controller.rb"
- "app/models/spotlight/dor/indexer.rb"
- "spec/**/*"

Performance/RedundantBlockCall:
Exclude:
- 'lib/traject/macros/**/*'
- "lib/traject/macros/**/*"

Gemspec/DeprecatedAttributeAssignment: # new in 1.30
Enabled: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ def render_grouped_document_index(response = @response)
view_context.render_document_index(exhibits)
end

def opensearch_catalog_url(*args)
view_context.spotlight.opensearch_search_across_url(*args)
def opensearch_catalog_url(*)
view_context.spotlight.opensearch_search_across_url(*)
end

def start_over_path(*_args)
Expand Down
4 changes: 2 additions & 2 deletions app/controllers/spotlight/exhibits_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
module Spotlight
# Override the upstream HomePagesController in order to inject range limit behaviors
class ExhibitsController
def search_action_url(*args)
main_app.search_search_across_url(*args)
def search_action_url(*)
main_app.search_search_across_url(*)
end

def blacklight_config
Expand Down

0 comments on commit 5c63fc0

Please sign in to comment.