-
Notifications
You must be signed in to change notification settings - Fork 30
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
Modify rule S1854: Expand and adjust for LaYC #3150
Conversation
Hey @necto I'm not yet happy with the updated rule description. I'm especially unhappy with Cheers |
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.
I think it is important to mention the side effects of the RHS. (In the "Pitfalls" section?)
For example, here the fwrite
call is probably made for its side effect:
size_t written = fwrite(str, sizeof(*str), strlen(str), fd);
I would also mention the (void)
trick to ignore the [[nodiscard]]
return values:
[[nodiscard]] int f();
void g() {
(void)f();
}
Sold! Thanks for the suggestions. |
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.
Looks pretty solid. Only minor nits left
Co-authored-by: Arseniy Zaostrovnykh <[email protected]>
Co-authored-by: Arseniy Zaostrovnykh <[email protected]>
Co-authored-by: Arseniy Zaostrovnykh <[email protected]>
Co-authored-by: Arseniy Zaostrovnykh <[email protected]>
Co-authored-by: Arseniy Zaostrovnykh <[email protected]>
Co-authored-by: Arseniy Zaostrovnykh <[email protected]>
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.
LGTM! See the minor nits in line comments
Co-authored-by: Arseniy Zaostrovnykh <[email protected]>
Co-authored-by: Arseniy Zaostrovnykh <[email protected]>
SonarQube Quality Gate for 'rspec-tools' |
SonarQube Quality Gate for 'rspec-frontend' |
Review
A dedicated reviewer checked the rule description successfully for: