From b26d6b5993b33b40f78a45ce2b91444ff632eefb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20F=C3=B6hring?= Date: Sun, 9 Jun 2019 10:04:07 +0200 Subject: [PATCH] Add filenames to replace_with_spaces calls --- lib/credo/check/readability/redundant_blank_lines.ex | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)