From 83c10cf79550bcaafdae034626c1a16aa1791648 Mon Sep 17 00:00:00 2001 From: Ameya Ketkar <94497232+ketkarameya@users.noreply.github.com> Date: Mon, 21 Aug 2023 20:52:20 -0700 Subject: [PATCH] fix enclosing node --- src/cleanup_rules/go/rules.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cleanup_rules/go/rules.toml b/src/cleanup_rules/go/rules.toml index 486942b6e..abf03d518 100644 --- a/src/cleanup_rules/go/rules.toml +++ b/src/cleanup_rules/go/rules.toml @@ -556,7 +556,7 @@ replace_node = "identifier" holes = ["err"] is_seed_rule = false [[rules.filters]] -enclosing_node = "(block) @block" +enclosing_node = "[(function_declaration) (method_declaration)] @block" not_contains = [""" ( [