lib/reek/configuration/app_configuration.rb in reek-3.10.1 vs lib/reek/configuration/app_configuration.rb in reek-3.10.2
- old
+ new
@@ -1,7 +1,6 @@
require 'pathname'
-require 'private_attr/everywhere'
require_relative './configuration_file_finder'
require_relative './configuration_validator'
require_relative './default_directive'
require_relative './directory_directives'
require_relative './excluded_paths'
@@ -12,12 +11,11 @@
# Reek's application configuration.
#
# @public
class AppConfiguration
include ConfigurationValidator
- EXCLUDE_PATHS_KEY = 'exclude_paths'
- private_attr_writer :directory_directives, :default_directive, :excluded_paths
+ EXCLUDE_PATHS_KEY = 'exclude_paths'.freeze
# Instantiate a configuration via given path.
#
# @param path [Pathname] the path to the config file
#
@@ -100,9 +98,11 @@
def path_excluded?(path)
excluded_paths.include?(path)
end
private
+
+ attr_writer :directory_directives, :default_directive, :excluded_paths
def directory_directives
@directory_directives ||= {}.extend(DirectoryDirectives)
end