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

chore(deps): update spotless to v7 (major) #1950

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

chore(deps): update spotless to v7

661ea03
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Open

chore(deps): update spotless to v7 (major) #1950

chore(deps): update spotless to v7
661ea03
Select commit
Loading
Failed to load commit list.
GitHub Actions / JUnit Tests (Windows, EnricoMi/publish-unit-test-result-action@v2) failed Jan 15, 2025 in 0s

2 fail, 17 skipped, 1β€ˆ427 pass in 8m 13s

β€‡β€ˆ167 files  Β±0β€‚β€ƒβ€‡β€ˆ167 suites  Β±0   8m 13s ⏱️ - 1m 18s
1β€ˆ446 tests Β±0  1β€ˆ427 βœ… Β±0  17 πŸ’€ Β±0  2 ❌ Β±0 
2β€ˆ826 runsβ€Š Β±0  2β€ˆ807 βœ… Β±0  17 πŸ’€ Β±0  2 ❌ Β±0 

Results for commit 661ea03. ± Comparison against earlier commit d51ec2b.

Annotations

Check warning on line 0 in com.saveourtool.diktat.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 #5() (com.saveourtool.diktat.smoke.DiktatSmokeTest) failed

diktat-cli\build\test-results\test\TEST-com.saveourtool.diktat.smoke.DiktatSmokeTest.xml [took 0s]
Raw output
org.opentest4j.AssertionFailedError: [lint result for ] 
expected: "/*
    Copyright 2018-2024 John Doe.
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0
*/

package com.saveourtool.diktat

class Some {
    val config = Config()
}
"
 but was: "/*
    Copyright 2018-2025 John Doe.
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0
*/

package com.saveourtool.diktat

class Some {
    val config = Config()
}
"
	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.test.framework.processing.DefaultTestFileContent.assertSuccessful(TestFileContent.kt:90)
	at com.saveourtool.diktat.smoke.DiktatSmokeTest.fixAndCompare(DiktatSmokeTest.kt:28)
	at com.saveourtool.diktat.smoke.DiktatSmokeTestBase.smoke test #5(DiktatSmokeTestBase.kt:165)
	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.smoke.DiktatSaveSmokeTest

See this annotation in the file changed.

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

smoke test #5() (com.saveourtool.diktat.smoke.DiktatSaveSmokeTest) failed

diktat-cli\build\test-results\test\TEST-com.saveourtool.diktat.smoke.DiktatSaveSmokeTest.xml [took 2s]
Raw output
org.assertj.core.error.AssertJMultipleFailuresError: 
Multiple Failures (1 failure)
-- failure 1 --
[The output of "C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\save-0.3.4-mingwX64.exe C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\src\main\kotlin Example5Test.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=C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\src\main\kotlin, testFiles=[Example5Test.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 C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\src\main\kotlin\save.toml
[DEBUG]: Processing test config from the toml file: C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\save.toml
[DEBUG]: Processing test config from the toml file: C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\src\main\kotlin\save.toml
[TRACE]: Add child C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\src\main\kotlin\save.toml for C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\save.toml
[TRACE]: Discovering all descendant `save.toml`s of C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\src\main\kotlin\save.toml
[TRACE]: Discovered 1 files
[TRACE]: Discovered new pluginConfig: GeneralConfig(execCmd=java -showversion -jar diktat.jar --log-level debug, 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=--mode fix, 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 C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\save.toml
[DEBUG]: Overriding configs for C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\save.toml
[TRACE]: Discovered new pluginConfig: GeneralConfig(execCmd=java -showversion -jar diktat.jar --log-level debug, 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=--mode fix, 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 C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\src\main\kotlin\save.toml
[TRACE]: Using parental config C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\save.toml to merge it with child config: C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\src\main\kotlin\save.toml
[TRACE]: Merging process of GENERAL from GeneralConfig(execCmd=java -showversion -jar diktat.jar --log-level debug, 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 diktat.jar --log-level debug, 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=--mode fix, 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=--mode fix, 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 C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\src\main\kotlin\save.toml
[TRACE]: Add child C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\src\main\kotlin\save.toml for C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\save.toml
[TRACE]: Add child C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\src\main\kotlin\save.toml for C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\save.toml
[DEBUG]: Following tests have been detected for the current plugin and directory: [C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\src\main\kotlin\Example5Test.kt]. 
[DEBUG]: => Executing plugin: FixAndWarnPlugin for [C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\src\main\kotlin\save.toml]
[TRACE]: Add child C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\src\main\kotlin\save.toml for C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\save.toml
[TRACE]: Add child C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\src\main\kotlin\save.toml for C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\save.toml
[DEBUG]: Following tests have been detected for the current plugin and directory: [C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\src\main\kotlin\Example5Test.kt]. 
[TRACE]: Discovered the following test resources: [FixTestFiles(test=C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\src\main\kotlin\Example5Test.kt, expected=C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\src\main\kotlin\Example5Expected.kt)]
[DEBUG]: Validated plugin configuration for [C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\src\main\kotlin\save.toml] ([FIX AND WARN])
[TRACE]: Add child C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\src\main\kotlin\save.toml for C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\save.toml
[TRACE]: Add child C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\src\main\kotlin\save.toml for C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\save.toml
[DEBUG]: Validated plugin configuration for [C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\src\main\kotlin\save.toml] ([FIX])
[TRACE]: Creating temp directory: C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\.save-cli\ProcessBuilder_1736903351225
[TRACE]: Creating stdout file of ProcessBuilder: C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\.save-cli\ProcessBuilder_1736903351225\stdout.txt
[TRACE]: Creating stderr file of ProcessBuilder: C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\.save-cli\ProcessBuilder_1736903351225\stderr.txt
[TRACE]: Created temp directory C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\.save-cli\ProcessBuilder_1736903351225 for stderr and stdout of ProcessBuilder
[TRACE]: Modified cmd: cd /d C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240 && java -showversion -jar diktat.jar --log-level debug --mode fix C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\.save-cli\FixPlugin-1068590780\src\main\kotlin\Example5Test.kt
[DEBUG]: Executing: (cd /d C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240 && java -showversion -jar diktat.jar --log-level debug --mode fix C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\.save-cli\FixPlugin-1068590780\src\main\kotlin\Example5Test.kt) >C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\.save-cli\ProcessBuilder_1736903351225\stdout.txt 2>C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\.save-cli\ProcessBuilder_1736903351225\stderr.txt with timeout 3600000 ms
[TRACE]: Attempt to delete file C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\.save-cli\ProcessBuilder_1736903351225/stderr.txt
[TRACE]: Attempt to delete file C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\.save-cli\ProcessBuilder_1736903351225/stdout.txt
[TRACE]: Attempt to delete file C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\.save-cli\ProcessBuilder_1736903351225
[TRACE]: Removed temp directory C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\.save-cli\ProcessBuilder_1736903351225
[DEBUG]: stderr of `java -showversion -jar diktat.jar --log-level debug --mode fix C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\.save-cli\FixPlugin-1068590780\src\main\kotlin\Example5Test.kt`:	openjdk version "1.8.0_432"	OpenJDK Runtime Environment (Temurin)(build 1.8.0_432-b06)	OpenJDK 64-Bit Server VM (Temurin)(build 25.432-b06, mixed mode)	
[TRACE]: Execution output:	[01:09:11.768 [main] DEBUG com.saveourtool.diktat.DiktatMain - Loading diktatRuleSet using config null, 01:09:12.389 [main] DEBUG com.saveourtool.diktat.DiktatMain - Start processing the file: C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\.save-cli\FixPlugin-1068590780\src\main\kotlin\Example5Test.kt, 01:09:12.394 [main] DEBUG com.pinterest.ktlint.rule.engine.internal.CodeFormatter - Starting with processing file 'Example5Test.kt', 01:09:12.894 [main] DEBUG com.pinterest.ktlint.rule.engine.internal.EditorConfigLoader - Effective editorconfig properties for file 'C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\.save-cli\FixPlugin-1068590780\src\main\kotlin\Example5Test.kt':, 	end_of_line: crlf, 	ktlint_standard: disabled, 	ktlint_experimental: disabled, 	ktlint_test: disabled, 	ktlint_custom: disabled, 01:09:12.930 [main] DEBUG com.pinterest.ktlint.rule.engine.internal.RuleProviderSorter - Rules will be executed in order below:,            - internal:ktlint-suppression, ,            - diktat-ruleset:semicolon, ,            - 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, 01:09:13.143 [main] DEBUG com.pinterest.ktlint.rule.engine.internal.CodeFormatter - Finished with processing file 'Example5Test.kt', 01:09:13.143 [main] DEBUG com.pinterest.ktlint.rule.engine.internal.CodeFormatter - Starting with processing file 'Example5Test.kt', 01:09:13.147 [main] DEBUG com.pinterest.ktlint.rule.engine.internal.EditorConfigLoader - Effective editorconfig properties for file 'C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\.save-cli\FixPlugin-1068590780\src\main\kotlin\Example5Test.kt':, 	end_of_line: crlf, 	ktlint_standard: disabled, 	ktlint_experimental: disabled, 	ktlint_test: disabled, 	ktlint_custom: disabled, .save-cli/FixPlugin-1068590780/src/main/kotlin/Example5Test.kt:1:1: [FILE_NAME_MATCH_CLASS] file name is incorrect - it should match with the class described in it if there is the only one class declared: Example5Test.kt vs Some (cannot be auto-corrected) (diktat-ruleset:file-naming), .save-cli/FixPlugin-1068590780/src/main/kotlin/Example5Test.kt:12:1: [MISSING_KDOC_TOP_LEVEL] all public and internal top-level classes and functions should have Kdoc: Some (cannot be auto-corrected) (diktat-ruleset:kdoc-comments), .save-cli/FixPlugin-1068590780/src/main/kotlin/Example5Test.kt:12:1: [INLINE_CLASS_CAN_BE_USED] inline class can be used: class Some (cannot be auto-corrected) (diktat-ruleset:inline-classes), .save-cli/FixPlugin-1068590780/src/main/kotlin/Example5Test.kt:12:1: [USE_DATA_CLASS] this class can be converted to a data class: Some (cannot be auto-corrected) (diktat-ruleset:data-classes), .save-cli/FixPlugin-1068590780/src/main/kotlin/Example5Test.kt:13:5: [MISSING_KDOC_CLASS_ELEMENTS] all public, internal and protected classes, functions and variables inside the class should have Kdoc: config (cannot be auto-corrected) (diktat-ruleset:kdoc-comments), 01:09:13.179 [main] DEBUG com.pinterest.ktlint.rule.engine.internal.CodeFormatter - Finished with processing file 'Example5Test.kt', 01:09:13.180 [main] WARN  com.saveourtool.diktat.DiktatMain - Original and formatted content differ, writing to C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\.save-cli\FixPlugin-1068590780\src\main\kotlin\Example5Test.kt..., , Summary error count (descending) by rule:,   diktat-ruleset:kdoc-comments: 2,   diktat-ruleset:data-classes: 1,   diktat-ruleset:file-naming: 1,   diktat-ruleset:inline-classes: 1]
[DEBUG]: Validated plugin configuration for [C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\src\main\kotlin\save.toml] ([WARN])
[WARN]: Test on resources [FixTestFiles(test=C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\src\main\kotlin\Example5Test.kt, expected=C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\src\main\kotlin\Example5Expected.kt)] has failed.
[TRACE]: Additional info: ChangeDelta, position 1, lines:
-    Copyright 2018-202[4] John Doe.
+    Copyright 2018-202<5> John Doe.
.
[DEBUG]: Completed test execution for resources [FixTestFiles(test=C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\src\main\kotlin\Example5Test.kt, expected=C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\src\main\kotlin\Example5Expected.kt)].
[TRACE]: Additional info: DebugInfo(execCmd=java -showversion -jar diktat.jar --log-level debug --mode fix C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\.save-cli\FixPlugin-1068590780\src\main\kotlin\Example5Test.kt, stdout=01:09:12.389 [main] DEBUG com.saveourtool.diktat.DiktatMain - Start processing the file: C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\.save-cli\FixPlugin-1068590780\src\main\kotlin\Example5Test.kt
01:09:12.394 [main] DEBUG com.pinterest.ktlint.rule.engine.internal.CodeFormatter - Starting with processing file 'Example5Test.kt'
01:09:12.894 [main] DEBUG com.pinterest.ktlint.rule.engine.internal.EditorConfigLoader - Effective editorconfig properties for file 'C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\.save-cli\FixPlugin-1068590780\src\main\kotlin\Example5Test.kt':
01:09:13.143 [main] DEBUG com.pinterest.ktlint.rule.engine.internal.CodeFormatter - Finished with processing file 'Example5Test.kt'
01:09:13.143 [main] DEBUG com.pinterest.ktlint.rule.engine.internal.CodeFormatter - Starting with processing file 'Example5Test.kt'
01:09:13.147 [main] DEBUG com.pinterest.ktlint.rule.engine.internal.EditorConfigLoader - Effective editorconfig properties for file 'C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\.save-cli\FixPlugin-1068590780\src\main\kotlin\Example5Test.kt':
.save-cli/FixPlugin-1068590780/src/main/kotlin/Example5Test.kt:1:1: [FILE_NAME_MATCH_CLASS] file name is incorrect - it should match with the class described in it if there is the only one class declared: Example5Test.kt vs Some (cannot be auto-corrected) (diktat-ruleset:file-naming)
.save-cli/FixPlugin-1068590780/src/main/kotlin/Example5Test.kt:12:1: [MISSING_KDOC_TOP_LEVEL] all public and internal top-level classes and functions should have Kdoc: Some (cannot be auto-corrected) (diktat-ruleset:kdoc-comments)
.save-cli/FixPlugin-1068590780/src/main/kotlin/Example5Test.kt:12:1: [INLINE_CLASS_CAN_BE_USED] inline class can be used: class Some (cannot be auto-corrected) (diktat-ruleset:inline-classes)
.save-cli/FixPlugin-1068590780/src/main/kotlin/Example5Test.kt:12:1: [USE_DATA_CLASS] this class can be converted to a data class: Some (cannot be auto-corrected) (diktat-ruleset:data-classes)
.save-cli/FixPlugin-1068590780/src/main/kotlin/Example5Test.kt:13:5: [MISSING_KDOC_CLASS_ELEMENTS] all public, internal and protected classes, functions and variables inside the class should have Kdoc: config (cannot be auto-corrected) (diktat-ruleset:kdoc-comments)
01:09:13.179 [main] DEBUG com.pinterest.ktlint.rule.engine.internal.CodeFormatter - Finished with processing file 'Example5Test.kt'
01:09:13.180 [main] WARN  com.saveourtool.diktat.DiktatMain - Original and formatted content differ, writing to C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\.save-cli\FixPlugin-1068590780\src\main\kotlin\Example5Test.kt..., stderr=, durationMillis=null, countWarnings=CountWarnings(unmatched=-99, matched=-99, expected=-99, unexpected=-99)).
[DEBUG]: <= Finished execution of: FixAndWarnPlugin for [C:\Users\RUNNER~1\AppData\Local\Temp\junit131189765923223240\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 | Example5Test.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:85)
	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.smoke.DiktatSaveSmokeTest.saveSmokeTest(DiktatSaveSmokeTest.kt:48)
	at com.saveourtool.diktat.smoke.DiktatSaveSmokeTest.fixAndCompare(DiktatSaveSmokeTest.kt:33)
	at com.saveourtool.diktat.smoke.DiktatSmokeTestBase.smoke test #5(DiktatSmokeTestBase.kt:165)
	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)