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

False positive: suggests Set.empty() for mutable Sets #253

Merged

Conversation

mccartney
Copy link
Collaborator

The hint to use Set.empty instead of Set() is relevant only if immutable sets are used. For mutable sets the suggestion is invalid.

@mccartney
Copy link
Collaborator Author

After this gets accepted I suggest to fix other collection inspections - this PR is only for sets.

@sksamuel sksamuel merged commit b081769 into scapegoat-scala:master Nov 10, 2019
@sksamuel
Copy link
Collaborator

👍

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

Successfully merging this pull request may close these issues.

2 participants