Skip to content

Commit

Permalink
### Whats added:
Browse files Browse the repository at this point in the history
 * corrected logic fix and warn long Dot Qualified Expression and Safe Access Expression and Postfix Expression
 * added fix test in NewLineRuleFixTest
 * corrected and added warnings in NewLineRuleWarnTest
 * run diktat:fix@diktat

  ### Issue (#865)
  • Loading branch information
Arrgentum committed May 31, 2022
1 parent 80d5e21 commit 51c7c47
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -544,8 +544,8 @@ fun ASTNode.leaveExactlyNumNewLines(num: Int) {
}

/**
* If [whiteSpaceNode] is not null and has type [WHITE_SPACE], prepend a line break to it's text.
* Otherwise, insert a new node with a line break before [beforeNode]
* If [whiteSpaceNode] is not null and has type [WHITE_SPACE] and this [WHITE_SPACE] contains 1 line, prepend a line break to it's text.
* If [whiteSpaceNode] is null or has`t type [WHITE_SPACE], insert a new node with a line break before [beforeNode]
*
* @param whiteSpaceNode a node that can possibly be modified
* @param beforeNode a node before which a new WHITE_SPACE node will be inserted
Expand Down

0 comments on commit 51c7c47

Please sign in to comment.