diff --git a/src/xatu/rules/deprecated_to_path.rs b/src/xatu/rules/deprecated_to_path.rs index 68b7790..98837ab 100644 --- a/src/xatu/rules/deprecated_to_path.rs +++ b/src/xatu/rules/deprecated_to_path.rs @@ -24,6 +24,8 @@ impl NodeRule for DeprecatedToPath { } fn calls_to_path(function: &ast::Expr) -> bool { + // TODO: Once Xatu supports name resolution, report unqualified `toPath` only + // when it resolves to `builtins.toPath`. match function { ast::Expr::Ident(ident) => ident.name == "toPath", ast::Expr::Select(select) => is_builtins_to_path(select),