diff --git a/core/runtime/src/main/java/com/buschmais/jqassistant/core/runtime/api/configuration/ConfigurationMappingLoader.java b/core/runtime/src/main/java/com/buschmais/jqassistant/core/runtime/api/configuration/ConfigurationMappingLoader.java index 4e4fd1b9a..effb89df6 100644 --- a/core/runtime/src/main/java/com/buschmais/jqassistant/core/runtime/api/configuration/ConfigurationMappingLoader.java +++ b/core/runtime/src/main/java/com/buschmais/jqassistant/core/runtime/api/configuration/ConfigurationMappingLoader.java @@ -40,7 +40,7 @@ public class ConfigurationMappingLoader { public static final List DEFAULT_CONFIG_LOCATIONS = List.of(".jqassistant.yml", ".jqassistant.yaml", ".jqassistant") .stream() .map(Paths::get) - .collect(toList()); + .collect(toUnmodifiableList()); /** * The ordinal for config sources from the user home. @@ -264,7 +264,7 @@ private List getExternalYamlConfigSources(Path configLocationPath, return emptyList(); } if (file.isDirectory()) { - log.info("Loading configuration from directory '{}'.", configLocationPath.toAbsolutePath()); + log.info("Scanning for configuration files in directory '{}'.", configLocationPath.toAbsolutePath()); List configurationFiles = findYamlConfigurationFiles(configLocationPath); return configurationFiles.stream() .map(path -> getYamlConfigSource(path, ordinal))