Skip to content

Commit

Permalink
Remove require from custom cop and ignore custom cops when eager loading
Browse files Browse the repository at this point in the history
  • Loading branch information
RandomTannenbaum committed Feb 18, 2025
1 parent 08b7f5e commit 1535174
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Application < Rails::Application
# Please, add to the `ignore` list any other `lib` subdirectories that do
# not contain `.rb` files, or that should not be reloaded or eager loaded.
# Common ones are `templates`, `generators`, or `middleware`, for example.
config.autoload_lib(ignore: %w[assets tasks templates])
config.autoload_lib(ignore: %w[assets tasks templates custom_cops])

# Configuration for the application, engines, and railties goes here.
#
Expand Down
2 changes: 0 additions & 2 deletions lib/custom_cops/translated_haml_files.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'rubocop'

module CustomCops
class TranslatedHamlFiles < RuboCop::Cop::Base
MSG = 'Each line in a HAML file must start with `=`, `-`, or `%`.'.freeze
Expand Down

0 comments on commit 1535174

Please sign in to comment.