@@ -114,7 +114,9 @@ public function execute(InputInterface $input, OutputInterface $output): int
114114 $ stdErr = $ output ->getErrorOutput ();
115115
116116 // @todo fix flaky assumption about the path of the source repo...
117- $ sourceRepo = CheckedOutRepository::fromPath (Env \current_dir ());
117+ $ currentDirectory = Env \current_dir ();
118+
119+ $ sourceRepo = CheckedOutRepository::fromPath ($ currentDirectory );
118120
119121 $ fromRevision = $ input ->getOption ('from ' ) !== null
120122 ? $ this ->parseRevisionFromInput ($ input , $ sourceRepo )
@@ -126,6 +128,8 @@ public function execute(InputInterface $input, OutputInterface $output): int
126128
127129 $ toRevision = $ this ->parseRevision ->fromStringForRepository ($ to , $ sourceRepo );
128130
131+ $ configuration = (new DetermineConfigurationFromFilesystem ())($ currentDirectory , $ stdErr );
132+
129133 $ stdErr ->writeln (Str \format (
130134 'Comparing from %s to %s... ' ,
131135 Type \string ()->coerce ($ fromRevision ),
@@ -149,7 +153,7 @@ public function execute(InputInterface $input, OutputInterface $output): int
149153 $ toPath ->__toString (),
150154 ($ this ->locateDependencies )($ toPath ->__toString (), $ includeDevelopmentDependencies ),
151155 ),
152- );
156+ )-> applyBaseline ( $ configuration -> baseline ) ;
153157
154158 $ formatters = [
155159 'console ' => new SymfonyConsoleTextFormatter ($ stdErr ),
0 commit comments