Skip to content

Commit

Permalink
Adding some debugging.
Browse files Browse the repository at this point in the history
  • Loading branch information
mchurchward committed Feb 27, 2024
1 parent e8c0c45 commit 412f16d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Command/CodeCheckerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,12 @@ protected function execute(InputInterface $input, OutputInterface $output): int
array_push($cmd, '--runtime-set', 'moodleTodoCommentRegex', $todoCommentRegex);

// Add the files to process.
$output->writeln(sprintf('Number of files requested %d', count($files)));
foreach ($files as $file) {
$output->writeln(sprintf('Adding file %s', $file));
$cmd[] = $file;
}
$output->writeln(sprintf('Number of files loaded %d', count($cmd)));

$process = $this->execute->passThroughProcess(new Process($cmd, $this->plugin->directory, null, null, null));

Expand Down

0 comments on commit 412f16d

Please sign in to comment.