public function checkFile(File $file)
{
$checkContext = new CheckContext($file);
$results = [];
foreach ($this->checkRepository->getChecks() as $check) {
$branch = $this->config->get($check->getConfigRoot());
if ($branch->get('enabled') === true) {
$results[] = $check->checkFile($checkContext, $branch);
}
}
return $results;
}