Skip to content

Commit

Permalink
## Whats Added:
Browse files Browse the repository at this point in the history
* Add logic fully-qualified: not split `dot qualified expression` before first `call expression`
* Add 1 fix test and 5 test examples
* Correct warning message
* run fix mode
  • Loading branch information
Arrgentum committed Jun 29, 2022
1 parent e930ead commit 688dc31
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ class NewlinesRule(configRules: List<RulesConfig>) : DiktatRule(
}
}

private fun isTextContainsFunctionCall(node: ASTNode): Boolean = node.textContains('(') || node.textContains('}')
private fun isTextContainsFunctionCall(node: ASTNode): Boolean = node.textContains('(') || node.textContains('{')

private fun List<ASTNode>.isNotValidCalls(node: ASTNode): Boolean {
if (this.size == 1) {
Expand Down

0 comments on commit 688dc31

Please sign in to comment.