Skip to content

Commit

Permalink
Fix report name: Issue level, not issue severity
Browse files Browse the repository at this point in the history
  • Loading branch information
bdsl committed Dec 1, 2022
1 parent 4fde493 commit 3bc3f1c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/Psalm/IssueBuffer.php
Expand Up @@ -17,7 +17,7 @@
use Psalm\Issue\UnusedPsalmSuppress;
use Psalm\Plugin\EventHandler\Event\AfterAnalysisEvent;
use Psalm\Plugin\EventHandler\Event\BeforeAddIssueEvent;
use Psalm\Report\ByIssueSeverityReport;
use Psalm\Report\ByIssueLevelAndTypeReport;
use Psalm\Report\CheckstyleReport;
use Psalm\Report\CodeClimateReport;
use Psalm\Report\CompactReport;
Expand Down Expand Up @@ -855,8 +855,8 @@ public static function getOutput(
$output = new JsonReport($normalized_data, self::$fixable_issue_counts, $report_options);
break;

case Report::TYPE_BY_ISSUE_SEVERITY:
$output = new ByIssueSeverityReport($normalized_data, self::$fixable_issue_counts, $report_options);
case Report::TYPE_BY_ISSUE_LEVEL:
$output = new ByIssueLevelAndTypeReport($normalized_data, self::$fixable_issue_counts, $report_options);
break;

case Report::TYPE_JSON_SUMMARY:
Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Report.php
Expand Up @@ -29,7 +29,7 @@ abstract class Report
public const TYPE_SARIF = 'sarif';
public const TYPE_CODECLIMATE = 'codeclimate';
public const TYPE_COUNT = 'count';
public const TYPE_BY_ISSUE_SEVERITY = 'by-issue-severity';
public const TYPE_BY_ISSUE_LEVEL = 'by-issue-level';

/**
* @var array<int, IssueData>
Expand Down
Expand Up @@ -15,7 +15,7 @@
use function substr;
use function usort;

final class ByIssueSeverityReport extends Report
final class ByIssueLevelAndTypeReport extends Report
{
/** @var string|null */
private $link_format;
Expand Down

0 comments on commit 3bc3f1c

Please sign in to comment.