analyzeProject static method
Analyzes the Dart files in projectPath and returns a CoverageReport.
An optional configPath can point to a custom ethos.yaml; if omitted,
Ethos auto-detects one at <projectPath>/ethos.yaml. If neither is found
the built-in WCAG 2.2 spec is used as-is.
Implementation
static Future<CoverageReport> analyzeProject(
String projectPath, {
String? configPath,
}) async {
final analyzer = await CoverageAnalyzer.forProject(
projectPath,
configPath: configPath,
);
return analyzer.analyze();
}