lib/reek/configuration/app_configuration.rb in reek-4.6.0 vs lib/reek/configuration/app_configuration.rb in reek-4.6.1
- old
+ new
@@ -60,10 +60,10 @@
hit = directory_directives.directive_for(source_via)
hit ? default_directive.merge(hit) : default_directive
end
def path_excluded?(path)
- excluded_paths.include?(path)
+ excluded_paths.map(&:expand_path).include?(path.expand_path)
end
def load_values(configuration_hash)
configuration_hash.each do |key, value|
if key == EXCLUDE_PATHS_KEY