lib/reek/configuration/configuration_file_finder.rb in reek-4.7.3 vs lib/reek/configuration/configuration_file_finder.rb in reek-4.8.0

- old
+ new

@@ -18,12 +18,12 @@ # The order in which ConfigurationFileFinder tries to find such a # configuration file is exactly like above. module ConfigurationFileFinder TOO_MANY_CONFIGURATION_FILES_MESSAGE = <<-MESSAGE.freeze - Error: Found multiple configuration files %s - while scanning directory %s. + Error: Found multiple configuration files %<files>s + while scanning directory %<directory>s. Reek supports only one configuration file. You have 2 options now: 1) Remove all offending files. 2) Be specific about which one you want to load via the -c switch. @@ -109,10 +109,10 @@ # # @return [undefined] # def escalate_too_many_configuration_files(found, directory) offensive_files = found.map { |file| "'#{file.basename}'" }.join(', ') - warn format(TOO_MANY_CONFIGURATION_FILES_MESSAGE, offensive_files, directory) + warn format(TOO_MANY_CONFIGURATION_FILES_MESSAGE, files: offensive_files, directory: directory) exit 1 end end end end