mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +01:00
Remove type coverage map, as it’s not ready for prime-time
This commit is contained in:
parent
8751bf232b
commit
6e010d9db9
@ -644,24 +644,6 @@ class Analyzer
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array<string, array{int, int}>
|
||||
*/
|
||||
public function getTypeCoverageMap(\Psalm\Codebase $codebase)
|
||||
{
|
||||
$type_coverage_map = [];
|
||||
|
||||
foreach ($codebase->file_reference_provider->getTypeCoverage() as $file_path => $counts) {
|
||||
if (!$this->config->reportTypeStatsForFile($file_path)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$type_coverage_map[$this->config->shortenFileName($file_path)] = $counts;
|
||||
}
|
||||
|
||||
return $type_coverage_map;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array{int, int}
|
||||
*/
|
||||
|
@ -35,7 +35,6 @@ class Shepherd implements \Psalm\Plugin\Hook\AfterAnalysisInterface
|
||||
return $i['severity'] === 'error';
|
||||
}
|
||||
),
|
||||
'coverage_map' => $codebase->analyzer->getTypeCoverageMap($codebase),
|
||||
'coverage' => $codebase->analyzer->getTotalTypeCoverage($codebase)
|
||||
];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user