Skip to content

Commit

Permalink
Fix empty line replace in Credo.Code.Strings
Browse files Browse the repository at this point in the history
Refs #1078
  • Loading branch information
rrrene committed Dec 21, 2023
1 parent 11f7ef8 commit d7dd030
Show file tree
Hide file tree
Showing 3 changed files with 175 additions and 107 deletions.
3 changes: 1 addition & 2 deletions lib/credo/check/readability/redundant_blank_lines.ex
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ defmodule Credo.Check.Readability.RedundantBlankLines do
source_file
|> Charlists.replace_with_spaces("=")
|> Sigils.replace_with_spaces("=", "=", source_file.filename)
|> Strings.replace_with_spaces("=", "=", source_file.filename)
|> Strings.replace_with_spaces("=", "=", source_file.filename, "=")
|> Heredocs.replace_with_spaces("=", "=", "=", source_file.filename)
|> tap(fn x -> IO.puts x end)
|> Credo.Code.to_lines()
|> blank_lines()
|> consecutive_lines(max_blank_lines)
Expand Down
Loading

0 comments on commit d7dd030

Please sign in to comment.