diff --git a/lib/credo/check/readability/redundant_blank_lines.ex b/lib/credo/check/readability/redundant_blank_lines.ex index 12cd85944..19a5884b8 100644 --- a/lib/credo/check/readability/redundant_blank_lines.ex +++ b/lib/credo/check/readability/redundant_blank_lines.ex @@ -33,9 +33,9 @@ defmodule Credo.Check.Readability.RedundantBlankLines do source_file |> Charlists.replace_with_spaces("=") - |> Sigils.replace_with_spaces("=", "=") - |> Strings.replace_with_spaces("=", "=") - |> Heredocs.replace_with_spaces("=", "=", "=") + |> Sigils.replace_with_spaces("=", "=", source_file.filename) + |> Strings.replace_with_spaces("=", "=", source_file.filename) + |> Heredocs.replace_with_spaces("=", "=", "=", source_file.filename) |> Credo.Code.to_lines() |> blank_lines() |> consecutive_lines(max_blank_lines)