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

Prevent exception in binary-expression-wrapping rule #2607

Merged
merged 1 commit into from
Mar 17, 2024

Commits on Mar 12, 2024

  1. Prevent exception in binary-expression-wrapping rule in case it is …

    …preceded on the same line by a block comment containing a newline character
    
    Function `leavesOnLine` calls function `getFirstLeafOnLineOrSelf` which finds the first leaf on the line by looking for newline character. A block comment containing a newline character resulted in considering that block comment to be the first element on the line, even in case it was preceded by other elements on the same line.
    
    Due to this change, the `max-line-length` rule failed, which has been resolved by refactoring the calculation of the line length.
    
    Closes #2601
    paul-dingemans committed Mar 12, 2024
    Configuration menu
    Copy the full SHA
    d554364 View commit details
    Browse the repository at this point in the history