Skip to content

Commit

Permalink
Handle warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Quetzacoalt91 authored and ondrejmirtes committed Jun 30, 2020
1 parent d1177d7 commit 123ffab
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Command/ErrorFormatter/GithubErrorFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ public function formatErrors(AnalysisResult $analysisResult, Output $output): in
$output->writeLineFormatted('');
}

foreach ($analysisResult->getWarnings() as $warning) {
$line = sprintf('::warning ::%s', $warning);

$output->writeRaw($line);
$output->writeLineFormatted('');
}

return $analysisResult->hasErrors() ? 1 : 0;
}

Expand Down

0 comments on commit 123ffab

Please sign in to comment.