-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Crm457-2353: Clean up Rubocop setup (#885)
## Description of change [Link to relevant ticket](https://dsdmoj.atlassian.net/browse/CRM457-2353) ## Notes for reviewer
- Loading branch information
Showing
17 changed files
with
68 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,7 @@ class Application < Rails::Application | |
# NOTE: govuk_design_system_formbuilder monkey patch in lib folder is not | ||
# autoloaded because it the gem itself uses a non-standard/convention filename | ||
# to classname pattern. | ||
config.autoload_lib(ignore: %w(assets tasks govuk_design_system_formbuilder)) | ||
config.autoload_lib(ignore: %w[assets tasks govuk_design_system_formbuilder]) | ||
|
||
# Configuration for the application, engines, and railties goes here. | ||
# | ||
|
@@ -56,13 +56,13 @@ class Application < Rails::Application | |
config.active_job.queue_adapter = :sidekiq | ||
config.action_mailer.deliver_later_queue_name = :mailers | ||
|
||
config.exceptions_app = ->(env) { | ||
config.exceptions_app = lambda { |env| | ||
ErrorsController.action(:show).call(env) | ||
} | ||
|
||
config.active_model.i18n_customize_full_message = true | ||
|
||
config.assets.paths << Rails.root.join("node_modules/govuk-frontend/dist/govuk/assets") | ||
config.assets.paths << Rails.root.join('node_modules/govuk-frontend/dist/govuk/assets') | ||
|
||
config.x.contact.support_email = '[email protected]' | ||
config.x.application.name = 'Assess a crime form' | ||
|
@@ -72,11 +72,11 @@ class Application < Rails::Application | |
config.x.analytics.analytics_consent_expiration = 1.year | ||
config.x.rfi.working_day_window = 10 | ||
config.x.redis_url = if ENV['REDIS_HOST'].present? && ENV['REDIS_PASSWORD'].present? | ||
protocol = ENV.fetch("REDIS_PROTOCOL", "rediss") | ||
password = ENV.fetch('REDIS_PASSWORD') | ||
host = ENV.fetch('REDIS_HOST') | ||
"#{protocol}://:#{password}@#{host}:6379" | ||
end | ||
protocol = ENV.fetch('REDIS_PROTOCOL', 'rediss') | ||
password = ENV.fetch('REDIS_PASSWORD') | ||
host = ENV.fetch('REDIS_HOST') | ||
"#{protocol}://:#{password}@#{host}:6379" | ||
end | ||
|
||
config.x.contact.feedback_url = 'tbc' | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# frozen_string_literal: true | ||
|
||
ActionMailer::Base.add_delivery_method :govuk_notify, GovukNotifyRails::Delivery, | ||
api_key: ENV.fetch('GOVUK_NOTIFY_API_KEY', nil) | ||
api_key: ENV.fetch('GOVUK_NOTIFY_API_KEY', nil) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
require 'pagy/extras/array' | ||
|
||
Pagy::DEFAULT[:limit] = 10 | ||
Pagy::I18n.load(locale: "en", filepath: Rails.root.join("config/locales/en/pagy.yml")) | ||
Pagy::I18n.load(locale: 'en', filepath: Rails.root.join('config/locales/en/pagy.yml')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters