refactor(AIR302): rename check_function_parameters as check_parameters_in_function_def

This commit is contained in:
Wei Lee
2025-01-24 18:18:54 +08:00
parent c779cbfa3f
commit 67f65cff4d

View File

@@ -122,7 +122,7 @@ pub(crate) fn removed_function_def_in_3(checker: &mut Checker, function_def: &St
return;
}
check_function_parameters(checker, function_def);
check_parameters_in_function_def(checker, function_def);
}
const REMOVED_CONTEXT_KEYS: [&str; 12] = [
@@ -153,7 +153,7 @@ const REMOVED_CONTEXT_KEYS: [&str; 12] = [
/// # 'execution_date' is removed in Airflow 3.0
/// pass
/// ```
fn check_function_parameters(checker: &mut Checker, function_def: &StmtFunctionDef) {
fn check_parameters_in_function_def(checker: &mut Checker, function_def: &StmtFunctionDef) {
if !is_airflow_task(function_def, checker.semantic())
&& !is_execute_method_inherits_from_airflow_operator(function_def, checker.semantic())
{