Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance smoke tests #1766

Merged
merged 12 commits into from
Oct 27, 2023

refactored TestComparatorUnit to use ResourceReader as main property

1d1ab02
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

Enhance smoke tests #1766

refactored TestComparatorUnit to use ResourceReader as main property
1d1ab02
Select commit
Loading
Failed to load commit list.
GitHub Actions / JUnit Tests (Windows, EnricoMi/publish-unit-test-result-action@v2) failed Oct 27, 2023 in 0s

3 fail, 29 skipped, 1 355 pass in 8m 9s

   164 files  ±0     164 suites  ±0   8m 9s ⏱️ +45s
1 387 tests ±0  1 355 ✔️ +11  29 💤 ±0  3  - 11 
2 766 runs  ±0  2 734 ✔️ +11  29 💤 ±0  3  - 11 

Results for commit 1d1ab02. ± Comparison against earlier commit 36f7ec0.

Annotations

Check warning on line 0 in com.saveourtool.diktat.ruleset.smoke.DiktatSmokeTest

See this annotation in the file changed.

@github-actions github-actions / JUnit Tests (Windows, EnricoMi/publish-unit-test-result-action@v2)

fix can cause long line() (com.saveourtool.diktat.ruleset.smoke.DiktatSmokeTest) failed

diktat-ruleset\build\test-results\test\TEST-com.saveourtool.diktat.ruleset.smoke.DiktatSmokeTest.xml [took 4s]
Raw output
org.gradle.internal.exceptions.DefaultMultiCauseException: Multiple Failures (2 failures)
	org.opentest4j.AssertionFailedError: expected: <true> but was: <false>
	org.opentest4j.AssertionFailedError: expected: <package com.saveourtool.diktat

fun foo() {
    (1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 or 10 or 11 or 12 or 13 or 14 or 15 or 16 or 17 or 18 or 19 or 20 or 21 or 22 or 23 or 24 or 25 or 26 or 27 or 28 or 29 or 30 or 31
    ?: 32 or 33 or 34 or 35 or 36 or 37 or 38 or 39 ?: 40 or 41 or 42 or 43 or 44 or 45 or 46 or 47 or 48 or 49 or 50 or 51 or 52 or 53 + 54 or 55 or 56 or 57 or 58 or 59
    ?: 60 or 61 or 62 or 63 or 64 or 65 or 66 - 67 or 68 or 69 or 70 or 1 + 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 or 10 or 11 or 12 or 13 or 14 or 15 or 16 or 17 or 18 + 19 -
        20 or 21 or 22 or 23 or 24 or 25 or 26 or 27 or 28 or 29 or 30 or 31 or 32 or 33 or 34 or 35 or 36 or 37 or 38 or 39 or 40 or 41 || 42 or 43 or 44 or 45 or 46 or 47 && 48 or 49 ||
        50 or 51 or 52 or 53 or 54 or 55 or 56 or 57 or 58 or 59 or 60 or 61 or 62 or 63 or 64 or 65 or 66 or 67 or 68 or 69 or 70 or 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 or 10 or 11 or
            12 or 13 or 14 or 15 or 16 or 17 or 18 or 19 or 20 or 21 or 22 or 23 or 24 or 25 or 26 or 27 or 28 or 29 or 30 or 31 or 32 or 33 or 34 or 35 or 36 or 37 or 38 or 39 or 40 or 41 or
            42 or 43 or 44 or 45 or 46 or 47 or 48 or 49 or 50 or 51 or 52 or 53 or 54 or 55 or 56 or 57 or 58 or 59 or 60 or 61 or 62 or 63 or 64 or 65 or 66 or 67 or 68 or 69 or 70)
}
> but was: <package com.saveourtool.diktat

fun foo() {
    (1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 or 10 or 11 or 12 or 13 or 14 or 15 or 16 or 17 or 18 or 19 or 20 or 21 or 22 or 23 or 24 or 25 or 26 or 27 or 28 or 29 or 30 or 31
    ?: 32 or 33 or 34 or 35 or 36 or 37 or 38 or 39 ?: 40 or 41 or 42 or 43 or 44 or 45 or 46 or 47 or 48 or 49 or 50 or 51 or 52 or 53 + 54 or 55 or 56 or 57 or 58 or 59
    ?: 60 or 61 or 62 or 63 or 64 or 65 or 66 - 67 or 68 or 69 or 70 or 1 + 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 or 10 or 11 or 12 or 13 or 14 or 15 or 16 or 17 or 18 + 19 -
        20 or 21 or 22 or 23 or 24 or 25 or 26 or 27 or 28 or 29 or 30 or 31 or 32 or 33 or 34 or 35 or 36 or 37 or 38 or 39 or 40 or 41 || 42 or 43 or 44 or 45 or 46 or 47 &&
        48 or 49 ||
        50 or 51 or 52 or 53 or 54 or 55 or 56 or 57 or 58 or 59 or 60 or 61 or 62 or 63 or 64 or 65 or 66 or 67 or 68 or 69 or 70 or 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 or 10 or 11 or
            12 or 13 or 14 or 15 or 16 or 17 or 18 or 19 or 20 or 21 or 22 or 23 or 24 or 25 or 26 or 27 or 28 or 29 or 30 or 31 or 32 or 33 or 34 or 35 or 36 or 37 or 38 or 39 or 40 or 41 or
            42 or 43 or 44 or 45 or 46 or 47 or 48 or 49 or 50 or 51 or 52 or 53 or 54 or 55 or 56 or 57 or 58 or 59 or 60 or 61 or 62 or 63 or 64 or 65 or 66 or 67 or 68 or 69 or 70)
}
>
	at org.junit.jupiter.api.AssertAll.assertAll(AssertAll.java:80)
	at org.junit.jupiter.api.AssertAll.assertAll(AssertAll.java:44)
	at org.junit.jupiter.api.AssertAll.assertAll(AssertAll.java:38)
	at org.junit.jupiter.api.Assertions.assertAll(Assertions.java:2940)
	at com.saveourtool.diktat.ruleset.smoke.DiktatSmokeTest.fixAndCompare(DiktatSmokeTest.kt:29)
	at com.saveourtool.diktat.ruleset.smoke.DiktatSmokeTestBase.fix can cause long line(DiktatSmokeTestBase.kt:316)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at java.util.ArrayList.forEach(ArrayList.java:1259)
	at java.util.ArrayList.forEach(ArrayList.java:1259)
	Suppressed: org.opentest4j.AssertionFailedError: expected: <true> but was: <false>
		at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
		at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
		at org.junit.jupiter.api.AssertTrue.failNotTrue(AssertTrue.java:63)
		at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:36)
		at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:31)
		at org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:179)
		at com.saveourtool.diktat.ruleset.smoke.DiktatSmokeTest.fixAndCompare$lambda$0(DiktatSmokeTest.kt:31)
		at org.junit.jupiter.api.AssertAll.lambda$assertAll$0(AssertAll.java:68)
		at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
		at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
		at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
		at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
		at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
		at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
		at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:566)
		at org.junit.jupiter.api.AssertAll.assertAll(AssertAll.java:77)
		... 8 more
	Suppressed: org.opentest4j.AssertionFailedError: expected: <package com.saveourtool.diktat

fun foo() {
    (1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 or 10 or 11 or 12 or 13 or 14 or 15 or 16 or 17 or 18 or 19 or 20 or 21 or 22 or 23 or 24 or 25 or 26 or 27 or 28 or 29 or 30 or 31
    ?: 32 or 33 or 34 or 35 or 36 or 37 or 38 or 39 ?: 40 or 41 or 42 or 43 or 44 or 45 or 46 or 47 or 48 or 49 or 50 or 51 or 52 or 53 + 54 or 55 or 56 or 57 or 58 or 59
    ?: 60 or 61 or 62 or 63 or 64 or 65 or 66 - 67 or 68 or 69 or 70 or 1 + 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 or 10 or 11 or 12 or 13 or 14 or 15 or 16 or 17 or 18 + 19 -
        20 or 21 or 22 or 23 or 24 or 25 or 26 or 27 or 28 or 29 or 30 or 31 or 32 or 33 or 34 or 35 or 36 or 37 or 38 or 39 or 40 or 41 || 42 or 43 or 44 or 45 or 46 or 47 && 48 or 49 ||
        50 or 51 or 52 or 53 or 54 or 55 or 56 or 57 or 58 or 59 or 60 or 61 or 62 or 63 or 64 or 65 or 66 or 67 or 68 or 69 or 70 or 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 or 10 or 11 or
            12 or 13 or 14 or 15 or 16 or 17 or 18 or 19 or 20 or 21 or 22 or 23 or 24 or 25 or 26 or 27 or 28 or 29 or 30 or 31 or 32 or 33 or 34 or 35 or 36 or 37 or 38 or 39 or 40 or 41 or
            42 or 43 or 44 or 45 or 46 or 47 or 48 or 49 or 50 or 51 or 52 or 53 or 54 or 55 or 56 or 57 or 58 or 59 or 60 or 61 or 62 or 63 or 64 or 65 or 66 or 67 or 68 or 69 or 70)
}
> but was: <package com.saveourtool.diktat

fun foo() {
    (1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 or 10 or 11 or 12 or 13 or 14 or 15 or 16 or 17 or 18 or 19 or 20 or 21 or 22 or 23 or 24 or 25 or 26 or 27 or 28 or 29 or 30 or 31
    ?: 32 or 33 or 34 or 35 or 36 or 37 or 38 or 39 ?: 40 or 41 or 42 or 43 or 44 or 45 or 46 or 47 or 48 or 49 or 50 or 51 or 52 or 53 + 54 or 55 or 56 or 57 or 58 or 59
    ?: 60 or 61 or 62 or 63 or 64 or 65 or 66 - 67 or 68 or 69 or 70 or 1 + 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 or 10 or 11 or 12 or 13 or 14 or 15 or 16 or 17 or 18 + 19 -
        20 or 21 or 22 or 23 or 24 or 25 or 26 or 27 or 28 or 29 or 30 or 31 or 32 or 33 or 34 or 35 or 36 or 37 or 38 or 39 or 40 or 41 || 42 or 43 or 44 or 45 or 46 or 47 &&
        48 or 49 ||
        50 or 51 or 52 or 53 or 54 or 55 or 56 or 57 or 58 or 59 or 60 or 61 or 62 or 63 or 64 or 65 or 66 or 67 or 68 or 69 or 70 or 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 or 10 or 11 or
            12 or 13 or 14 or 15 or 16 or 17 or 18 or 19 or 20 or 21 or 22 or 23 or 24 or 25 or 26 or 27 or 28 or 29 or 30 or 31 or 32 or 33 or 34 or 35 or 36 or 37 or 38 or 39 or 40 or 41 or
            42 or 43 or 44 or 45 or 46 or 47 or 48 or 49 or 50 or 51 or 52 or 53 or 54 or 55 or 56 or 57 or 58 or 59 or 60 or 61 or 62 or 63 or 64 or 65 or 66 or 67 or 68 or 69 or 70)
}
>
		at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
		at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
		at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
		at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
		at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177)
		at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1141)
		at com.saveourtool.diktat.ruleset.smoke.DiktatSmokeTest.fixAndCompare$lambda$1(DiktatSmokeTest.kt:34)
		at org.junit.jupiter.api.AssertAll.lambda$assertAll$0(AssertAll.java:68)
		at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
		at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
		at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
		at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
		at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
		at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
		at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:566)
		at org.junit.jupiter.api.AssertAll.assertAll(AssertAll.java:77)
		... 8 more
Cause 1: org.opentest4j.AssertionFailedError: expected: <true> but was: <false>
	at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
	at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
	at org.junit.jupiter.api.AssertTrue.failNotTrue(AssertTrue.java:63)
	at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:36)
	at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:31)
	at org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:179)
	at com.saveourtool.diktat.ruleset.smoke.DiktatSmokeTest.fixAndCompare$lambda$0(DiktatSmokeTest.kt:31)
	at org.junit.jupiter.api.AssertAll.lambda$assertAll$0(AssertAll.java:68)
	at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
	at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
	at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:566)
	at org.junit.jupiter.api.AssertAll.assertAll(AssertAll.java:77)
	at org.junit.jupiter.api.AssertAll.assertAll(AssertAll.java:44)
	at org.junit.jupiter.api.AssertAll.assertAll(AssertAll.java:38)
	at org.junit.jupiter.api.Assertions.assertAll(Assertions.java:2940)
	at com.saveourtool.diktat.ruleset.smoke.DiktatSmokeTest.fixAndCompare(DiktatSmokeTest.kt:29)
	at com.saveourtool.diktat.ruleset.smoke.DiktatSmokeTestBase.fix can cause long line(DiktatSmokeTestBase.kt:316)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at java.util.ArrayList.forEach(ArrayList.java:1259)
	at java.util.ArrayList.forEach(ArrayList.java:1259)
Cause 2: org.opentest4j.AssertionFailedError: expected: <package com.saveourtool.diktat

fun foo() {
    (1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 or 10 or 11 or 12 or 13 or 14 or 15 or 16 or 17 or 18 or 19 or 20 or 21 or 22 or 23 or 24 or 25 or 26 or 27 or 28 or 29 or 30 or 31
    ?: 32 or 33 or 34 or 35 or 36 or 37 or 38 or 39 ?: 40 or 41 or 42 or 43 or 44 or 45 or 46 or 47 or 48 or 49 or 50 or 51 or 52 or 53 + 54 or 55 or 56 or 57 or 58 or 59
    ?: 60 or 61 or 62 or 63 or 64 or 65 or 66 - 67 or 68 or 69 or 70 or 1 + 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 or 10 or 11 or 12 or 13 or 14 or 15 or 16 or 17 or 18 + 19 -
        20 or 21 or 22 or 23 or 24 or 25 or 26 or 27 or 28 or 29 or 30 or 31 or 32 or 33 or 34 or 35 or 36 or 37 or 38 or 39 or 40 or 41 || 42 or 43 or 44 or 45 or 46 or 47 && 48 or 49 ||
        50 or 51 or 52 or 53 or 54 or 55 or 56 or 57 or 58 or 59 or 60 or 61 or 62 or 63 or 64 or 65 or 66 or 67 or 68 or 69 or 70 or 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 or 10 or 11 or
            12 or 13 or 14 or 15 or 16 or 17 or 18 or 19 or 20 or 21 or 22 or 23 or 24 or 25 or 26 or 27 or 28 or 29 or 30 or 31 or 32 or 33 or 34 or 35 or 36 or 37 or 38 or 39 or 40 or 41 or
            42 or 43 or 44 or 45 or 46 or 47 or 48 or 49 or 50 or 51 or 52 or 53 or 54 or 55 or 56 or 57 or 58 or 59 or 60 or 61 or 62 or 63 or 64 or 65 or 66 or 67 or 68 or 69 or 70)
}
> but was: <package com.saveourtool.diktat

fun foo() {
    (1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 or 10 or 11 or 12 or 13 or 14 or 15 or 16 or 17 or 18 or 19 or 20 or 21 or 22 or 23 or 24 or 25 or 26 or 27 or 28 or 29 or 30 or 31
    ?: 32 or 33 or 34 or 35 or 36 or 37 or 38 or 39 ?: 40 or 41 or 42 or 43 or 44 or 45 or 46 or 47 or 48 or 49 or 50 or 51 or 52 or 53 + 54 or 55 or 56 or 57 or 58 or 59
    ?: 60 or 61 or 62 or 63 or 64 or 65 or 66 - 67 or 68 or 69 or 70 or 1 + 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 or 10 or 11 or 12 or 13 or 14 or 15 or 16 or 17 or 18 + 19 -
        20 or 21 or 22 or 23 or 24 or 25 or 26 or 27 or 28 or 29 or 30 or 31 or 32 or 33 or 34 or 35 or 36 or 37 or 38 or 39 or 40 or 41 || 42 or 43 or 44 or 45 or 46 or 47 &&
        48 or 49 ||
        50 or 51 or 52 or 53 or 54 or 55 or 56 or 57 or 58 or 59 or 60 or 61 or 62 or 63 or 64 or 65 or 66 or 67 or 68 or 69 or 70 or 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 or 10 or 11 or
            12 or 13 or 14 or 15 or 16 or 17 or 18 or 19 or 20 or 21 or 22 or 23 or 24 or 25 or 26 or 27 or 28 or 29 or 30 or 31 or 32 or 33 or 34 or 35 or 36 or 37 or 38 or 39 or 40 or 41 or
            42 or 43 or 44 or 45 or 46 or 47 or 48 or 49 or 50 or 51 or 52 or 53 or 54 or 55 or 56 or 57 or 58 or 59 or 60 or 61 or 62 or 63 or 64 or 65 or 66 or 67 or 68 or 69 or 70)
}
>
	at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
	at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
	at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
	at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
	at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177)
	at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1141)
	at com.saveourtool.diktat.ruleset.smoke.DiktatSmokeTest.fixAndCompare$lambda$1(DiktatSmokeTest.kt:34)
	at org.junit.jupiter.api.AssertAll.lambda$assertAll$0(AssertAll.java:68)
	at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
	at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
	at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:566)
	at org.junit.jupiter.api.AssertAll.assertAll(AssertAll.java:77)
	at org.junit.jupiter.api.AssertAll.assertAll(AssertAll.java:44)
	at org.junit.jupiter.api.AssertAll.assertAll(AssertAll.java:38)
	at org.junit.jupiter.api.Assertions.assertAll(Assertions.java:2940)
	at com.saveourtool.diktat.ruleset.smoke.DiktatSmokeTest.fixAndCompare(DiktatSmokeTest.kt:29)
	at com.saveourtool.diktat.ruleset.smoke.DiktatSmokeTestBase.fix can cause long line(DiktatSmokeTestBase.kt:316)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at java.util.ArrayList.forEach(ArrayList.java:1259)
	at java.util.ArrayList.forEach(ArrayList.java:1259)

Check warning on line 0 in com.saveourtool.diktat.ruleset.smoke.DiktatSmokeTest

See this annotation in the file changed.

@github-actions github-actions / JUnit Tests (Windows, EnricoMi/publish-unit-test-result-action@v2)

smoke test with multiplatform project layout() (com.saveourtool.diktat.ruleset.smoke.DiktatSmokeTest) failed

diktat-ruleset\build\test-results\test\TEST-com.saveourtool.diktat.ruleset.smoke.DiktatSmokeTest.xml [took 0s]
Raw output
java.lang.Error: Internal error in diktat application
	at com.saveourtool.diktat.ruleset.rules.DiktatRule.invoke(DiktatRule.kt:79)
	at com.saveourtool.diktat.ktlint.KtLintRuleWrapper.beforeVisitChildNodes(KtLintRuleWrapper.kt:30)
	at com.pinterest.ktlint.rule.engine.internal.RuleExecutionContext$executeRuleOnNodeRecursively$1.invoke(RuleExecutionContext.kt:125)
	at com.pinterest.ktlint.rule.engine.internal.RuleExecutionContext$executeRuleOnNodeRecursively$1.invoke(RuleExecutionContext.kt:124)
	at com.pinterest.ktlint.rule.engine.internal.SuppressHandler.handle(SuppressHandler.kt:28)
	at com.pinterest.ktlint.rule.engine.internal.RuleExecutionContext.executeRuleOnNodeRecursively(RuleExecutionContext.kt:124)
	at com.pinterest.ktlint.rule.engine.internal.RuleExecutionContext.executeRuleOnNodeRecursively(RuleExecutionContext.kt:93)
	at com.pinterest.ktlint.rule.engine.internal.RuleExecutionContext.access$executeRuleOnNodeRecursively(RuleExecutionContext.kt:30)
	at com.pinterest.ktlint.rule.engine.internal.RuleExecutionContext$executeRuleOnNodeRecursively$2$1.invoke(RuleExecutionContext.kt:132)
	at com.pinterest.ktlint.rule.engine.internal.RuleExecutionContext$executeRuleOnNodeRecursively$2$1.invoke(RuleExecutionContext.kt:131)
	at com.pinterest.ktlint.rule.engine.internal.SuppressHandler.handle(SuppressHandler.kt:28)
	at com.pinterest.ktlint.rule.engine.internal.RuleExecutionContext.executeRuleOnNodeRecursively(RuleExecutionContext.kt:131)
	at com.pinterest.ktlint.rule.engine.internal.RuleExecutionContext.executeRuleOnNodeRecursively(RuleExecutionContext.kt:93)
	at com.pinterest.ktlint.rule.engine.internal.RuleExecutionContext.executeRule(RuleExecutionContext.kt:62)
	at com.pinterest.ktlint.rule.engine.api.KtLintRuleEngine$format$3.invoke(KtLintRuleEngine.kt:146)
	at com.pinterest.ktlint.rule.engine.api.KtLintRuleEngine$format$3.invoke(KtLintRuleEngine.kt:145)
	at com.pinterest.ktlint.rule.engine.internal.VisitorProvider$visitor$3.invoke(VisitorProvider.kt:46)
	at com.pinterest.ktlint.rule.engine.internal.VisitorProvider$visitor$3.invoke(VisitorProvider.kt:44)
	at com.pinterest.ktlint.rule.engine.api.KtLintRuleEngine.format(KtLintRuleEngine.kt:145)
	at com.saveourtool.diktat.ktlint.DiktatProcessorFactoryImpl$invoke$1.fix(DiktatProcessorFactoryImpl.kt:26)
	at com.saveourtool.diktat.ktlint.KtLintUtilsKt.format(KtLintUtils.kt:152)
	at com.saveourtool.diktat.ruleset.smoke.DiktatSmokeTest$getTestComparatorUnit$2.invoke(DiktatSmokeTest.kt:52)
	at com.saveourtool.diktat.ruleset.smoke.DiktatSmokeTest$getTestComparatorUnit$2.invoke(DiktatSmokeTest.kt:51)
	at com.saveourtool.diktat.test.framework.processing.TestComparatorUnit.compareFilesFromFileSystem(TestComparatorUnit.kt:87)
	at com.saveourtool.diktat.test.framework.processing.TestComparatorUnit.compareFilesFromResources(TestComparatorUnit.kt:57)
	at com.saveourtool.diktat.test.framework.processing.TestComparatorUnit.compareFilesFromResources$default(TestComparatorUnit.kt:40)
	at com.saveourtool.diktat.ruleset.smoke.DiktatSmokeTest.fixAndCompare(DiktatSmokeTest.kt:28)
	at com.saveourtool.diktat.ruleset.smoke.DiktatSmokeTestBase.smoke test with multiplatform project layout(DiktatSmokeTestBase.kt:322)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at java.util.ArrayList.forEach(ArrayList.java:1259)
	at java.util.ArrayList.forEach(ArrayList.java:1259)
Caused by: com.saveourtool.diktat.ruleset.utils.KotlinParseException: Text is not valid: [package com.saveourtool.diktat.......jsMain.kotlin.com.saveourtool.diktat.scripts]
	at com.saveourtool.diktat.ruleset.utils.KotlinParser.createNode(KotlinParser.kt:75)
	at com.saveourtool.diktat.ruleset.rules.chapter1.PackageNaming.insertNewPackageName(PackageNaming.kt:235)
	at com.saveourtool.diktat.ruleset.rules.chapter1.PackageNaming.access$insertNewPackageName(PackageNaming.kt:43)
	at com.saveourtool.diktat.ruleset.rules.chapter1.PackageNaming$checkFilePathMatchesWithPackageName$2.invoke(PackageNaming.kt:281)
	at com.saveourtool.diktat.ruleset.rules.chapter1.PackageNaming$checkFilePathMatchesWithPackageName$2.invoke(PackageNaming.kt:279)
	at com.saveourtool.diktat.ruleset.constants.Warnings.warnAndFix(Warnings.kt:310)
	at com.saveourtool.diktat.ruleset.rules.chapter1.PackageNaming.checkFilePathMatchesWithPackageName(PackageNaming.kt:279)
	at com.saveourtool.diktat.ruleset.rules.chapter1.PackageNaming.logic(PackageNaming.kt:79)
	at com.saveourtool.diktat.ruleset.rules.DiktatRule.invoke(DiktatRule.kt:66)
	... 30 more

Check warning on line 0 in com.saveourtool.diktat.ruleset.smoke.DiktatSaveSmokeTest

See this annotation in the file changed.

@github-actions github-actions / JUnit Tests (Windows, EnricoMi/publish-unit-test-result-action@v2)

fix can cause long line() (com.saveourtool.diktat.ruleset.smoke.DiktatSaveSmokeTest) failed

diktat-ruleset\build\test-results\test\TEST-com.saveourtool.diktat.ruleset.smoke.DiktatSaveSmokeTest.xml [took 5s]
Raw output
org.assertj.core.error.AssertJMultipleFailuresError: 
Multiple Failures (1 failure)
-- failure 1 --
[The output of "src/test/resources/test/smoke/save-0.3.4-mingwX64.exe src/test/resources/test/smoke/src/main/kotlin ManyLineTransformInLongLineTest.kt --log all"] 
Expecting actual:
  "[DEBUG]: Using the following properties for SAVE execution:
parallelMode=false, threads=1, logType=ALL, reportType=PLAIN, baseline=null, excludeSuites=null, includeSuites=null, language=null, resultOutput=STDOUT, reportDir=save-reports, testRootDir=src/test/resources/test/smoke/src/main/kotlin, testFiles=[ManyLineTransformInLongLineTest.kt]
[INFO]: Welcome to SAVE version 0.3.4
[DEBUG]: Initializing reporter com.saveourtool.save.reporter.plain.PlainTextReporter of type PLAIN
[TRACE]: Discovering parent configs of src/test/resources/test/smoke/src/main/kotlin/save.toml
[DEBUG]: Processing test config from the toml file: src/test/resources/test/smoke/save.toml
[DEBUG]: Processing test config from the toml file: src/test/resources/test/smoke/src/main/kotlin/save.toml
[TRACE]: Add child src/test/resources/test/smoke/src/main/kotlin/save.toml for src/test/resources/test/smoke/save.toml
[TRACE]: Discovering all descendant `save.toml`s of src/test/resources/test/smoke/src/main/kotlin/save.toml
[TRACE]: Discovered 1 files
[TRACE]: Discovered new pluginConfig: GeneralConfig(execCmd=java -showversion -jar ktlint --log-level=debug -R diktat.jar, batchSize=null, batchSeparator=null, tags=[smokeTest], description=SmokeTest, suiteName=SmokeTest, language=Kotlin, excludedTests=null, expectedWarningsPattern=// ;warn:?(.*):(\d*): (.+), expectedWarningsMiddlePattern=null, expectedWarningsEndPattern=null, runConfigPattern=null, timeOutMillis=3600000)
[TRACE]: Discovered new pluginConfig: FixAndWarnPluginConfig(fix=FixPluginConfig(execFlags=-F, resourceNameTestSuffix=null, resourceNameExpectedSuffix=null, ignoreLines=null), warn=WarnPluginConfig(execFlags=null, actualWarningsPattern=(\w+\..+):(\d+):(\d+): (\[.*\].*)$, warningTextHasLine=true, warningTextHasColumn=true, lineCaptureGroup=1, columnCaptureGroup=2, messageCaptureGroup=3, messageCaptureGroupMiddle=null, messageCaptureGroupEnd=null, fileNameCaptureGroupOut=null, lineCaptureGroupOut=2, columnCaptureGroupOut=3, messageCaptureGroupOut=4, exactWarningsMatch=false, testNameRegex=null, linePlaceholder=null, wildCardInDirectoryMode=null, patternForRegexInWarning=null, partialWarnTextMatch=null, testToolResFileOutput=null, ignoreLines=null, benchmarkMode=null, expectedWarningsFormat=null, actualWarningsFormat=null, expectedWarningsFileName=null, actualWarningsFileName=null))
[DEBUG]: Merging configs (with parental configs from higher directory level) for src/test/resources/test/smoke/save.toml
[DEBUG]: Overriding configs for src/test/resources/test/smoke/save.toml
[TRACE]: Discovered new pluginConfig: GeneralConfig(execCmd=java -showversion -jar ktlint --log-level=debug -R diktat.jar, batchSize=null, batchSeparator=null, tags=[smokeTest], description=SmokeTest, suiteName=SmokeTest, language=Kotlin, excludedTests=null, expectedWarningsPattern=// ;warn:?(.*):(\d*): (.+), expectedWarningsMiddlePattern=null, expectedWarningsEndPattern=null, runConfigPattern=null, timeOutMillis=null)
[TRACE]: Discovered new pluginConfig: FixAndWarnPluginConfig(fix=FixPluginConfig(execFlags=-F, resourceNameTestSuffix=null, resourceNameExpectedSuffix=null, ignoreLines=null), warn=WarnPluginConfig(execFlags=null, actualWarningsPattern=(\w+\..+):(\d+):(\d+): (\[.*\].*)$, warningTextHasLine=null, warningTextHasColumn=null, lineCaptureGroup=null, columnCaptureGroup=null, messageCaptureGroup=null, messageCaptureGroupMiddle=null, messageCaptureGroupEnd=null, fileNameCaptureGroupOut=null, lineCaptureGroupOut=null, columnCaptureGroupOut=null, messageCaptureGroupOut=null, exactWarningsMatch=false, testNameRegex=null, linePlaceholder=null, wildCardInDirectoryMode=null, patternForRegexInWarning=null, partialWarnTextMatch=null, testToolResFileOutput=null, ignoreLines=null, benchmarkMode=null, expectedWarningsFormat=null, actualWarningsFormat=null, expectedWarningsFileName=null, actualWarningsFileName=null))
[DEBUG]: Merging configs (with parental configs from higher directory level) for src/test/resources/test/smoke/src/main/kotlin/save.toml
[TRACE]: Using parental config src/test/resources/test/smoke/save.toml to merge it with child config: src/test/resources/test/smoke/src/main/kotlin/save.toml
[TRACE]: Merging process of GENERAL from GeneralConfig(execCmd=java -showversion -jar ktlint --log-level=debug -R diktat.jar, batchSize=null, batchSeparator=null, tags=[smokeTest], description=SmokeTest, suiteName=SmokeTest, language=Kotlin, excludedTests=null, expectedWarningsPattern=// ;warn:?(.*):(\d*): (.+), expectedWarningsMiddlePattern=null, expectedWarningsEndPattern=null, runConfigPattern=null, timeOutMillis=3600000) into GeneralConfig(execCmd=java -showversion -jar ktlint --log-level=debug -R diktat.jar, batchSize=null, batchSeparator=null, tags=[smokeTest], description=SmokeTest, suiteName=SmokeTest, language=Kotlin, excludedTests=null, expectedWarningsPattern=// ;warn:?(.*):(\d*): (.+), expectedWarningsMiddlePattern=null, expectedWarningsEndPattern=null, runConfigPattern=null, timeOutMillis=null)
[TRACE]: Merging process of FIX AND WARN from FixAndWarnPluginConfig(fix=FixPluginConfig(execFlags=-F, resourceNameTestSuffix=null, resourceNameExpectedSuffix=null, ignoreLines=null), warn=WarnPluginConfig(execFlags=null, actualWarningsPattern=(\w+\..+):(\d+):(\d+): (\[.*\].*)$, warningTextHasLine=true, warningTextHasColumn=true, lineCaptureGroup=1, columnCaptureGroup=2, messageCaptureGroup=3, messageCaptureGroupMiddle=null, messageCaptureGroupEnd=null, fileNameCaptureGroupOut=null, lineCaptureGroupOut=2, columnCaptureGroupOut=3, messageCaptureGroupOut=4, exactWarningsMatch=false, testNameRegex=null, linePlaceholder=null, wildCardInDirectoryMode=null, patternForRegexInWarning=null, partialWarnTextMatch=null, testToolResFileOutput=null, ignoreLines=null, benchmarkMode=null, expectedWarningsFormat=null, actualWarningsFormat=null, expectedWarningsFileName=null, actualWarningsFileName=null)) into FixAndWarnPluginConfig(fix=FixPluginConfig(execFlags=-F, resourceNameTestSuffix=null, resourceNameExpectedSuffix=null, ignoreLines=null), warn=WarnPluginConfig(execFlags=null, actualWarningsPattern=(\w+\..+):(\d+):(\d+): (\[.*\].*)$, warningTextHasLine=null, warningTextHasColumn=null, lineCaptureGroup=null, columnCaptureGroup=null, messageCaptureGroup=null, messageCaptureGroupMiddle=null, messageCaptureGroupEnd=null, fileNameCaptureGroupOut=null, lineCaptureGroupOut=null, columnCaptureGroupOut=null, messageCaptureGroupOut=null, exactWarningsMatch=false, testNameRegex=null, linePlaceholder=null, wildCardInDirectoryMode=null, patternForRegexInWarning=null, partialWarnTextMatch=null, testToolResFileOutput=null, ignoreLines=null, benchmarkMode=null, expectedWarningsFormat=null, actualWarningsFormat=null, expectedWarningsFileName=null, actualWarningsFileName=null))
[DEBUG]: Overriding configs for src/test/resources/test/smoke/src/main/kotlin/save.toml
[TRACE]: Add child src/test/resources/test/smoke/src/main/kotlin/save.toml for src/test/resources/test/smoke/save.toml
[TRACE]: Add child src/test/resources/test/smoke/src/main/kotlin/save.toml for src/test/resources/test/smoke/save.toml
[DEBUG]: Following tests have been detected for the current plugin and directory: [src/test/resources/test/smoke/src/main/kotlin/ManyLineTransformInLongLineTest.kt]. 
[DEBUG]: => Executing plugin: FixAndWarnPlugin for [src/test/resources/test/smoke/src/main/kotlin/save.toml]
[TRACE]: Add child src/test/resources/test/smoke/src/main/kotlin/save.toml for src/test/resources/test/smoke/save.toml
[TRACE]: Add child src/test/resources/test/smoke/src/main/kotlin/save.toml for src/test/resources/test/smoke/save.toml
[DEBUG]: Following tests have been detected for the current plugin and directory: [src/test/resources/test/smoke/src/main/kotlin/ManyLineTransformInLongLineTest.kt]. 
[TRACE]: Discovered the following test resources: [FixTestFiles(test=src/test/resources/test/smoke/src/main/kotlin/ManyLineTransformInLongLineTest.kt, expected=src/test/resources/test/smoke/src/main/kotlin/ManyLineTransformInLongLineExpected.kt)]
[DEBUG]: Validated plugin configuration for [src/test/resources/test/smoke/src/main/kotlin/save.toml] ([FIX AND WARN])
[TRACE]: Add child src/test/resources/test/smoke/src/main/kotlin/save.toml for src/test/resources/test/smoke/save.toml
[TRACE]: Add child src/test/resources/test/smoke/src/main/kotlin/save.toml for src/test/resources/test/smoke/save.toml
[DEBUG]: Validated plugin configuration for [src/test/resources/test/smoke/src/main/kotlin/save.toml] ([FIX])
[TRACE]: Creating temp directory: D:\a\diktat\diktat\diktat-ruleset\src\test\resources\test\smoke\.save-cli\ProcessBuilder_1698400469806
[TRACE]: Creating stdout file of ProcessBuilder: D:\a\diktat\diktat\diktat-ruleset\src\test\resources\test\smoke\.save-cli\ProcessBuilder_1698400469806\stdout.txt
[TRACE]: Creating stderr file of ProcessBuilder: D:\a\diktat\diktat\diktat-ruleset\src\test\resources\test\smoke\.save-cli\ProcessBuilder_1698400469806\stderr.txt
[TRACE]: Created temp directory D:\a\diktat\diktat\diktat-ruleset\src\test\resources\test\smoke\.save-cli\ProcessBuilder_1698400469806 for stderr and stdout of ProcessBuilder
[TRACE]: Modified cmd: cd /d src/test/resources/test/smoke && java -showversion -jar ktlint --log-level=debug -R diktat.jar -F D:\a\diktat\diktat\diktat-ruleset\src\test\resources\test\smoke\.save-cli\FixPlugin-2109522452\src\main\kotlin\ManyLineTransformInLongLineTest.kt
[DEBUG]: Executing: (cd /d src/test/resources/test/smoke && java -showversion -jar ktlint --log-level=debug -R diktat.jar -F D:\a\diktat\diktat\diktat-ruleset\src\test\resources\test\smoke\.save-cli\FixPlugin-2109522452\src\main\kotlin\ManyLineTransformInLongLineTest.kt) >D:\a\diktat\diktat\diktat-ruleset\src\test\resources\test\smoke\.save-cli\ProcessBuilder_1698400469806\stdout.txt 2>D:\a\diktat\diktat\diktat-ruleset\src\test\resources\test\smoke\.save-cli\ProcessBuilder_1698400469806\stderr.txt with timeout 3600000 ms
[TRACE]: Attempt to delete file D:\a\diktat\diktat\diktat-ruleset\src\test\resources\test\smoke\.save-cli\ProcessBuilder_1698400469806/stderr.txt
[TRACE]: Attempt to delete file D:\a\diktat\diktat\diktat-ruleset\src\test\resources\test\smoke\.save-cli\ProcessBuilder_1698400469806/stdout.txt
[TRACE]: Attempt to delete file D:\a\diktat\diktat\diktat-ruleset\src\test\resources\test\smoke\.save-cli\ProcessBuilder_1698400469806
[TRACE]: Removed temp directory D:\a\diktat\diktat\diktat-ruleset\src\test\resources\test\smoke\.save-cli\ProcessBuilder_1698400469806
[DEBUG]: stderr of `java -showversion -jar ktlint --log-level=debug -R diktat.jar -F D:\a\diktat\diktat\diktat-ruleset\src\test\resources\test\smoke\.save-cli\FixPlugin-2109522452\src\main\kotlin\ManyLineTransformInLongLineTest.kt`:	openjdk version "1.8.0_392"	OpenJDK Runtime Environment (Temurin)(build 1.8.0_392-b08)	OpenJDK 64-Bit Server VM (Temurin)(build 25.392-b08, mixed mode)	
[TRACE]: Execution output:	[09:54:30.510 [main] DEBUG com.pinterest.ktlint.cli.internal.KtlintServiceLoader - Discovered RuleSetProviderV3 with id 'standard' in ktlint JAR, 09:54:30.562 [main] DEBUG com.pinterest.ktlint.cli.internal.KtlintServiceLoader - Discovered RuleSetProviderV3 with id 'diktat-ruleset' in JAR file '/D:/a/diktat/diktat/diktat-ruleset/src/test/resources/test/smoke/diktat.jar',     KtLint uses a ServiceLoader to dynamically load classes from JAR files specified at the command line of KtLint.,     The JAR file below contains an implementation of an interface which is supported by this version of ktlint:,         Interface: com.pinterest.ktlint.cli.ruleset.core.api.RuleSetProviderV3,         Id       : diktat-ruleset,         JAR file : /D:/a/diktat/diktat/diktat-ruleset/src/test/resources/test/smoke/diktat.jar, 09:54:30.949 [main] DEBUG com.saveourtool.diktat.ruleset.rules.DiktatRuleSetProviderV3Spi - Will run diktat-ruleset with diktat-analysis.yml (it can be placed to the run directory or the default file from resources will be used), 09:54:30.954 [main] DEBUG com.saveourtool.diktat.ruleset.rules.DiktatRuleSetProviderV3Spi - Using diktat-analysis.yml file from the following path: D:\a\diktat\diktat\diktat-ruleset\src\test\resources\test\smoke\diktat-analysis.yml, 09:54:31.330 [main] DEBUG com.pinterest.ktlint.cli.internal.KtlintServiceLoader - Discovered ReporterProviderV2 with id 'baseline' in ktlint JAR, 09:54:31.330 [main] DEBUG com.pinterest.ktlint.cli.internal.KtlintServiceLoader - Discovered ReporterProviderV2 with id 'plain' in ktlint JAR, 09:54:31.331 [main] DEBUG com.pinterest.ktlint.cli.internal.KtlintServiceLoader - Discovered ReporterProviderV2 with id 'checkstyle' in ktlint JAR, 09:54:31.331 [main] DEBUG com.pinterest.ktlint.cli.internal.KtlintServiceLoader - Discovered ReporterProviderV2 with id 'json' in ktlint JAR, 09:54:31.331 [main] DEBUG com.pinterest.ktlint.cli.internal.KtlintServiceLoader - Discovered ReporterProviderV2 with id 'format' in ktlint JAR, 09:54:31.331 [main] DEBUG com.pinterest.ktlint.cli.internal.KtlintServiceLoader - Discovered ReporterProviderV2 with id 'html' in ktlint JAR, 09:54:31.331 [main] DEBUG com.pinterest.ktlint.cli.internal.KtlintServiceLoader - Discovered ReporterProviderV2 with id 'plain-summary' in ktlint JAR, 09:54:31.331 [main] DEBUG com.pinterest.ktlint.cli.internal.KtlintServiceLoader - Discovered ReporterProviderV2 with id 'sarif' in ktlint JAR, 09:54:31.332 [main] DEBUG com.pinterest.ktlint.cli.internal.ReporterAggregator - Initializing "plain" reporter with {plain=true, color=false, color_name=DARK_GRAY, format=true}, 09:54:31.357 [pool-1-thread-1] DEBUG com.pinterest.ktlint.rule.engine.api.KtLintRuleEngine - Starting with formatting file 'ManyLineTransformInLongLineTest.kt', 09:54:32.348 [pool-1-thread-1] DEBUG com.pinterest.ktlint.rule.engine.internal.EditorConfigLoader - Effective editorconfig properties for file 'D:\a\diktat\diktat\diktat-ruleset\src\test\resources\test\smoke\.save-cli\FixPlugin-2109522452\src\main\kotlin\ManyLineTransformInLongLineTest.kt':, 	ktlint_standard: disabled, 	ktlint_experimental: disabled, 	ktlint_test: disabled, 	ktlint_custom: disabled, 09:54:32.425 [pool-1-thread-1] DEBUG com.pinterest.ktlint.rule.engine.internal.RuleProviderSorter - Rules will be executed in order below:,            - internal:ktlint-suppression, ,            - diktat-ruleset:comments, ,            - diktat-ruleset:single-constructor, ,            - diktat-ruleset:kdoc-comments, ,            - diktat-ruleset:kdoc-methods, ,            - diktat-ruleset:kdoc-formatting, ,            - diktat-ruleset:kdoc-comments-codeblocks-formatting, ,            - diktat-ruleset:file-naming, ,            - diktat-ruleset:package-naming, ,            - diktat-ruleset:identifier-naming, ,            - diktat-ruleset:useless-override, ,            - diktat-ruleset:class-like-structures, ,            - diktat-ruleset:no-else-in-when, ,            - diktat-ruleset:races-rule, ,            - diktat-ruleset:empty-block-structure, ,            - diktat-ruleset:avoid-empty-primary-constructor, ,            - diktat-ruleset:top-level-order, ,            - diktat-ruleset:statement, ,            - diktat-ruleset:multiple-modifiers, ,            - diktat-ruleset:trivial-property-accessors, ,            - diktat-ruleset:custom-getter-setter, ,            - diktat-ruleset:class-compact-initialization, ,            - diktat-ruleset:last-index, ,            - diktat-ruleset:inline-classes, ,            - diktat-ruleset:extension-functions-class-file, ,            - diktat-ruleset:inverse-method, ,            - diktat-ruleset:stateless-class, ,            - diktat-ruleset:implicit-backing-property, ,            - diktat-ruleset:data-classes, ,            - diktat-ruleset:local-variables, ,            - diktat-ruleset:smart-cast-rule, ,            - diktat-ruleset:avoid-utility-class, ,            - diktat-ruleset:getter-setter-fields, ,            - diktat-ruleset:abstract-classes, ,            - diktat-ruleset:trailing-comma, ,            - diktat-ruleset:multiple-init-block, ,            - diktat-ruleset:range, ,            - diktat-ruleset:debug-print, ,            - diktat-ruleset:custom-label, ,            - diktat-ruleset:variable-generic-type, ,            - diktat-ruleset:long-numerical-values, ,            - diktat-ruleset:nested-block, ,            - diktat-ruleset:annotation-new-line, ,            - diktat-ruleset:preview-annotation, ,            - diktat-ruleset:sort-rule, ,            - diktat-ruleset:enum-separated, ,            - diktat-ruleset:string-concatenation, ,            - diktat-ruleset:string-template-format, ,            - diktat-ruleset:accurate-calculations, ,            - diktat-ruleset:collapse-if, ,            - diktat-ruleset:line-length, ,            - diktat-ruleset:run-script, ,            - diktat-ruleset:type-alias, ,            - diktat-ruleset:overloading-default-values, ,            - diktat-ruleset:function-length, ,            - diktat-ruleset:magic-number, ,            - diktat-ruleset:lambda-parameter-order, ,            - diktat-ruleset:argument-size, ,            - diktat-ruleset:blank-lines, ,            - diktat-ruleset:file-size, ,            - diktat-ruleset:sync-in-async, ,            - diktat-ruleset:nullable-type, ,            - diktat-ruleset:null-checks, ,            - diktat-ruleset:no-var-rule, ,            - diktat-ruleset:avoid-nested-functions, ,            - diktat-ruleset:extension-functions-same-name, ,            - diktat-ruleset:lambda-length, ,            - diktat-ruleset:boolean-expressions-rule, ,            - diktat-ruleset:parameter-name-in-outer-lambda, ,            - diktat-ruleset:block-structure, ,            - diktat-ruleset:too-many-spaces, ,            - diktat-ruleset:header-comment, ,            - diktat-ruleset:file-structure, ,            - diktat-ruleset:newlines, ,            - diktat-ruleset:horizontal-whitespace, ,            - diktat-ruleset:indentation, 09:54:34.980 [pool-1-thread-1] WARN com.pinterest.ktlint.rule.engine.api.KtLintRuleEngine - Format was not able to resolve all violations which (theoretically) can be autocorrected in file D:\a\diktat\diktat\diktat-ruleset\src\test\resources\test\smoke\.save-cli\FixPlugin-2109522452\src\main\kotlin\ManyLineTransformInLongLineTest.kt in 3 consecutive runs of format., 09:54:35.002 [pool-1-thread-1] DEBUG com.pinterest.ktlint.rule.engine.api.KtLintRuleEngine - Finished with formatting file 'ManyLineTransformInLongLineTest.kt', D:/a/diktat/diktat/diktat-ruleset/src/test/resources/test/smoke/.save-cli/FixPlugin-2109522452/src/main/kotlin/ManyLineTransformInLongLineTest.kt:1:1: [HEADER_MISSING_IN_NON_SINGLE_CLASS_FILE] files that contain multiple or no classes should contain description of what is inside of this file: there are 0 declared classes and/or objects (cannot be auto-corrected) (diktat-ruleset:header-comment), D:/a/diktat/diktat/diktat-ruleset/src/test/resources/test/smoke/.save-cli/FixPlugin-2109522452/src/main/kotlin/ManyLineTransformInLongLineTest.kt:3:1: [MISSING_KDOC_TOP_LEVEL] all public and internal top-level classes and functions should have Kdoc: foo (cannot be auto-corrected) (diktat-ruleset:kdoc-comments), D:/a/diktat/diktat/diktat-ruleset/src/test/resources/test/smoke/.save-cli/FixPlugin-2109522452/src/main/kotlin/ManyLineTransformInLongLineTest.kt:3:1: [MISSING_KDOC_ON_FUNCTION] all public, internal and protected functions should have Kdoc with proper tags: foo (cannot be auto-corrected) (diktat-ruleset:kdoc-methods), D:/a/diktat/diktat/diktat-ruleset/src/test/resources/test/smoke/.save-cli/FixPlugin-2109522452/src/main/kotlin/ManyLineTransformInLongLineTest.kt:3:1: [TOO_LONG_FUNCTION] function is too long: split it or make more primitive: max length is 35, but you have 211 (cannot be auto-corrected) (diktat-ruleset:function-length), , Summary error count (descending) by rule:,   diktat-ruleset:function-length: 1,   diktat-ruleset:header-comment: 1,   diktat-ruleset:kdoc-comments: 1,   diktat-ruleset:kdoc-methods: 1, 09:54:35.014 [main] DEBUG com.pinterest.ktlint.cli.internal.KtlintCommandLine - Finished processing in 4565ms / 1 file(s) scanned / 431 error(s) found, 09:54:35.014 [main] DEBUG com.pinterest.ktlint.cli.internal.KtlintCommandLine - Exit ktlint with exit code: 1]
[DEBUG]: Validated plugin configuration for [src/test/resources/test/smoke/src/main/kotlin/save.toml] ([WARN])
[WARN]: Test on resources [FixTestFiles(test=src/test/resources/test/smoke/src/main/kotlin/ManyLineTransformInLongLineTest.kt, expected=src/test/resources/test/smoke/src/main/kotlin/ManyLineTransformInLongLineExpected.kt)] has failed.
[TRACE]: Additional info: ChangeDelta, position 6, lines:
-        20 or 21 or 22 or 23 or 24 or 25 or 26 or 27 or 28 or 29 or 30 or 31 or <br/>32 or 33 or 34 or 35 or 36 or 37 or 38 or 39 or 40 or 41 || 42 or 43 or 44 or 45<br/> or 46 or 47 &&[ 48 or 49 ||]
+        20 or 21 or 22 or 23 or 24 or 25 or 26 or 27 or 28 or 29 or 30 or 31 or <br/>32 or 33 or 34 or 35 or 36 or 37 or 38 or 39 or 40 or 41 || 42 or 43 or 44 or 45<br/> or 46 or 47 &&


-
+<        48 or 49 ||>
.
[DEBUG]: Completed test execution for resources [FixTestFiles(test=src/test/resources/test/smoke/src/main/kotlin/ManyLineTransformInLongLineTest.kt, expected=src/test/resources/test/smoke/src/main/kotlin/ManyLineTransformInLongLineExpected.kt)].
[TRACE]: Additional info: DebugInfo(execCmd=java -showversion -jar ktlint --log-level=debug -R diktat.jar -F D:\a\diktat\diktat\diktat-ruleset\src\test\resources\test\smoke\.save-cli\FixPlugin-2109522452\src\main\kotlin\ManyLineTransformInLongLineTest.kt, stdout=09:54:31.357 [pool-1-thread-1] DEBUG com.pinterest.ktlint.rule.engine.api.KtLintRuleEngine - Starting with formatting file 'ManyLineTransformInLongLineTest.kt'
09:54:32.348 [pool-1-thread-1] DEBUG com.pinterest.ktlint.rule.engine.internal.EditorConfigLoader - Effective editorconfig properties for file 'D:\a\diktat\diktat\diktat-ruleset\src\test\resources\test\smoke\.save-cli\FixPlugin-2109522452\src\main\kotlin\ManyLineTransformInLongLineTest.kt':
09:54:34.980 [pool-1-thread-1] WARN com.pinterest.ktlint.rule.engine.api.KtLintRuleEngine - Format was not able to resolve all violations which (theoretically) can be autocorrected in file D:\a\diktat\diktat\diktat-ruleset\src\test\resources\test\smoke\.save-cli\FixPlugin-2109522452\src\main\kotlin\ManyLineTransformInLongLineTest.kt in 3 consecutive runs of format.
09:54:35.002 [pool-1-thread-1] DEBUG com.pinterest.ktlint.rule.engine.api.KtLintRuleEngine - Finished with formatting file 'ManyLineTransformInLongLineTest.kt'
D:/a/diktat/diktat/diktat-ruleset/src/test/resources/test/smoke/.save-cli/FixPlugin-2109522452/src/main/kotlin/ManyLineTransformInLongLineTest.kt:1:1: [HEADER_MISSING_IN_NON_SINGLE_CLASS_FILE] files that contain multiple or no classes should contain description of what is inside of this file: there are 0 declared classes and/or objects (cannot be auto-corrected) (diktat-ruleset:header-comment)
D:/a/diktat/diktat/diktat-ruleset/src/test/resources/test/smoke/.save-cli/FixPlugin-2109522452/src/main/kotlin/ManyLineTransformInLongLineTest.kt:3:1: [MISSING_KDOC_TOP_LEVEL] all public and internal top-level classes and functions should have Kdoc: foo (cannot be auto-corrected) (diktat-ruleset:kdoc-comments)
D:/a/diktat/diktat/diktat-ruleset/src/test/resources/test/smoke/.save-cli/FixPlugin-2109522452/src/main/kotlin/ManyLineTransformInLongLineTest.kt:3:1: [MISSING_KDOC_ON_FUNCTION] all public, internal and protected functions should have Kdoc with proper tags: foo (cannot be auto-corrected) (diktat-ruleset:kdoc-methods)
D:/a/diktat/diktat/diktat-ruleset/src/test/resources/test/smoke/.save-cli/FixPlugin-2109522452/src/main/kotlin/ManyLineTransformInLongLineTest.kt:3:1: [TOO_LONG_FUNCTION] function is too long: split it or make more primitive: max length is 35, but you have 211 (cannot be auto-corrected) (diktat-ruleset:function-length), stderr=, durationMillis=null, countWarnings=CountWarnings(unmatched=-99, matched=-99, expected=-99, unexpected=-99)).
[DEBUG]: <= Finished execution of: FixAndWarnPlugin for [src/test/resources/test/smoke/src/main/kotlin/save.toml]
[DEBUG]: Finished reporter com.saveourtool.save.reporter.plain.PlainTextReporter of type PLAIN
--------------------------------
| Test suite | Plugin | Test | result | comment |
| ------ | ------ | ------ | ------ | ------ |
| SmokeTest | FixAndWarnPlugin | ManyLineTransformInLongLineTest.kt | Fail | CHANGE: 1 lines |
--------------------------------
FAILED: 1 tests, 0% successful, failed: 1, skipped: 0
[INFO]: SAVE has finished execution. You can rerun with --log debug or --log all for additional information.
"
to contain:
  "SUCCESS" 
at DiktatSaveSmokeTest.saveSmokeTest$lambda$3(DiktatSaveSmokeTest.java:101)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at com.saveourtool.diktat.ruleset.smoke.DiktatSaveSmokeTest.saveSmokeTest(DiktatSaveSmokeTest.kt:54)
	at com.saveourtool.diktat.ruleset.smoke.DiktatSaveSmokeTest.fixAndCompare(DiktatSaveSmokeTest.kt:39)
	at com.saveourtool.diktat.ruleset.smoke.DiktatSmokeTestBase.fix can cause long line(DiktatSmokeTestBase.kt:316)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at java.util.ArrayList.forEach(ArrayList.java:1259)
	at java.util.ArrayList.forEach(ArrayList.java:1259)