Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - fix(tactic/lint/basic): remove default argument for auto_decl and enable more linters #2580

Closed
wants to merge 2 commits into from

Conversation

gebner
Copy link
Member

@gebner gebner commented May 1, 2020

Run more linters on automatically-generated declarations. Quite a few linters should have been run on them, but I forgot about it because the auto_decls flag is optional and off by default. I've made it non-optional so that you don't forget about it when defining a linter.

https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/simp.20linter.20and.20structure.20fields/near/195810856

@@ -55,10 +55,10 @@ begin
{ assume h, subst h, exact forall₂_refl _ }
end

@[simp] lemma forall₂_nil_left_iff {l} : forall₂ r nil l ↔ l = nil :=
@[simp, priority 900] lemma forall₂_nil_left_iff {l} : forall₂ r nil l ↔ l = nil :=
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why is this in this PR?

Copy link
Member Author

Choose a reason for hiding this comment

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

Because they overlap with another simp lemma:

attribute [simp] forall₂.nil

The forall₂.nil lemma is a constructor, and therefore the linter did not catch this issue before.

Copy link
Collaborator

Choose a reason for hiding this comment

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

OK, thanks.

@sgouezel
Copy link
Collaborator

sgouezel commented May 1, 2020

bors r+

@github-actions github-actions bot added the ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) label May 1, 2020
bors bot pushed a commit that referenced this pull request May 1, 2020
…ble more linters (#2580)

Run more linters on automatically-generated declarations.  Quite a few linters should have been run on them, but I forgot about it because the `auto_decls` flag is optional and off by default.  I've made it non-optional so that you don't forget about it when defining a linter.

https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/simp.20linter.20and.20structure.20fields/near/195810856
@bors
Copy link

bors bot commented May 1, 2020

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title fix(tactic/lint/basic): remove default argument for auto_decl and enable more linters [Merged by Bors] - fix(tactic/lint/basic): remove default argument for auto_decl and enable more linters May 1, 2020
@bors bors bot closed this May 1, 2020
@bors bors bot deleted the lint_more_decls branch May 1, 2020 12:56
jcommelin pushed a commit that referenced this pull request May 1, 2020
…ble more linters (#2580)

Run more linters on automatically-generated declarations.  Quite a few linters should have been run on them, but I forgot about it because the `auto_decls` flag is optional and off by default.  I've made it non-optional so that you don't forget about it when defining a linter.

https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/simp.20linter.20and.20structure.20fields/near/195810856
anrddh pushed a commit to anrddh/mathlib that referenced this pull request May 15, 2020
…ble more linters (leanprover-community#2580)

Run more linters on automatically-generated declarations.  Quite a few linters should have been run on them, but I forgot about it because the `auto_decls` flag is optional and off by default.  I've made it non-optional so that you don't forget about it when defining a linter.

https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/simp.20linter.20and.20structure.20fields/near/195810856
anrddh pushed a commit to anrddh/mathlib that referenced this pull request May 16, 2020
…ble more linters (leanprover-community#2580)

Run more linters on automatically-generated declarations.  Quite a few linters should have been run on them, but I forgot about it because the `auto_decls` flag is optional and off by default.  I've made it non-optional so that you don't forget about it when defining a linter.

https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/simp.20linter.20and.20structure.20fields/near/195810856
cipher1024 pushed a commit to cipher1024/mathlib that referenced this pull request Mar 15, 2022
…ble more linters (leanprover-community#2580)

Run more linters on automatically-generated declarations.  Quite a few linters should have been run on them, but I forgot about it because the `auto_decls` flag is optional and off by default.  I've made it non-optional so that you don't forget about it when defining a linter.

https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/simp.20linter.20and.20structure.20fields/near/195810856
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants