lib/pragmater/writer.rb in pragmater-2.2.0 vs lib/pragmater/writer.rb in pragmater-3.0.0
- old
+ new
@@ -1,9 +1,10 @@
# frozen_string_literal: true
module Pragmater
# Writes formatted pragma comments to source file.
class Writer
+ # rubocop:disable Metrics/ParameterLists
def initialize file_path, new_comments, formatter: Formatter, commenter: Commenter
@file_path = file_path
@file_lines = File.open(file_path).to_a
@formatter = formatter
@commenter = commenter