1
0
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:
Brown 2019-04-12 11:32:35 -04:00
parent 8751bf232b
commit 6e010d9db9
2 changed files with 0 additions and 19 deletions

View File

@ -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}
*/

View File

@ -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)
];