-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add analytic fully-qualified * add test * correct warning message ## Issue (#1403)
- Loading branch information
Arrgentum
committed
Jun 28, 2022
1 parent
5f77cad
commit f7e6ed1
Showing
4 changed files
with
77 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 31 additions & 16 deletions
47
diktat-rules/src/test/resources/test/paragraph3/newlines/LongDotQualifiedExpressionTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,66 @@ | ||
package test.paragraph3.newlines | ||
|
||
val elem1 = firstArgumentDot?.secondArgumentDot?.thirdArgumentDot?.fourthArgumentDot?.fifthArgumentDot?.sixthArgumentDot | ||
val elem1 = firstArgumentDot()?.secondArgumentDot?.thirdArgumentDot?.fourthArgumentDot?.fifthArgumentDot?.sixthArgumentDot | ||
|
||
|
||
val elem2 = firstArgumentDot?.secondArgumentDot?.thirdArgumentDot | ||
val elem2 = firstArgumentDot?.secondArgumentDot()?.thirdArgumentDot | ||
?.fourthArgumentDot?.fifthArgumentDot?.sixthArgumentDot | ||
|
||
|
||
val elem3 = firstArgumentDot?.secondArgumentDot?.thirdArgumentDot?.fourthArgumentDot | ||
val elem3 = firstArgumentDot?.secondArgumentDot?.thirdArgumentDot()?.fourthArgumentDot | ||
?.fifthArgumentDot?.sixthArgumentDot | ||
|
||
|
||
val elem4 = firstArgumentDot?.secondArgumentDot?.thirdArgumentDot + firstArgumentDot?.secondArgumentDot?.thirdArgumentDot?.fourthArgumentDot | ||
|
||
|
||
val elem5 = firstArgumentDot!!.secondArgumentDot!!.thirdArgumentDot!!.fourthArgumentDot!!.fifthArgumentDot!!.sixthArgumentDot | ||
val elem5 = firstArgumentDot()!!.secondArgumentDot()!!.thirdArgumentDot!!.fourthArgumentDot!!.fifthArgumentDot!!.sixthArgumentDot() | ||
|
||
|
||
val elem6 = firstArgumentDot!!.secondArgumentDot!!.thirdArgumentDot!! | ||
.fourthArgumentDot!!.fifthArgumentDot!!.sixthArgumentDot | ||
val elem6 = firstArgumentDot!!.secondArgumentDot!!.thirdArgumentDot()!! | ||
.fourthArgumentDot!!.fifthArgumentDot()!!.sixthArgumentDot | ||
|
||
|
||
val elem7 = firstArgumentDot!!.secondArgumentDot!!.thirdArgumentDot!!.fourthArgumentDot!! | ||
val elem7 = firstArgumentDot!!.secondArgumentDot()!!.thirdArgumentDot!!.fourthArgumentDot()!! | ||
.fifthArgumentDot!!.sixthArgumentDot | ||
|
||
|
||
val elem8 = firstArgumentDot!!.secondArgumentDot!!.thirdArgumentDot + firstArgumentDot!!.secondArgumentDot!!.thirdArgumentDot!!.fourthArgumentDot | ||
val elem8 = firstArgumentDot()!!.secondArgumentDot!!.thirdArgumentDot + firstArgumentDot!!.secondArgumentDot!!.thirdArgumentDot!!.fourthArgumentDot | ||
|
||
|
||
val elem9 = firstArgumentDot.secondArgumentDot.thirdArgumentDot.fourthArgumentDot.fifthArgumentDot.sixthArgumentDot | ||
val elem9 = firstArgumentDot().secondArgumentDot.thirdArgumentDot().fourthArgumentDot.fifthArgumentDot.sixthArgumentDot | ||
|
||
|
||
val elem10 = firstArgumentDot.secondArgumentDot.thirdArgumentDot | ||
.fourthArgumentDot.fifthArgumentDot.sixthArgumentDot | ||
val elem10 = firstArgumentDot.secondArgumentDot().thirdArgumentDot | ||
.fourthArgumentDot.fifthArgumentDot().sixthArgumentDot | ||
|
||
|
||
val elem11 = firstArgumentDot.secondArgumentDot.thirdArgumentDot.fourthArgumentDot | ||
val elem11 = firstArgumentDot.secondArgumentDot.thirdArgumentDot().fourthArgumentDot | ||
.fifthArgumentDot.sixthArgumentDot | ||
|
||
|
||
val elem12 = firstArgumentDot.secondArgumentDot.thirdArgumentDot + firstArgumentDot.secondArgumentDot.thirdArgumentDot.fourthArgumentDot | ||
val elem12 = firstArgumentDot.secondArgumentDot.thirdArgumentDot + firstArgumentDot.secondArgumentDot().thirdArgumentDot.fourthArgumentDot | ||
|
||
|
||
val elem13 = firstArgumentDot!!.secondArgumentDot?.thirdArgumentDot.fourthArgumentDot!!.fifthArgumentDot?.sixthArgumentDot | ||
val elem13 = firstArgumentDot!!.secondArgumentDot?.thirdArgumentDot().fourthArgumentDot!!.fifthArgumentDot()?.sixthArgumentDot | ||
|
||
|
||
val elem14 = firstArgumentDot.secondArgumentDot?.thirdArgumentDot!!.fourthArgumentDot?.fifthArgumentDot.sixthArgumentDot | ||
val elem14 = firstArgumentDot.secondArgumentDot?.thirdArgumentDot()!!.fourthArgumentDot?.fifthArgumentDot.sixthArgumentDot | ||
|
||
|
||
val elem15 = firstArgumentDot?.secondArgumentDot!!.thirdArgumentDot.fourthArgumentDot.fifthArgumentDot!!.sixthArgumentDot | ||
val elem15 = firstArgumentDot?.secondArgumentDot!!.thirdArgumentDot.fourthArgumentDot().fifthArgumentDot!!.sixthArgumentDot | ||
|
||
|
||
val elem16 = firstArgumentDot.secondArgumentDot.thirdArgumentDot.fourthArgumentDot.fifthArgumentDot.sixthArgumentDot | ||
|
||
|
||
val elem17 = firstArgumentDot!!.secondArgumentDot.thirdArgumentDot!!.fourthArgumentDot.fifthArgumentDot!!.sixthArgumentDot | ||
|
||
|
||
val elem18 = firstArgumentDot.secondArgumentDot?.thirdArgumentDot.fourthArgumentDot?.fifthArgumentDot.sixthArgumentDot | ||
|
||
|
||
private val holder: java.util.concurrent.atomic.AtomicReference<T> = java.util.concurrent.atomic.AtomicReference(valueToStore) | ||
|
||
|
||
private val holder: kotlin.native.concurrent.AtomicReference<T> = kotlin.native.concurrent.AtomicReference(valueToStore) |