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

Use curly braces in if statement, in accordance with upcoming lint rule change. #760

Merged
merged 1 commit into from
Jun 27, 2024

Conversation

copybara-service[bot]
Copy link

Use curly braces in if statement, in accordance with upcoming lint rule change.

This lint rule currently measures from the end of the condition, but needs to measure from the start of the if-statement. E.g.

if ("long condition and other long condition" != "another long condition" &&
"more tests".isNotEmpty) return null;
This is currently allowed, but should not be, as per Effective Dart.

This will be fixed in a Dart SDK CL.

…le change.

This lint rule currently measures from the end of the condition, but needs to measure from the start of the if-statement. E.g.

if ("long condition and other long condition" != "another long condition" &&
     "more tests".isNotEmpty) return null;
This is currently allowed, but should not be, as per Effective Dart.

This will be fixed in a Dart SDK CL.

PiperOrigin-RevId: 647347218
@copybara-service copybara-service bot merged commit a7fdf71 into master Jun 27, 2024
@copybara-service copybara-service bot deleted the test_647076061 branch June 27, 2024 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant