mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +01:00
parent
d99fbc0d4d
commit
4bfdda597e
@ -422,10 +422,6 @@ class IssueBuffer
|
||||
throw new \UnexpectedValueException('Cannot finish without stdout report options');
|
||||
}
|
||||
|
||||
if ($project_analyzer->stdout_report_options->format === Report::TYPE_CONSOLE) {
|
||||
echo "\n";
|
||||
}
|
||||
|
||||
$codebase = $project_analyzer->getCodebase();
|
||||
|
||||
$error_count = 0;
|
||||
@ -434,6 +430,10 @@ class IssueBuffer
|
||||
$issues_data = [];
|
||||
|
||||
if (self::$issues_data) {
|
||||
if ($project_analyzer->stdout_report_options->format === Report::TYPE_CONSOLE) {
|
||||
echo "\n";
|
||||
}
|
||||
|
||||
\ksort(self::$issues_data);
|
||||
|
||||
foreach (self::$issues_data as $file_path => $file_issues) {
|
||||
@ -494,14 +494,14 @@ class IssueBuffer
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
echo self::getOutput(
|
||||
$issues_data,
|
||||
$project_analyzer->stdout_report_options,
|
||||
$codebase->analyzer->getTotalTypeCoverage($codebase)
|
||||
);
|
||||
}
|
||||
|
||||
echo self::getOutput(
|
||||
$issues_data,
|
||||
$project_analyzer->stdout_report_options,
|
||||
$codebase->analyzer->getTotalTypeCoverage($codebase)
|
||||
);
|
||||
|
||||
foreach ($issues_data as $file_issues) {
|
||||
foreach ($file_issues as $issue_data) {
|
||||
if ($issue_data->severity === Config::REPORT_ERROR) {
|
||||
|
Loading…
Reference in New Issue
Block a user