appliesTo method

bool appliesTo(
  1. AnalysisError error
)

Check if this processor applies to the given error.

Note: code is normalized to uppercase; errorCode.name for regular analysis issues uses uppercase; errorCode.name for lints uses lowercase.

Implementation

bool appliesTo(AnalysisError error) =>
    code == error.errorCode.name ||
    code == error.errorCode.name.toUpperCase();