Skip to content

Conversation

@grunweg
Copy link
Collaborator

@grunweg grunweg commented Jan 7, 2026

The linter was always essentially checking all kinds of whitespace issues,
so the new name is equally descriptive already.
A future PR will extend the linter to all proof bodies; then this name would
have been actively misleading.


Open in Gitpod

The linter was always essentially checking all kinds of whitespace issues,
so the name is equally descriptive already.
A future PR will extend the linter to all proof bodies; then this name would
have been actively misleading.
@grunweg grunweg requested a review from adomani January 7, 2026 10:28
@github-actions
Copy link

github-actions bot commented Jan 7, 2026

PR summary cb3ccde1ed

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ whitespaceLinter
- commandStartLinter

You can run this locally as follows
## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>

## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>

The doc-module for script/declarations_diff.sh contains some details about this script.


No changes to technical debt.

You can run this locally as

./scripts/technical-debt-metrics.sh pr_summary
  • The relative value is the weighted sum of the differences with weight given by the inverse of the current value of the statistic.
  • The absolute value is the relative value divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).

note: file MathlibTest/CommandStart.lean` was renamed to `MathlibTest/WhitespaceLinter.lean without a module deprecation
Please create a follow-up pull request adding one. Thanks!

note: file Mathlib/Tactic/Linter/CommandStart.lean` was renamed to `Mathlib/Tactic/Linter/Whitespace.lean without a module deprecation
Please create a follow-up pull request adding one. Thanks!

@github-actions github-actions bot added the file-removed A Lean module was (re)moved without a `deprecated_module` annotation label Jan 7, 2026
@grunweg grunweg added the t-linter Linter label Jan 7, 2026
Copy link
Contributor

@Vierkantor Vierkantor left a comment

Choose a reason for hiding this comment

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

LGTM otherwise. I checked that all changes outside of the file defining this linter replace "commandstart" with "whitespace" (case insensitive).

@Vierkantor
Copy link
Contributor

bors d+

@mathlib-bors
Copy link
Contributor

mathlib-bors bot commented Jan 7, 2026

✌️ grunweg can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Jan 7, 2026
grunweg and others added 4 commits January 7, 2026 14:18
Co-authored-by: Anne Baanen <Vierkantor@users.noreply.github.com>
@grunweg grunweg added the auto-merge-after-CI Please do not add manually. Requests for a bot to merge automatically once CI is done. label Jan 7, 2026
@grunweg
Copy link
Collaborator Author

grunweg commented Jan 7, 2026

Thanks for the quick review!

@leanprover-community-mathlib4-bot
Copy link
Collaborator

As this PR is labelled auto-merge-after-CI, we are now sending it to bors:

bors merge

@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added the ready-to-merge This PR has been sent to bors. label Jan 7, 2026
mathlib-bors bot pushed a commit that referenced this pull request Jan 7, 2026
The linter was always essentially checking all kinds of whitespace issues,
so the new name is equally descriptive already.
A future PR will extend the linter to all proof bodies; then this name would
have been actively misleading.
@mathlib-bors
Copy link
Contributor

mathlib-bors bot commented Jan 7, 2026

Canceled.

@grunweg
Copy link
Collaborator Author

grunweg commented Jan 7, 2026

bors merge

mathlib-bors bot pushed a commit that referenced this pull request Jan 7, 2026
The linter was always essentially checking all kinds of whitespace issues,
so the new name is equally descriptive already.
A future PR will extend the linter to all proof bodies; then this name would
have been actively misleading.
@mathlib-bors
Copy link
Contributor

mathlib-bors bot commented Jan 7, 2026

Build failed:

@grunweg
Copy link
Collaborator Author

grunweg commented Jan 7, 2026

With the latest change, the test fails: deprecating the option only lints upon uses of it in code, but not inside set_option calls. Luckily, we have a linter for that, which I added a case to. I'd prefer a quick re-review: I don't consider this controversial at all, but this is a larger decision than most of this PR.

@grunweg grunweg removed ready-to-merge This PR has been sent to bors. auto-merge-after-CI Please do not add manually. Requests for a bot to merge automatically once CI is done. labels Jan 7, 2026
@grunweg grunweg requested review from Vierkantor and adomani January 7, 2026 17:24
@adomani
Copy link
Collaborator

adomani commented Jan 7, 2026

Thanks! 🐙

Having the deprecation will help with the automatic removal later on and the setOption linter emitting a warning is a great use of the available tools!

bors d+

@mathlib-bors
Copy link
Contributor

mathlib-bors bot commented Jan 7, 2026

✌️ grunweg can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@grunweg
Copy link
Collaborator Author

grunweg commented Jan 7, 2026

Thanks for the fast review!
bors merge

@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added the ready-to-merge This PR has been sent to bors. label Jan 7, 2026
mathlib-bors bot pushed a commit that referenced this pull request Jan 7, 2026
The linter was always essentially checking all kinds of whitespace issues,
so the new name is equally descriptive already.
A future PR will extend the linter to all proof bodies; then this name would
have been actively misleading.
@mathlib-bors
Copy link
Contributor

mathlib-bors bot commented Jan 7, 2026

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title chore: rename the commandStart linter to whitespace [Merged by Bors] - chore: rename the commandStart linter to whitespace Jan 7, 2026
@mathlib-bors mathlib-bors bot closed this Jan 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). file-removed A Lean module was (re)moved without a `deprecated_module` annotation ready-to-merge This PR has been sent to bors. t-linter Linter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants