style(AIR302): rename removed_airflow_plugin_extension as check_airflow_plugin_extension (#15233)

## Summary

during the previous refactor, this renaming was missed

## Test Plan

no functionality changed
This commit is contained in:
Wei Lee
2025-01-03 14:07:21 +09:00
committed by GitHub
parent a3d873ef66
commit 835b453bfd

View File

@@ -96,7 +96,7 @@ pub(crate) fn removed_in_3(checker: &mut Checker, expr: &Expr) {
check_name(checker, expr, *range);
if matches!(ctx, ExprContext::Store) {
if let ScopeKind::Class(class_def) = checker.semantic().current_scope().kind {
removed_airflow_plugin_extension(checker, expr, id, class_def);
check_airflow_plugin_extension(checker, expr, id, class_def);
}
}
}
@@ -699,7 +699,7 @@ fn check_name(checker: &mut Checker, expr: &Expr, range: TextRange) {
/// class CustomizePlugin(AirflowPlugin)
/// executors = "some.third.party.executor"
/// ```
fn removed_airflow_plugin_extension(
fn check_airflow_plugin_extension(
checker: &mut Checker,
expr: &Expr,
name: &str,