-
Notifications
You must be signed in to change notification settings - Fork 39
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
Introduce CollectionForEach
Refaster rule
#390
Introduce CollectionForEach
Refaster rule
#390
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice; left two suggestions. Congrats on your first contribution! 🎉
NB: The build fails because of actions/setup-java#422; if that issue doesn't resolve itself soon we'll open a downgrade PR for this repo.
error-prone-contrib/src/main/java/tech/picnic/errorprone/refasterrules/CollectionRules.java
Outdated
Show resolved
Hide resolved
error-prone-contrib/src/main/java/tech/picnic/errorprone/refasterrules/CollectionRules.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optimistically approving assuming @Stephan202's suggestions will be taken care of. 🙂
Looks good. No mutations were possible for these changes. |
Thanks for the comments @Stephan202. I pushed the suggested changes 🙂 |
CollectionForEach
Refaster rule
Nice! Suggested commit message:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice @amestoyg, congrats on your first PR 🎉!
@Stephan202 tweaked suggested commit message.
I linked the PR already, but still I think we should have the habit to refer to the tickets in the commit message.
Do we either prefer the terminology "Fixes", "Resolves" or "Closes"?
a892d61
to
67b4b9a
Compare
Rebased. Do you also approve @Stephan202 😉? |
Looks good. No mutations were possible for these changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doh. Of course! 🎉
Related to the issue #387, I added a new Refaster rule to rewrite the use of
forEach
when working with collections.