lib/pragmater/writer.rb in pragmater-4.3.1 vs lib/pragmater/writer.rb in pragmater-5.0.0
- old
+ new
@@ -12,9 +12,10 @@
@formatter = formatter
@commenter = commenter
@old_comments = file_comments
@new_comments = new_comments
end
+ # rubocop:enable Metrics/ParameterLists
def add
comments = format commenter.new(old_comments, new_comments).add
lines = comments + file_lines_without_comments
insert_spacing! lines, comments