Skip to content

Commit

Permalink
Print node text details in comment fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LiamPattinson committed Feb 3, 2025
1 parent 09a66b9 commit c04fe29
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fortitude/src/rules/style/whitespace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ impl AstRule for IncorrectSpaceBeforeComment {
// Count whitespace characters at the end of the line
let whitespace = line.chars().rev().take_while(|c| c.is_whitespace()).count();
// If the line is empty or just filled with whitespace, exit
println!("{}", node.to_text(source.text())?);
if line.len() == whitespace {
return None;
}
Expand Down

0 comments on commit c04fe29

Please sign in to comment.