Skip to content

[Merged by Bors] - feat: add a Linters file#12899

Closed
adomani wants to merge 3 commits intomasterfrom
adomani/linters_file
Closed

[Merged by Bors] - feat: add a Linters file#12899
adomani wants to merge 3 commits intomasterfrom
adomani/linters_file

Conversation

@adomani
Copy link
Copy Markdown
Contributor

@adomani adomani commented May 14, 2024

Add a new file Mathlib.Linters that is intended to be the entry-point for all Mathlib linters.

This file currently contains only Mathlib.Tactic.Lint and is imported in Mathlib.Common.

As linters seem to be invisible by Shake for dependencies, I also made this file invisible to Shake by marking it as

  • ignoreAll, meaning that all its imports are considered necessary;
  • ignoreImport, meaning that where it is imported, it is considered necessary.

Zulip discussion


Open in Gitpod

@adomani adomani marked this pull request as ready for review May 14, 2024 08:35
@adomani adomani changed the title add Linters, shake and add imports feat: add a Linters file May 14, 2024
@grunweg grunweg added the awaiting-zulip There is a Zulip discussion; the author should await and report/implement the decision reached there label May 21, 2024
@grunweg
Copy link
Copy Markdown
Contributor

grunweg commented May 21, 2024

I like this idea: the specifics of how implement this seem blocked on zulip. Let me mark this PR as such.

(I wonder whether importing this in Tactic.Basic would be better. But such details may depend on the zulip thread.)

Copy link
Copy Markdown
Contributor

@kmill kmill left a comment

Choose a reason for hiding this comment

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

Just like how Tactic is singular, I think perhaps it should be Mathlib.Tactic.Linter. Other than than minor quibble, this seems like a good idea.

@kim-em
Copy link
Copy Markdown
Contributor

kim-em commented May 21, 2024

bors d+

@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented May 21, 2024

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

@github-actions github-actions bot added delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). and removed awaiting-review labels May 21, 2024
@adomani
Copy link
Copy Markdown
Contributor Author

adomani commented May 22, 2024

bors r+

mathlib-bors bot pushed a commit that referenced this pull request May 22, 2024
Add a new file `Mathlib.Linters` that is intended to be the entry-point for all `Mathlib` linters.

This file currently contains only `Mathlib.Tactic.Lint` and is imported in `Mathlib.Common`.

As linters seem to be invisible by Shake for dependencies, I also made this file invisible to Shake by marking it as
* `ignoreAll`, meaning that all its imports are considered necessary;
* `ignoreImport`, meaning that where it is imported, it is considered necessary.

[Zulip discussion](https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/Mathlib.2FTactic.2F*)
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented May 22, 2024

Build failed (retrying...):

mathlib-bors bot pushed a commit that referenced this pull request May 22, 2024
Add a new file `Mathlib.Linters` that is intended to be the entry-point for all `Mathlib` linters.

This file currently contains only `Mathlib.Tactic.Lint` and is imported in `Mathlib.Common`.

As linters seem to be invisible by Shake for dependencies, I also made this file invisible to Shake by marking it as
* `ignoreAll`, meaning that all its imports are considered necessary;
* `ignoreImport`, meaning that where it is imported, it is considered necessary.

[Zulip discussion](https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/Mathlib.2FTactic.2F*)
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented May 22, 2024

Build failed (retrying...):

mathlib-bors bot pushed a commit that referenced this pull request May 22, 2024
Add a new file `Mathlib.Linters` that is intended to be the entry-point for all `Mathlib` linters.

This file currently contains only `Mathlib.Tactic.Lint` and is imported in `Mathlib.Common`.

As linters seem to be invisible by Shake for dependencies, I also made this file invisible to Shake by marking it as
* `ignoreAll`, meaning that all its imports are considered necessary;
* `ignoreImport`, meaning that where it is imported, it is considered necessary.

[Zulip discussion](https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/Mathlib.2FTactic.2F*)
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented May 22, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title feat: add a Linters file [Merged by Bors] - feat: add a Linters file May 22, 2024
@mathlib-bors mathlib-bors bot closed this May 22, 2024
@mathlib-bors mathlib-bors bot deleted the adomani/linters_file branch May 22, 2024 09:24
callesonne pushed a commit that referenced this pull request Jun 4, 2024
Add a new file `Mathlib.Linters` that is intended to be the entry-point for all `Mathlib` linters.

This file currently contains only `Mathlib.Tactic.Lint` and is imported in `Mathlib.Common`.

As linters seem to be invisible by Shake for dependencies, I also made this file invisible to Shake by marking it as
* `ignoreAll`, meaning that all its imports are considered necessary;
* `ignoreImport`, meaning that where it is imported, it is considered necessary.

[Zulip discussion](https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/Mathlib.2FTactic.2F*)
js2357 pushed a commit that referenced this pull request Jun 18, 2024
Add a new file `Mathlib.Linters` that is intended to be the entry-point for all `Mathlib` linters.

This file currently contains only `Mathlib.Tactic.Lint` and is imported in `Mathlib.Common`.

As linters seem to be invisible by Shake for dependencies, I also made this file invisible to Shake by marking it as
* `ignoreAll`, meaning that all its imports are considered necessary;
* `ignoreImport`, meaning that where it is imported, it is considered necessary.

[Zulip discussion](https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/Mathlib.2FTactic.2F*)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-zulip There is a Zulip discussion; the author should await and report/implement the decision reached there delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants