Browse Source

Disable `Rails/ApplicationController` for `HealthController` (#28705)

Matt Jankowski 5 months ago
parent
commit
575ab085be
2 changed files with 1 additions and 6 deletions
  1. 0 5
      .rubocop_todo.yml
  2. 1 1
      app/controllers/health_controller.rb

+ 0 - 5
.rubocop_todo.yml

@@ -56,11 +56,6 @@ RSpec/MultipleMemoizedHelpers:
 RSpec/NestedGroups:
   Max: 6
 
-# This cop supports unsafe autocorrection (--autocorrect-all).
-Rails/ApplicationController:
-  Exclude:
-    - 'app/controllers/health_controller.rb'
-
 # Configuration parameters: Include.
 # Include: app/models/**/*.rb
 Rails/HasAndBelongsToMany:

+ 1 - 1
app/controllers/health_controller.rb

@@ -1,6 +1,6 @@
 # frozen_string_literal: true
 
-class HealthController < ActionController::Base
+class HealthController < ActionController::Base # rubocop:disable Rails/ApplicationController
   def show
     render plain: 'OK'
   end