Skip to content

refactor: consolidate linters#1830

Open
fgdorais wants to merge 8 commits into
mainfrom
move-class-linter
Open

refactor: consolidate linters#1830
fgdorais wants to merge 8 commits into
mainfrom
move-class-linter

Conversation

@fgdorais

@fgdorais fgdorais commented Jun 1, 2026

Copy link
Copy Markdown
Collaborator

This PR proposes to consolidate all linters in Batteries.Linters.

Previously, environment linters were in Batteries.Tactic.Lint and only syntax linters were in Batteries.Linters. The distinction is based on implementation instead of function.

@github-actions github-actions Bot added the awaiting-review This PR is ready for review; the author thinks it is ready to be merged. label Jun 1, 2026
@fgdorais fgdorais force-pushed the move-class-linter branch from 3f62d1e to 572905e Compare June 1, 2026 22:46
mathlib-nightly-testing Bot added a commit to leanprover-community/mathlib4-nightly-testing that referenced this pull request Jun 1, 2026
@mathlib-nightly-testing

Copy link
Copy Markdown
Contributor

Mathlib CI status (docs):

@kim-em

kim-em commented Jun 3, 2026

Copy link
Copy Markdown
Collaborator

This seems wrong. This is an environment linter, so belongs in Batteries.Tactic.Lint where it is now, not in Batteries.Linter, which is the syntax linters. We can reorganize, but we shouldn't do it piece-meal without discussion.

@fgdorais

fgdorais commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator Author

This was indeed the start of a process to move all (syntax and environment) linters at the same place. The idea is that function takes precedence over implementation. However, I agree, there should be a discussion.

@fgdorais fgdorais added WIP work in progress and removed awaiting-review This PR is ready for review; the author thinks it is ready to be merged. labels Jun 22, 2026
@mathlib-nightly-testing

Copy link
Copy Markdown
Contributor

Mathlib CI status (docs):

@fgdorais fgdorais force-pushed the move-class-linter branch 3 times, most recently from fda8525 to ad4d752 Compare June 22, 2026 16:28
mathlib-nightly-testing Bot added a commit to leanprover-community/mathlib4-nightly-testing that referenced this pull request Jun 22, 2026
@mathlib-nightly-testing

Copy link
Copy Markdown
Contributor

Mathlib CI status (docs):

@fgdorais fgdorais force-pushed the move-class-linter branch from ad4d752 to b4961a7 Compare June 22, 2026 17:38
mathlib-nightly-testing Bot added a commit to leanprover-community/mathlib4-nightly-testing that referenced this pull request Jun 22, 2026
@mathlib-nightly-testing

Copy link
Copy Markdown
Contributor

Mathlib CI status (docs):

@fgdorais fgdorais changed the title chore: rename type class linter refactor: consolidate linters Jun 22, 2026
@mathlib-nightly-testing

Copy link
Copy Markdown
Contributor

Mathlib CI status (docs):

@mathlib-nightly-testing

Copy link
Copy Markdown
Contributor

Mathlib CI status (docs):

@mathlib-nightly-testing

Copy link
Copy Markdown
Contributor

Mathlib CI status (docs):

@mathlib-nightly-testing

Copy link
Copy Markdown
Contributor

Mathlib CI status (docs):

@mathlib-nightly-testing

Copy link
Copy Markdown
Contributor

Mathlib CI status (docs):

@mathlib-nightly-testing

Copy link
Copy Markdown
Contributor

Mathlib CI status (docs):

mathlib-nightly-testing Bot added a commit to leanprover-community/mathlib4-nightly-testing that referenced this pull request Jun 24, 2026
@mathlib-nightly-testing

Copy link
Copy Markdown
Contributor

Mathlib CI status (docs):

@mathlib-nightly-testing

Copy link
Copy Markdown
Contributor

Mathlib CI status (docs):

@mathlib-nightly-testing

Copy link
Copy Markdown
Contributor

Mathlib CI status (docs):

mathlib-nightly-testing Bot added a commit to leanprover-community/mathlib4-nightly-testing that referenced this pull request Jun 24, 2026
@mathlib-nightly-testing

Copy link
Copy Markdown
Contributor

Mathlib CI status (docs):

@mathlib-nightly-testing

Copy link
Copy Markdown
Contributor

Mathlib CI status (docs):

@fgdorais

Copy link
Copy Markdown
Collaborator Author

awaiting-review

@github-actions github-actions Bot added awaiting-review This PR is ready for review; the author thinks it is ready to be merged. and removed WIP work in progress labels Jun 24, 2026
@mathlib-merge-conflicts mathlib-merge-conflicts Bot added the merge-conflict This PR has merge conflicts with the `main` branch which must be resolved by the author. label Jun 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-review This PR is ready for review; the author thinks it is ready to be merged. builds-mathlib merge-conflict This PR has merge conflicts with the `main` branch which must be resolved by the author.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants