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

Lint: multiple factory definitions that make the same object #1644

Open
mike-burns opened this issue May 10, 2024 · 0 comments
Open

Lint: multiple factory definitions that make the same object #1644

mike-burns opened this issue May 10, 2024 · 0 comments
Labels

Comments

@mike-burns
Copy link
Contributor

Idea for a lint: complain if two factory definitions create the same object. This is a goal towards these ideals:

  • each factory definition is the minimum required to make the object
  • anything additional is added via traits

We'll need to consider factories that make e.g. Hash, String, Array -- either by letting the user turn off the linter for them, or by recognizing them as OK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant