isEnabled method
Determines if the scanner should run based on the given ProjectContext. This can be overridden to disable a scanner globally or conditionally.
Implementation
@override
bool isEnabled(ProjectContext context) =>
context.config.rules['performance_scanner'] ?? true;