Skip to content

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

Open
rickie wants to merge 1 commit into
masterfrom
rossendrijver/bugs/builder_return_this
Open

BuilderReturnThis: Don't flag already annotated builder methods#40
rickie wants to merge 1 commit into
masterfrom
rossendrijver/bugs/builder_return_this

Conversation

@rickie

@rickie rickie commented Sep 19, 2022

Copy link
Copy Markdown
Member

It's similar to the extra check in CanIgnoreReturnValueSuggester.

@rickie rickie requested a review from Stephan202 September 19, 2022 19:40

@ibabiankou ibabiankou left a comment

Copy link
Copy Markdown

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

rickie commented Jan 3, 2023

Copy link
Copy Markdown
Member Author

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

rickie commented Jan 3, 2023

Copy link
Copy Markdown
Member Author

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

@Stephan202 Stephan202 left a comment

Copy link
Copy Markdown
Member

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

Development

Successfully merging this pull request may close these issues.

3 participants