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.addMethodInvocation((node) {
final targetType = node.target?.staticType;
if (targetType == null ||
node.methodName.name != 'raw' ||
!rulesMethodsTypeChecker.isExactlyType(targetType)) return;
reporter.deprecatedReportErrorForNode(_code, node);
});
}