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

feat: apply dupNamespace linter to instances #670

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Ruben-VandeVelde
Copy link
Contributor

This caught 14 bugs with no false positives over in leanprover-community/mathlib4#10899

@fgdorais fgdorais added the awaiting-review This PR is ready for review; the author thinks it is ready to be merged. label Feb 24, 2024
@fgdorais
Copy link
Collaborator

How does this interact with deriving instance ... and other automatically generated instances?

@Ruben-VandeVelde
Copy link
Contributor Author

I don't know, but I have no reason to suspect those would introduce duplicate namespaces. If there's a way to exclude those, that's fine by me, of course.

@fgdorais
Copy link
Collaborator

How about adding some tests?

@semorrison
Copy link
Collaborator

The test doesn't seem to include a result from the linter? Can you use #guard_msgs?

@semorrison semorrison added awaiting-author Waiting for PR author to address issues and removed awaiting-review This PR is ready for review; the author thinks it is ready to be merged. labels Apr 24, 2024
@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added the merge-conflict This PR has merge conflicts with the `main` branch which must be resolved by the author. label May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-author Waiting for PR author to address issues 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.

None yet

4 participants