credo icon indicating copy to clipboard operation
credo copied to clipboard

Credo TrailingWhiteSpace False Positive Bug

Open mateuszkwiatkowski opened this issue 8 months ago • 1 comments

Hello,

First, thank you for creating credo. I think I spotted a bug.

Credo reports a trailing whitespace warning on a line that contains only:

  • Proper indentation (2 spaces)
  • Escaped triple quotes (""")
  • A newline character
  • No trailing whitespace

Credo Version: 1.7.12

I created a repo with reproduction here: https://github.com/mateuszkwiatkowski/credo-bug-repro

mateuszkwiatkowski avatar Jun 24 '25 14:06 mateuszkwiatkowski

Thanks for reporting this 😀 Great reproduction 😎 It should now be fixed on master.

You can try this by setting the Credo dep to

{:credo, github: "rrrene/credo"}

Please report back if your issue is solved! 👍

rrrene avatar Jun 26 '25 04:06 rrrene