run method
void
run(
- CustomLintResolver resolver,
- ErrorReporter reporter,
- CustomLintContext context
Emits lints for a given file.
run will only be invoked with files respecting filesToAnalyze
Implementation
@override
void run(
CustomLintResolver resolver,
ErrorReporter reporter,
CustomLintContext context,
) {
context.registry.addCatchClause((node) {
// not a typed catch `} on TypeName {`
if (node.exceptionType == null) {
_checkParameter(
node.exceptionParameter,
_CatchClauseParameter.exception,
reporter,
);
}
_checkParameter(
node.stackTraceParameter,
_CatchClauseParameter.stackTrace,
reporter,
);
});
}