diff --git a/src/ameba/formatter/todo_formatter.cr b/src/ameba/formatter/todo_formatter.cr index 10926076..c12bca14 100644 --- a/src/ameba/formatter/todo_formatter.cr +++ b/src/ameba/formatter/todo_formatter.cr @@ -53,15 +53,7 @@ module Ameba::Formatter .compact .uniq! - nodes_builder = YAML::Nodes::Builder.new - nodes_builder.mapping do - rule.name.to_yaml nodes_builder - rule.to_yaml nodes_builder - end - - YAML.build do |builder| - nodes_builder.document.to_yaml(builder) - end + {rule.name => rule}.to_yaml end end end