pub fn transform_with_warnings_with_base_dir( rule: &RuleFile, input: &str, context: Option<&Value>, base_dir: &Path, ) -> Result<(Value, Vec<TransformWarning>), TransformError>