run method
Runs every check; throws FormatException when hostDir's pubspec.yaml is missing or cannot be read.
Implementation
DoctorReport run() {
final host = HostProject.load(hostDir);
final context = DoctorContext(
host: host,
environment: environment,
manifest: manifest,
machineBundle: machineBundle,
verifyNatives: verifyNatives,
);
return DoctorReport(
version: localInferenceVersion,
host: host.dir,
kind: host.isFlutter
? 'flutter'
: host.isWorkspaceRoot
? 'workspace'
: 'dart',
platforms: host.platforms,
strict: strict,
verifyNatives: verifyNatives,
results: [for (final MapEntry(key: id, value: check) in doctorChecks.entries) _run(id, check, context)],
);
}