[vim/vim] Improve test_codestyle whitespace testing (PR #18599)

13 views
Skip to first unread message

dkearns

unread,
Oct 18, 2025, 11:11:30 AM (3 days ago) Oct 18
to vim/vim, Subscribed

Problem: test_codestyle does not catch all intended whitespace violations in help files.
Solution: Improve the relevant patterns.

  • Don't require a character [^/] before <SPACE><TAB> so we can match this at the start of a line.
  • Add a specific test exception for :help 12.7.
  • Fix the pattern test for the exception at :help 27.6, this was matching the pattern /[^? ^I]/ rather than the literal text and skipping most of the file.

You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/18599

Commit Summary

  • 5c27006 Improve test_codestyle whitespace testing

File Changes

(1 file)

Patch Links:


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18599@github.com>

h_east

unread,
Oct 18, 2025, 12:25:50 PM (3 days ago) Oct 18
to vim/vim, Subscribed

@h-east approved this pull request.

Thanks for fixing my elementary mistake of using a double quote string on the right hand side of the regular expression match.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18599/review/3353646688@github.com>

dkearns

unread,
Oct 19, 2025, 8:42:39 AM (2 days ago) Oct 19
to vim/vim, Push

@dkearns pushed 1 commit.

  • 144d35d Improve test_codestyle whitespace testing


View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18599/before/5c2700684c115fe7118dde0e142794a3794184e4/after/144d35dabbba94d9e58c70a523d523fe1f74528d@github.com>

dkearns

unread,
Oct 19, 2025, 8:54:28 AM (2 days ago) Oct 19
to vim/vim, Subscribed
dkearns left a comment (vim/vim#18599)

It might be better to explicitly match the existing exceptions for the trailing whitespace test (/\~\s\+$/ and /\\\s\+$/), as there's only six matches in total, and simplify the general pattern to /\s\+$/?


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18599/c3419644768@github.com>

dkearns

unread,
Oct 20, 2025, 12:19:18 PM (20 hours ago) Oct 20
to vim/vim, Push

@dkearns pushed 1 commit.

  • 7fd3ca1 Improve test_codestyle whitespace testing

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18599/before/144d35dabbba94d9e58c70a523d523fe1f74528d/after/7fd3ca15c1ac157483d4e6cedcecc87530c66655@github.com>

dkearns

unread,
Oct 20, 2025, 12:41:35 PM (19 hours ago) Oct 20
to vim/vim, Push

@dkearns pushed 1 commit.

  • 365133a Improve test_codestyle help file whitespace testing

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18599/before/3259830c5a7c2aec5e5c6fdfd6d4893773438a7e/after/365133a2b3e15df702bdb5f6ee0e00706468191b@github.com>

dkearns

unread,
6:11 AM (2 hours ago) 6:11 AM
to vim/vim, Push

@dkearns pushed 1 commit.

  • f8038ce Improve test_codestyle help file whitespace testing

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18599/before/365133a2b3e15df702bdb5f6ee0e00706468191b/after/f8038ceb17bdacf1dbdaf67f7e778820016a1f7e@github.com>

Reply all
Reply to author
Forward
0 new messages