Skip to content

Commit

Permalink
note
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Aug 8, 2024
1 parent c2c69c8 commit 17fa911
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Command/ValidateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ protected function execute(InputInterface $input, OutputInterface $output): int

// 1. collect documented rules in provided path
$classesByFilePaths = $this->ruleDefinitionClassesFinder->findInDirectories($paths);
if ($classesByFilePaths === []) {
$this->symfonyStyle->warning('No rules found in provided paths');
return self::FAILURE;
}

$isValid = true;

Expand Down Expand Up @@ -80,6 +84,8 @@ protected function execute(InputInterface $input, OutputInterface $output): int
return self::FAILURE;
}

$this->symfonyStyle->success(sprintf('All "%d" rule definitions are valid', count($classesByFilePaths)));

return self::SUCCESS;
}
}

0 comments on commit 17fa911

Please sign in to comment.