doctor library

Classes

DoctorFinding
One thing --doctor has to say.
LintState
The lint rules an analysis options file leaves switched on.

Enums

FindingKind
How much a DoctorFinding matters.

Constants

importLints → const List<String>
The lint rules whose verdict depends on how imports are written — the ones this tool can agree with or fight.

Functions

diagnose(LintState lints, TidyConfig config, {required bool formatterSeparates}) → List<DoctorFinding>
What lints and config have to say to each other.
fixesOf(List<DoctorFinding> findings) → Map<String, Object>
Every key the findings would set, merged in order. Only fights and suggestions carry a fix.
readLints(String optionsPath, {required String? read(String path), required String? packageDir(String path)}) → LintState
Reads the lint rules in force for the options file at optionsPath.