Skip to content

Commit

Permalink
Correct file formatting
Browse files Browse the repository at this point in the history
### What's done:

 * Formatting corrected.
  • Loading branch information
0x6675636b796f75676974687562 committed Jun 29, 2022
1 parent 6cf4d5a commit ba086e8
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,11 @@ class StringTemplateFormatRule(configRules: List<RulesConfig>) : DiktatRule(
(!(node.treeNext
.text
.first()
.isLetterOrDigit() // checking if first letter is valid
|| node.treeNext.text.startsWith("_")) || node.treeNext.elementType == CLOSING_QUOTE)
// checking if first letter is valid
.isLetterOrDigit() ||
node.treeNext.text.startsWith("_")) ||
node.treeNext.elementType == CLOSING_QUOTE
)
} else if (!isArrayAccessExpression) {
node.hasAnyChildOfTypes(FLOAT_CONSTANT, INTEGER_CONSTANT) // it also fixes "${1.0}asd" cases
} else {
Expand Down

0 comments on commit ba086e8

Please sign in to comment.