Skip to content

Auto remove trailing whitespace with pre-commit - #14288

Open
jbampton wants to merge 3 commits into
apache:mainfrom
jbampton:remove-trailing-whitespace
Open

jbampton wants to merge 3 commits into
apache:mainfrom
jbampton:remove-trailing-whitespace

Conversation

@jbampton

@jbampton jbampton commented Oct 1, 2026

Copy link
Copy Markdown
Member

https://github.com/pre-commit/pre-commit-hooks#trailing-whitespace

Description

This PR...

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)
  • Build/CI
  • Test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

How did you try to break this feature and the system with this change?

Copilot AI balanced review requested due to automatic review settings October 1, 2026 15:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The filter change is correct and the legal-file edits only remove trailing whitespace.

Review effort: Balanced
Findings: None

What changed in this PR

Expands trailing-whitespace enforcement to nested license and notice files and cleans existing violations.

Changes:

  • Broadens the pre-commit filename filter.
  • Removes trailing whitespace from Whisker legal files.
File Description
.pre-commit-config.yaml Includes nested LICENSE, NOTICE, and README files.
tools/​whisker/​LICENSE Removes trailing whitespace.
tools/​whisker/​NOTICE Removes trailing whitespace.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@codecov

codecov Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 21.17%. Comparing base (937aa0f) to head (9061950).

Additional details and impacted files
@@             Coverage Diff              @@
##              main   #14288       +/-   ##
============================================
+ Coverage     3.86%   21.17%   +17.30%     
- Complexity       0    21575    +21575     
============================================
  Files          499     6080     +5581     
  Lines        43154   551993   +508839     
  Branches      8205    79474    +71269     
============================================
+ Hits          1670   116878   +115208     
- Misses       41249   421309   +380060     
- Partials       235    13806    +13571     
Flag Coverage Δ
uitests 3.86% <ø> (ø)
unittests 22.64% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@DaanHoogland DaanHoogland left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

clgtm, I doubt that tools/whisker is still used

@jbampton
jbampton requested a review from vishesh92 November 11, 2026 11:49
Copilot AI balanced review requested due to automatic review settings November 15, 2026 09:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are recorded for the whitespace-hook expansion and Whisker license and notice cleanup.

No open issues 🎉

Review effort: Balanced

@github-actions

Copy link
Copy Markdown

This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch.

Copilot AI balanced review requested due to automatic review settings December 3, 2026 01:23

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are reported for the whitespace-hook expansion and licensing-document cleanup.

No open issues 🎉

Review effort: Balanced

This branch has not been deployed

No deployments
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