Skip to content

Clarify why check-illegal-windows-names stays builtin-only#1857

Merged
j178 merged 1 commit intomasterfrom
clarify-check-illegal-windows-hook
Mar 23, 2026
Merged

Clarify why check-illegal-windows-names stays builtin-only#1857
j178 merged 1 commit intomasterfrom
clarify-check-illegal-windows-hook

Conversation

@j178
Copy link
Copy Markdown
Owner

@j178 j178 commented Mar 23, 2026

No description provided.

Copilot AI review requested due to automatic review settings March 23, 2026 07:27
@j178 j178 merged commit 00e7be7 into master Mar 23, 2026
53 checks passed
@j178 j178 deleted the clarify-check-illegal-windows-hook branch March 23, 2026 07:27
@j178 j178 added the internal Internal changes label Mar 23, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 23, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.17%. Comparing base (ba62c04) to head (1682e07).
⚠️ Report is 5 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1857      +/-   ##
==========================================
+ Coverage   92.14%   92.17%   +0.03%     
==========================================
  Files         108      108              
  Lines       21750    21750              
==========================================
+ Hits        20041    20048       +7     
+ Misses       1709     1702       -7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Clarifies, in-code, why check-illegal-windows-names is implemented as a builtin hook (rather than as a pre_commit_hooks fast-path hook), given that upstream expresses it as a generic fail hook plus a files regex and prek already supports language: fail in Rust.

Changes:

  • Added a module-level comment explaining why this hook remains in builtin_hooks instead of pre_commit_hooks.
  • Clarified that the builtin implementation primarily reuses the regex for matching and emits a simple fail-style message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal Internal changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants