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

BuilderReturnThis: Don't flag already annotated builder methods #40

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rickie
Copy link
Member

@rickie rickie commented Sep 19, 2022

It's similar to the extra check in CanIgnoreReturnValueSuggester.

Copy link

@ibabiankou ibabiankou left a comment

Choose a reason for hiding this comment

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

Thanks for picking it up right away 🚀

@rickie
Copy link
Member Author

rickie commented Jan 3, 2023

This is no longer an issue. Verified this with current master.

@rickie rickie closed this Jan 3, 2023
@rickie rickie reopened this Jan 3, 2023
@rickie
Copy link
Member Author

rickie commented Jan 3, 2023

I was wrong, this is still a problem (ran the wrong local repository build 😅).

After all we didn't have that many violations or rewrote our code in such a way that we didn't need a suppression. Still, this exact case seems like a clear improvement.

WDYT @Stephan202 ?

@Stephan202 Stephan202 force-pushed the rossendrijver/bugs/builder_return_this branch from d3840ad to 4ff8187 Compare August 6, 2023 17:46
Copy link
Member

@Stephan202 Stephan202 left a comment

Choose a reason for hiding this comment

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

I missed this question; sorry for the delay. Rebased the branch. I think this is a fair suggestion, though perhaps we can construct a suggested commit message that describes in which cases such a builder method is useful? (I forgot the relevant context.)

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