Skip to content

Commit

Permalink
### Whats added:
Browse files Browse the repository at this point in the history
 * corrected logic fix and warn String Template in LineLength rule
 * added logic fix and warn long Dot Qualified Expression and Safe Access Expression in LineLength rule
 * added logic fix and warn Value Arguments List in LineLength rule
 * added and corrected fix and warn tests in LineLength rule
 * corrected code and KDoc in method appendNewlineMergingWhiteSpace in AstNodeUtils.kt
 * fix code with diktat:fix@diktat
 * added comments to classes and functions
 * correct code with running detect

 ### Issue (#1243)
  • Loading branch information
Arrgentum committed May 31, 2022
1 parent a5e91dc commit a06a4e3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ class LineLength(configRules: List<RulesConfig>) : DiktatRule(
checkLength(it, configuration)
}
}
println(node.text)
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package test.paragraph3.long_line

val G =
ThisIsVeryyyyLooooonDooootQualifiedExpressioWithoutDot.lalalala.lalalal

val A = This.Is.Veeeeryyyyyyy.Loooooong.Dot
.Qualified.Expression

Expand All @@ -19,4 +22,4 @@ val F = This!!.Is!!.Veeeeryyyyyyy!!.Loooooong!!
.Dot!!.Qualified!!.Expression

val G =
ThisIsVeryLonDotQualifiedExpressioWithoutDot.lalalala.lalalal
ThisIsVeryyyyLooooonDooootQualifiedExpressioWithoutDot.lalalala.lalalal
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package test.paragraph3.long_line

val G = ThisIsVeryyyyLooooonDooootQualifiedExpressioWithoutDot.lalalala.lalalal

val A = This.Is.Veeeeryyyyyyy.Loooooong.Dot.Qualified.Expression

val B = This?.Is?.Veeeeryyyyyyy?.Loooooong?.Dot?.Qualified?.Expression
Expand All @@ -15,4 +17,4 @@ val E = This?.Is?.Veeeeryyyyyyy?.Loooooong?.Dot
val F = This!!.Is!!.Veeeeryyyyyyy!!.Loooooong!!
.Dot!!.Qualified!!.Expression

val G = ThisIsVeryLonDotQualifiedExpressioWithoutDot.lalalala.lalalal
val G = ThisIsVeryyyyLooooonDooootQualifiedExpressioWithoutDot.lalalala.lalalal

0 comments on commit a06a4e3

Please sign in to comment.