Skip to content

Conversation

@cirras
Copy link
Collaborator

@cirras cirras commented Mar 18, 2025

This PR improves TrailingWhitespace to detect trailing whitespace within comments.

An incidental change is that we're now also detecting whitespace more accurately by matching characters in range 0x00-0x20. This matches the compiler's behavior.

@cirras cirras requested a review from fourls March 18, 2025 06:21
@cirras cirras force-pushed the trailing_whitespace_in_comments branch from 8af4b4a to ce01c3a Compare March 23, 2025 22:52
Copy link
Collaborator

@fourls fourls left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was a sneaky one! I have a few minor comments.

@cirras cirras force-pushed the trailing_whitespace_in_comments branch from ce01c3a to 5ddbaa8 Compare March 28, 2025 02:14
@cirras cirras requested a review from fourls March 28, 2025 02:14
@cirras cirras force-pushed the trailing_whitespace_in_comments branch from 5ddbaa8 to 8fd62fe Compare March 28, 2025 05:51
Copy link
Collaborator

@fourls fourls left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@cirras cirras merged commit 30ec100 into master Mar 28, 2025
4 checks passed
@cirras cirras deleted the trailing_whitespace_in_comments branch March 28, 2025 05:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants