metro/doctor library

Classes

DoctorCheck
What one of metro doctor's checks found.

Enums

DoctorStatus
How one of metro doctor's checks came out.

Functions

checkAssets({String projectRoot = '.'}) → DoctorCheck
Images in assets/images (or public/images) that nothing refers to.
checkDecoders({String projectRoot = '.'}) → DoctorCheck
API services, controllers and models the app uses that lib/bootstrap/decoders.dart doesn't register.
checkEnv({String projectRoot = '.'}) → DoctorCheck
Keys in .env that .env-example doesn't have.
checkLanguages({String projectRoot = '.'}) → DoctorCheck
Keys the default language file has that another language file doesn't.
checkRoutes({String projectRoot = '.'}) → DoctorCheck
Pages that declare a route path but aren't added to a router.
doctorExitCode(List<DoctorCheck> checks, {bool strict = false}) → int
The exit code for checks: 1 when one found a problem, or a note when strict, otherwise 0.
formatDoctorReport(List<DoctorCheck> checks, {bool ansi = true}) → String
checks as metro doctor prints them, coloured when ansi.
runDoctor({String projectRoot = '.'}) → List<DoctorCheck>
Runs every metro doctor check against the project in projectRoot.