Skip to content

Commit

Permalink
style: disabled rubocop warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jonrandahl committed Jan 6, 2025
1 parent 9bec514 commit 8b5ba75
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

# :nodoc:
class ApplicationController < ActionController::Base
class ApplicationController < ActionController::Base # rubocop:disable Metrics/ClassLength
include Rails.application.routes.url_helpers
include ActionView::Helpers::TranslationHelper
# Prevent CSRF attacks by raising an exception.
Expand Down Expand Up @@ -111,7 +111,7 @@ def reset_response

private

# rubocop:disable Metrics/AbcSize
# rubocop:disable Metrics/AbcSize, Metrics/MethodLength
def detailed_request_log(duration)
env = request.env

Expand Down Expand Up @@ -139,11 +139,11 @@ def detailed_request_log(duration)
Rails.logger.info(JSON.generate(log_fields))
end
end
# rubocop:enable Metrics/AbcSize
# rubocop:enable Metrics/AbcSize, Metrics/MethodLength

# Notify subscriber(s) of an internal error event with the payload of the
# exception once done
# @param [Exception] exp the exception that caused the error
# @param [exc] exp the exception that caused the error
# @return [ActiveSupport::Notifications::Event] provides an object-oriented
# interface to the event
# rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity, Metrics/MethodLength
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/compare_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def render_print
render 'compare/print', layout: 'print'
end

def perform_query(user_compare_selections)
def perform_query(user_compare_selections) # rubocop:disable Metrics/MethodLength
query_results = {}
base_selection = UserSelections.new(
__safe_params: {
Expand Down

0 comments on commit 8b5ba75

Please sign in to comment.