exitCode property

int get exitCode

1 when a check found an error, or a warning with strict; else 0.

Implementation

int get exitCode => count(CheckStatus.error) > 0 || strict && count(CheckStatus.warning) > 0 ? 1 : 0;