From 97df85a30ec3b794efe027219cf0736455f714a8 Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Thu, 23 Jun 2022 09:14:06 +0100 Subject: [PATCH] Allow to fix a single file --- app/Factories/ConfigurationFactory.php | 1 - app/Factories/ConfigurationResolverFactory.php | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Factories/ConfigurationFactory.php b/app/Factories/ConfigurationFactory.php index 9fc0c2b8..8ab3bf03 100644 --- a/app/Factories/ConfigurationFactory.php +++ b/app/Factories/ConfigurationFactory.php @@ -41,7 +41,6 @@ public static function preset($rules) $localConfiguration = resolve(ConfigurationJsonRepository::class); $finder = Finder::create() - ->in($path) ->notName(static::$notName) ->exclude(static::$exclude) ->ignoreDotFiles(true) diff --git a/app/Factories/ConfigurationResolverFactory.php b/app/Factories/ConfigurationResolverFactory.php index 81e8d487..62fbd594 100644 --- a/app/Factories/ConfigurationResolverFactory.php +++ b/app/Factories/ConfigurationResolverFactory.php @@ -60,6 +60,7 @@ public static function fromIO($input, $output) ]), 'diff' => $output->isVerbose(), 'dry-run' => $input->getOption('test'), + 'path' => [$path], 'path-mode' => ConfigurationResolver::PATH_MODE_OVERRIDE, 'cache-file' => implode(DIRECTORY_SEPARATOR, [ realpath(sys_get_temp_dir()), @@ -69,7 +70,7 @@ public static function fromIO($input, $output) 'verbosity' => $output->getVerbosity(), 'show-progress' => 'true', ], - $path, + getcwd(), new ToolInfo(), );