.rs` instead of `/mod.rs`:'; } public function check(string $rootDir, array $excludes): array { $errors = []; foreach (FileFinder::modRsFiles($rootDir) as $path) { $relative = Paths::relativeTo($rootDir, $path); if (in_array($relative, $excludes, true)) { continue; } $errors[] = $relative; } return $errors; } }