Skip to content

[Merged by Bors] - fix: silence the set_option linter outside of mathlib#14558

Closed
adomani wants to merge 1 commit intomasterfrom
adomani/set_option_linter_in_mathlib
Closed

[Merged by Bors] - fix: silence the set_option linter outside of mathlib#14558
adomani wants to merge 1 commit intomasterfrom
adomani/set_option_linter_in_mathlib

Conversation

@adomani
Copy link
Copy Markdown
Contributor

@adomani adomani commented Jul 9, 2024

This PR makes the set_option linter only emit its warnings in files whose path begins with Mathlib, test, Archive, Counterexamples. Effectively, it should disable the linter on projects that are not mathlib.

Zulip thread


Open in Gitpod

@github-actions
Copy link
Copy Markdown

github-actions bot commented Jul 9, 2024

PR summary 2121c4b14d

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

No declarations were harmed in the making of this PR! 🐙

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

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

@grunweg
Copy link
Copy Markdown
Contributor

grunweg commented Jul 9, 2024

Implementation looks good to me.
Policy-wise, I'm fine with both changing the warning outside of mathlib and disabling the linter. Let's have maintainers decide
maintainer merge

@grunweg grunweg changed the title fix: silence the set_option linter outisde of mathlib fix: silence the set_option linter outside of mathlib Jul 9, 2024
@github-actions
Copy link
Copy Markdown

github-actions bot commented Jul 9, 2024

🚀 Pull request has been placed on the maintainer queue by grunweg.

@github-actions github-actions bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Jul 9, 2024
Copy link
Copy Markdown
Member

@jcommelin jcommelin left a comment

Choose a reason for hiding this comment

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

Thanks 🎉

bors merge

@ghost ghost added ready-to-merge This PR has been sent to bors. and removed awaiting-review labels Jul 9, 2024
mathlib-bors bot pushed a commit that referenced this pull request Jul 9, 2024
This PR makes the `set_option` linter only emit its warnings in files whose path begins with `Mathlib`, `test`, `Archive`, `Counterexamples`.  Effectively, it should disable the linter on projects that are not mathlib.

[Zulip thread](https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/.60pp.2Emvars.60.20forbidden.3F/near/449962160)
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Jul 9, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title fix: silence the set_option linter outside of mathlib [Merged by Bors] - fix: silence the set_option linter outside of mathlib Jul 9, 2024
@mathlib-bors mathlib-bors bot closed this Jul 9, 2024
@mathlib-bors mathlib-bors bot deleted the adomani/set_option_linter_in_mathlib branch July 9, 2024 10:53
@adomani adomani mentioned this pull request Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. 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.

3 participants