diff --git a/config/application.rb b/config/application.rb index 2c72bdc2c..fc2535755 100644 --- a/config/application.rb +++ b/config/application.rb @@ -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. # diff --git a/lib/custom_cops/translated_haml_files.rb b/lib/custom_cops/translated_haml_files.rb index 6a26c8e81..89a80ac18 100644 --- a/lib/custom_cops/translated_haml_files.rb +++ b/lib/custom_cops/translated_haml_files.rb @@ -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