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

Add missing whitespace when else is on same line as true condition #1565

Merged
merged 4 commits into from Aug 3, 2022

Conversation

paul-dingemans
Copy link
Collaborator

@paul-dingemans paul-dingemans commented Aug 2, 2022

Description

Add missing whitespace when else is on same line as true condition

Closes #1560

Report violations for:

if (true) 50
  .toString()

if (true) 50
else 55

Closes #828

Checklist

  • PR description added
  • tests are added
  • CHANGELOG.md is updated

In case of adding a new rule:

  • README.md is updated
  • Rule has been applied on Ktlint itself and violations are fixed

@paul-dingemans paul-dingemans added this to the 0.47.0 milestone Aug 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant