Skip to content
Permalink
Browse files

Remove type coverage map, as it’s not ready for prime-time

  • Loading branch information...
muglug committed Apr 12, 2019
1 parent 8751bf2 commit 6e010d9db95275725e5ad6409c387eb173091f72
Showing with 0 additions and 19 deletions.
  1. +0 −18 src/Psalm/Internal/Codebase/Analyzer.php
  2. +0 −1 src/Psalm/Plugin/Shepherd.php
@@ -644,24 +644,6 @@ public function addOffsetReference(string $file_path, int $start, int $end, stri
];
}
/**
* @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 @@ function (array $i) : bool {
return $i['severity'] === 'error';
}
),
'coverage_map' => $codebase->analyzer->getTypeCoverageMap($codebase),
'coverage' => $codebase->analyzer->getTotalTypeCoverage($codebase)
];

0 comments on commit 6e010d9

Please sign in to comment.
You can’t perform that action at this time.