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

Fixed smoke tests #1769

Merged
merged 27 commits into from
Nov 7, 2023

WIP

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

Fixed smoke tests #1769

WIP
39de04c
Select commit
Loading
Failed to load commit list.
GitHub Actions / JUnit Tests (Windows, dorny/test-reporter@v1) failed Nov 1, 2023 in 1s

JUnit Tests (Windows, dorny/test-reporter@v1) ❌

Tests failed

Report Passed Failed Skipped Time
diktat-cli/build/test-results/test/TEST-com.saveourtool.diktat.util.CliUtilsKtTest.xml 4✅ 983ms
diktat-common/build/test-results/test/TEST-com.saveourtool.diktat.test.ConfigReaderTest.xml 2✅ 2s
diktat-gradle-plugin/build/test-results/test/TEST-com.saveourtool.diktat.plugin.gradle.DiktatGradlePluginTest.xml 3✅ 30s
diktat-gradle-plugin/build/test-results/test/TEST-com.saveourtool.diktat.plugin.gradle.DiktatJavaExecTaskTest.xml 14✅ 3s
diktat-gradle-plugin/build/test-results/test/TEST-com.saveourtool.diktat.plugin.gradle.ReporterSelectionTest.xml 1✅ 17ms
diktat-ktlint-engine/build/test-results/test/TEST-com.saveourtool.diktat.ktlint.KtLintRuleWrapperTest.xml 3✅ 13s
diktat-maven-plugin/build/test-results/test/TEST-com.saveourtool.diktat.plugin.maven.DiktatBaseMojoTest.xml 2⚪ 1ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter1.EnumValueCaseTest.xml 3✅ 86ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter1.IdentifierNamingFixTest.xml 10✅ 118ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter1.IdentifierNamingWarnTest.xml 40✅ 257ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter1.MethodNamingWarnTest.xml 8✅ 40ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter1.PackageNamingFixTest.xml 3✅ 140ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter1.PackageNamingWarnTest.xml 18✅ 607ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter1.PackagePathFixTest.xml 10✅ 145ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter2.comments.CommentedCodeTest.xml 27✅ 162ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter2.CommentsFormattingFixTest.xml 5✅ 73ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter2.CommentsFormattingTest.xml 23✅ 132ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter2.HeaderCommentRuleFixTest.xml 13✅ 111ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter2.HeaderCommentRuleTest.xml 21✅ 55ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter2.KdocCommentsFixTest.xml 5✅ 813ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter2.KdocCommentsWarnTest.xml 39✅ 227ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter2.KdocFormattingFixTest.xml 9✅ 121ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter2.KdocFormattingTest.xml 22✅ 127ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter2.KdocMethodsFixTest.xml 8✅ 132ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter2.KdocMethodsTest.xml 21✅ 147ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter2.KdocParamPresentWarnTest.xml 6✅ 26ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.AnnotationNewLineRuleFixTest.xml 3✅ 58ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.AnnotationNewLineRuleWarnTest.xml 19✅ 217ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.BlockStructureBracesFixTest.xml 6✅ 56ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.BlockStructureBracesWarnTest.xml 30✅ 123ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.BooleanExpressionsRuleFixTest.xml 7✅ 326ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.BooleanExpressionsRuleWarnTest.xml 18✅ 104ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.BracesRuleFixTest.xml 6✅ 136ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.BracesRuleWarnTest.xml 21✅ 139ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.ClassLikeStructuresOrderFixTest.xml 4✅ 939ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.ClassLikeStructuresOrderRuleWarnTest.xml 13✅ 87ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.CollapseIfStatementsRuleFixTest.xml 1✅ 173ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.CollapseIfStatementsRuleWarnTest.xml 25✅ 107ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.ConsecutiveSpacesRuleFixTest.xml 2✅ 12ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.ConsecutiveSpacesRuleWarnTest.xml 16✅ 63ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.DebugPrintRuleWarnTest.xml 9✅ 42ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.EmptyBlockFixTest.xml 1✅ 9ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.EmptyBlockWarnTest.xml 17✅ 54ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.EnumsSeparatedFixTest.xml 2✅ 41ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.EnumsSeparatedWarnTest.xml 11✅ 51ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.files.BlankLinesFixTest.xml 3✅ 18ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.files.BlankLinesWarnTest.xml 5✅ 24ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.files.NewlinesRuleFixTest.xml 13✅ 163ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.files.NewlinesRuleWarnTest.xml 54✅ 1⚪ 195ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.files.TopLevelOrderRuleFixTest.xml 2✅ 71ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.files.TopLevelOrderRuleWarnTest.xml 2✅ 9ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.FileSizeWarnTest.xml 4✅ 19ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.FileStructureRuleFixTest.xml 11✅ 1❌ 160ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.FileStructureRuleTest.xml 27✅ 1⚪ 117ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.LineLengthFixTest.xml 17✅ 691ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.LineLengthWarnTest.xml 8✅ 54ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.LocalVariablesWarnTest.xml 34✅ 5⚪ 215ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.LongNumericalValuesSeparatedFixTest.xml 1✅ 10ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.LongNumericalValuesSeparatedWarnTest.xml 5✅ 19ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.MagicNumberRuleWarnTest.xml 8✅ 60ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.MultipleModifiersSequenceFixTest.xml 2✅ 26ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.MultipleModifiersSequenceWarnTest.xml 6✅ 25ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.NullableTypeRuleFixTest.xml 2✅ 39ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.NullableTypeRuleWarnTest.xml 6✅ 17ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.PreviewAnnotationFixTest.xml 2✅ 19ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.PreviewAnnotationWarnTest.xml 4✅ 14ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.RangeConventionalRuleFixTest.xml 2✅ 19ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.RangeConventionalRuleWarnTest.xml 3✅ 10ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.SingleLineStatementsRuleFixTest.xml 1✅ 11ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.SingleLineStatementsRuleWarnTest.xml 7✅ 24ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.SortRuleFixTest.xml 2✅ 38ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.SortRuleWarnTest.xml 15✅ 41ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.spaces.IndentationConfigAwareTest.xml 24✅ 38ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.spaces.IndentationRuleFixTest.xml 8✅ 14s
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.spaces.IndentationRuleFixTest$Multi-line#20string#20literals.xml 8✅ 14s
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.spaces.IndentationRuleTest$Comments#20inside#20binary#20expressions.xml 48✅ 13s
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.spaces.IndentationRuleTest$Dot-#20and#20safe-qualified#20expressions.xml 128✅ 13s
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.spaces.IndentationRuleTest$Expression#20body#20functions.xml 160✅ 13s
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.spaces.IndentationRuleTest$Expressions#20wrapped#20after#20operator.xml 416✅ 13s
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.spaces.IndentationRuleTest$Expressions#20wrapped#20before#20operator.xml 368✅ 13s
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.spaces.IndentationRuleTest$If#20expressions.xml 32✅ 12s
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.spaces.IndentationRuleTest$Multi-line#20Elvis#20expressions.xml 52✅ 12s
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.spaces.IndentationRuleTest$Multi-line#20string#20literals.xml 40✅ 12s
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.spaces.IndentationRuleTest$Parentheses-surrounded#20infix#20expressions.xml 128✅ 12s
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.spaces.IndentationRuleTest$String#20templates.xml 12✅ 12s
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.spaces.IndentationRuleWarnTest.xml 64✅ 24s
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.spaces.WhiteSpaceRuleFixTest.xml 9✅ 316ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.spaces.WhiteSpaceRuleWarnTest.xml 37✅ 386ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.StringConcatenationRuleFixTest.xml 1✅ 61ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.StringConcatenationWarnTest.xml 12✅ 48ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.StringTemplateRuleFixTest.xml 1✅ 11ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.StringTemplateRuleWarnTest.xml 8✅ 28ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.TrailingCommaFixTest.xml 1✅ 21ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.TrailingCommaWarnTest.xml 11✅ 16ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.WhenMustHaveElseFixTest.xml 1✅ 96ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.WhenMustHaveElseWarnTest.xml 8✅ 30ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter4.AccurateCalculationsWarnTest.xml 7✅ 71ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter4.NoVarRuleWarnTest.xml 5✅ 127ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter4.NullChecksRuleFixTest.xml 4✅ 147ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter4.NullChecksRuleWarnTest.xml 12✅ 78ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter4.SmartCastRuleFixTest.xml 1✅ 16ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter4.SmartCastRuleWarnTest.xml 17✅ 1⚪ 83ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter4.TypeAliasRuleWarnTest.xml 7✅ 26ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter4.VariableGenericTypeDeclarationRuleFixTest.xml 1✅ 14ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter4.VariableGenericTypeDeclarationRuleWarnTest.xml 14✅ 58ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter5.AsyncAndSyncRuleTest.xml 2✅ 10ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter5.AvoidNestedFunctionsFixTest.xml 3✅ 22ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter5.AvoidNestedFunctionsWarnTest.xml 5✅ 21ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter5.CheckInverseMethodRuleFixTest.xml 1✅ 31ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter5.CheckInverseMethodRuleWarnTest.xml 4✅ 26ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter5.CustomLabelsTest.xml 2✅ 23ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter5.FunctionArgumentsSizeWarnTest.xml 2✅ 29ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter5.FunctionLengthWarnTest.xml 7✅ 30ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter5.LambdaLengthWarnTest.xml 8✅ 34ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter5.LambdaParameterOrderWarnTest.xml 1✅ 7ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter5.NestedFunctionBlockWarnTest.xml 8✅ 60ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter5.OverloadingArgumentsFunctionWarnTest.xml 8✅ 42ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter5.ParameterNameInOuterLambdaRuleWarnTest.xml 8✅ 12ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter6.AbstractClassesFixTest.xml 1✅ 10ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter6.AbstractClassesWarnTest.xml 7✅ 30ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter6.AvoidUtilityClassWarnTest.xml 4✅ 131ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter6.CompactInitializationFixTest.xml 6✅ 275ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter6.CompactInitializationWarnTest.xml 7✅ 32ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter6.CustomGetterSetterWarnTest.xml 5✅ 59ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter6.DataClassesRuleWarnTest.xml 22✅ 176ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter6.EmptyPrimaryConstructorFixTest.xml 1✅ 8ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter6.EmptyPrimaryConstructorWarnTest.xml 2✅ 8ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter6.ExtensionFunctionsInFileWarnTest.xml 8✅ 48ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter6.ExtensionFunctionsSameNameWarnTest.xml 6✅ 1⚪ 73ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter6.ImplicitBackingPropertyWarnTest.xml 9✅ 105ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter6.InlineClassesWarnTest.xml 14✅ 29ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter6.PropertyAccessorFieldsWarnTest.xml 5✅ 36ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter6.RunInScriptFixTest.xml 1✅ 10ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter6.RunInScriptWarnTest.xml 6✅ 327ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter6.SingleConstructorRuleFixTest.xml 8✅ 81ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter6.SingleConstructorRuleWarnTest.xml 2✅ 7ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter6.SingleInitRuleFixTest.xml 3✅ 27ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter6.SingleInitRuleWarnTest.xml 4✅ 21ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter6.StatelessClassesRuleFixTest.xml 1✅ 12ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter6.StatelessClassesRuleWarnTest.xml 5✅ 23ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter6.TrivialPropertyAccessorsFixTest.xml 1✅ 10ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter6.TrivialPropertyAccessorsWarnTest.xml 5✅ 18ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter6.UseLastIndexFixTest.xml 2✅ 123ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter6.UseLastIndexWarnTest.xml 6✅ 43ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter6.UselessSupertypeFixTest.xml 2✅ 54ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter6.UselessSupertypeWarnTest.xml 2✅ 11ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.smoke.RulesConfigValidationTest.xml 2✅ 1⚪ 2s
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.utils.AstNodeUtilsTest.xml 32✅ 79ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.utils.AvailableRulesDocTest.xml 1✅ 12ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.utils.FunctionAstNodeUtilsTest.xml 2✅ 4ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.utils.KotlinParserTest.xml 14✅ 49ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.utils.RulesConfigYamlTest.xml 3✅ 174ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.utils.StringCaseUtilsTest.xml 3✅ 1ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.utils.SuppressAnnotatedExpressionTest.xml 2✅ 10ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.utils.SuppressTest.xml 8✅ 46ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.utils.VariablesSearchTest.xml 1✅ 160ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.utils.VariablesWithAssignmentsSearchTest.xml 2✅ 1⚪ 7ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.utils.VariablesWithUsagesSearchTest.xml 11✅ 4⚪ 19ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.utils.WarningsGenerationTest.xml 1✅ 0ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.util.DiktatRuleSetFactoryImplTest.xml 1✅ 62ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.util.DiktatRuleTest.xml 2✅ 2ms
diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.util.SuppressingTest.xml 4✅ 9ms
diktat-ruleset/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.smoke.DiktatSaveSmokeTest.xml 19✅ 68s
diktat-ruleset/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.smoke.DiktatSmokeTest.xml 14✅ 5❌ 8s

✅ diktat-cli/build/test-results/test/TEST-com.saveourtool.diktat.util.CliUtilsKtTest.xml

4 tests were completed in 983ms with 4 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.util.CliUtilsKtTest 4✅ 983ms

✅ diktat-common/build/test-results/test/TEST-com.saveourtool.diktat.test.ConfigReaderTest.xml

2 tests were completed in 2s with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.test.ConfigReaderTest 2✅ 2s

✅ diktat-gradle-plugin/build/test-results/test/TEST-com.saveourtool.diktat.plugin.gradle.DiktatGradlePluginTest.xml

3 tests were completed in 30s with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.plugin.gradle.DiktatGradlePluginTest 3✅ 30s

✅ diktat-gradle-plugin/build/test-results/test/TEST-com.saveourtool.diktat.plugin.gradle.DiktatJavaExecTaskTest.xml

14 tests were completed in 3s with 14 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.plugin.gradle.DiktatJavaExecTaskTest 14✅ 3s

✅ diktat-gradle-plugin/build/test-results/test/TEST-com.saveourtool.diktat.plugin.gradle.ReporterSelectionTest.xml

1 tests were completed in 17ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.plugin.gradle.ReporterSelectionTest 1✅ 17ms

✅ diktat-ktlint-engine/build/test-results/test/TEST-com.saveourtool.diktat.ktlint.KtLintRuleWrapperTest.xml

3 tests were completed in 13s with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ktlint.KtLintRuleWrapperTest 3✅ 13s

✅ diktat-maven-plugin/build/test-results/test/TEST-com.saveourtool.diktat.plugin.maven.DiktatBaseMojoTest.xml

2 tests were completed in 1ms with 0 passed, 0 failed and 2 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.plugin.maven.DiktatBaseMojoTest 2⚪ 1ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter1.EnumValueCaseTest.xml

3 tests were completed in 86ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter1.EnumValueCaseTest 3✅ 86ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter1.IdentifierNamingFixTest.xml

10 tests were completed in 118ms with 10 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter1.IdentifierNamingFixTest 10✅ 118ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter1.IdentifierNamingWarnTest.xml

40 tests were completed in 257ms with 40 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter1.IdentifierNamingWarnTest 40✅ 257ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter1.MethodNamingWarnTest.xml

8 tests were completed in 40ms with 8 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter1.MethodNamingWarnTest 8✅ 40ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter1.PackageNamingFixTest.xml

3 tests were completed in 140ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter1.PackageNamingFixTest 3✅ 140ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter1.PackageNamingWarnTest.xml

18 tests were completed in 607ms with 18 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter1.PackageNamingWarnTest 18✅ 607ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter1.PackagePathFixTest.xml

10 tests were completed in 145ms with 10 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter1.PackagePathFixTest 10✅ 145ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter2.comments.CommentedCodeTest.xml

27 tests were completed in 162ms with 27 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter2.comments.CommentedCodeTest 27✅ 162ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter2.CommentsFormattingFixTest.xml

5 tests were completed in 73ms with 5 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter2.CommentsFormattingFixTest 5✅ 73ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter2.CommentsFormattingTest.xml

23 tests were completed in 132ms with 23 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter2.CommentsFormattingTest 23✅ 132ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter2.HeaderCommentRuleFixTest.xml

13 tests were completed in 111ms with 13 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter2.HeaderCommentRuleFixTest 13✅ 111ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter2.HeaderCommentRuleTest.xml

21 tests were completed in 55ms with 21 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter2.HeaderCommentRuleTest 21✅ 55ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter2.KdocCommentsFixTest.xml

5 tests were completed in 813ms with 5 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter2.KdocCommentsFixTest 5✅ 813ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter2.KdocCommentsWarnTest.xml

39 tests were completed in 227ms with 39 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter2.KdocCommentsWarnTest 39✅ 227ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter2.KdocFormattingFixTest.xml

9 tests were completed in 121ms with 9 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter2.KdocFormattingFixTest 9✅ 121ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter2.KdocFormattingTest.xml

22 tests were completed in 127ms with 22 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter2.KdocFormattingTest 22✅ 127ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter2.KdocMethodsFixTest.xml

8 tests were completed in 132ms with 8 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter2.KdocMethodsFixTest 8✅ 132ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter2.KdocMethodsTest.xml

21 tests were completed in 147ms with 21 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter2.KdocMethodsTest 21✅ 147ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter2.KdocParamPresentWarnTest.xml

6 tests were completed in 26ms with 6 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter2.KdocParamPresentWarnTest 6✅ 26ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.AnnotationNewLineRuleFixTest.xml

3 tests were completed in 58ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter3.AnnotationNewLineRuleFixTest 3✅ 58ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.AnnotationNewLineRuleWarnTest.xml

19 tests were completed in 217ms with 19 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter3.AnnotationNewLineRuleWarnTest 19✅ 217ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.BlockStructureBracesFixTest.xml

6 tests were completed in 56ms with 6 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter3.BlockStructureBracesFixTest 6✅ 56ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.BlockStructureBracesWarnTest.xml

30 tests were completed in 123ms with 30 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter3.BlockStructureBracesWarnTest 30✅ 123ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.BooleanExpressionsRuleFixTest.xml

7 tests were completed in 326ms with 7 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter3.BooleanExpressionsRuleFixTest 7✅ 326ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.BooleanExpressionsRuleWarnTest.xml

18 tests were completed in 104ms with 18 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter3.BooleanExpressionsRuleWarnTest 18✅ 104ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.BracesRuleFixTest.xml

6 tests were completed in 136ms with 6 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter3.BracesRuleFixTest 6✅ 136ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.BracesRuleWarnTest.xml

21 tests were completed in 139ms with 21 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter3.BracesRuleWarnTest 21✅ 139ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.ClassLikeStructuresOrderFixTest.xml

4 tests were completed in 939ms with 4 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter3.ClassLikeStructuresOrderFixTest 4✅ 939ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.ClassLikeStructuresOrderRuleWarnTest.xml

13 tests were completed in 87ms with 13 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter3.ClassLikeStructuresOrderRuleWarnTest 13✅ 87ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.CollapseIfStatementsRuleFixTest.xml

1 tests were completed in 173ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter3.CollapseIfStatementsRuleFixTest 1✅ 173ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.CollapseIfStatementsRuleWarnTest.xml

25 tests were completed in 107ms with 25 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter3.CollapseIfStatementsRuleWarnTest 25✅ 107ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.ConsecutiveSpacesRuleFixTest.xml

2 tests were completed in 12ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter3.ConsecutiveSpacesRuleFixTest 2✅ 12ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.ConsecutiveSpacesRuleWarnTest.xml

16 tests were completed in 63ms with 16 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter3.ConsecutiveSpacesRuleWarnTest 16✅ 63ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.DebugPrintRuleWarnTest.xml

9 tests were completed in 42ms with 9 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter3.DebugPrintRuleWarnTest 9✅ 42ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.EmptyBlockFixTest.xml

1 tests were completed in 9ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter3.EmptyBlockFixTest 1✅ 9ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.EmptyBlockWarnTest.xml

17 tests were completed in 54ms with 17 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter3.EmptyBlockWarnTest 17✅ 54ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.EnumsSeparatedFixTest.xml

2 tests were completed in 41ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter3.EnumsSeparatedFixTest 2✅ 41ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.EnumsSeparatedWarnTest.xml

11 tests were completed in 51ms with 11 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter3.EnumsSeparatedWarnTest 11✅ 51ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.files.BlankLinesFixTest.xml

3 tests were completed in 18ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter3.files.BlankLinesFixTest 3✅ 18ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.files.BlankLinesWarnTest.xml

5 tests were completed in 24ms with 5 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter3.files.BlankLinesWarnTest 5✅ 24ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.files.NewlinesRuleFixTest.xml

13 tests were completed in 163ms with 13 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter3.files.NewlinesRuleFixTest 13✅ 163ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.files.NewlinesRuleWarnTest.xml

55 tests were completed in 195ms with 54 passed, 0 failed and 1 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter3.files.NewlinesRuleWarnTest 54✅ 1⚪ 195ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.files.TopLevelOrderRuleFixTest.xml

2 tests were completed in 71ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter3.files.TopLevelOrderRuleFixTest 2✅ 71ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.files.TopLevelOrderRuleWarnTest.xml

2 tests were completed in 9ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter3.files.TopLevelOrderRuleWarnTest 2✅ 9ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.FileSizeWarnTest.xml

4 tests were completed in 19ms with 4 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter3.FileSizeWarnTest 4✅ 19ms

❌ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.FileStructureRuleFixTest.xml

12 tests were completed in 160ms with 11 passed, 1 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter3.FileStructureRuleFixTest 11✅ 1❌ 160ms

❌ com.saveourtool.diktat.ruleset.chapter3.FileStructureRuleFixTest

✅ should remove redundant blank lines()
❌ several empty lines after package(Path)
	org.gradle.internal.exceptions.DefaultMultiCauseException: Multiple Failures (2 failures)
✅ should move @file targeted annotations after header KDoc()
✅ should still work with default package and some imports()
✅ should move copyright comment before @file targeted annotations()
✅ should reorder imports alphabetically with saving of EOL comments()
✅ should insert blank lines between code blocks()
✅ invalid move in kts files()
✅ should move other comments before package node()
✅ should still work with default package and no imports()
✅ should reorder imports according to recommendation 3_1()
✅ should move header kdoc before package directive()

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.FileStructureRuleTest.xml

28 tests were completed in 117ms with 27 passed, 0 failed and 1 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter3.FileStructureRuleTest 27✅ 1⚪ 117ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.LineLengthFixTest.xml

17 tests were completed in 691ms with 17 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter3.LineLengthFixTest 17✅ 691ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.LineLengthWarnTest.xml

8 tests were completed in 54ms with 8 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter3.LineLengthWarnTest 8✅ 54ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.LocalVariablesWarnTest.xml

39 tests were completed in 215ms with 34 passed, 0 failed and 5 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter3.LocalVariablesWarnTest 34✅ 5⚪ 215ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.LongNumericalValuesSeparatedFixTest.xml

1 tests were completed in 10ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter3.LongNumericalValuesSeparatedFixTest 1✅ 10ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.LongNumericalValuesSeparatedWarnTest.xml

5 tests were completed in 19ms with 5 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter3.LongNumericalValuesSeparatedWarnTest 5✅ 19ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.MagicNumberRuleWarnTest.xml

8 tests were completed in 60ms with 8 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter3.MagicNumberRuleWarnTest 8✅ 60ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.MultipleModifiersSequenceFixTest.xml

2 tests were completed in 26ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter3.MultipleModifiersSequenceFixTest 2✅ 26ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.MultipleModifiersSequenceWarnTest.xml

6 tests were completed in 25ms with 6 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter3.MultipleModifiersSequenceWarnTest 6✅ 25ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.NullableTypeRuleFixTest.xml

2 tests were completed in 39ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter3.NullableTypeRuleFixTest 2✅ 39ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.NullableTypeRuleWarnTest.xml

6 tests were completed in 17ms with 6 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter3.NullableTypeRuleWarnTest 6✅ 17ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.PreviewAnnotationFixTest.xml

2 tests were completed in 19ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter3.PreviewAnnotationFixTest 2✅ 19ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.PreviewAnnotationWarnTest.xml

4 tests were completed in 14ms with 4 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter3.PreviewAnnotationWarnTest 4✅ 14ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.RangeConventionalRuleFixTest.xml

2 tests were completed in 19ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter3.RangeConventionalRuleFixTest 2✅ 19ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.RangeConventionalRuleWarnTest.xml

3 tests were completed in 10ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter3.RangeConventionalRuleWarnTest 3✅ 10ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.SingleLineStatementsRuleFixTest.xml

1 tests were completed in 11ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter3.SingleLineStatementsRuleFixTest 1✅ 11ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.SingleLineStatementsRuleWarnTest.xml

7 tests were completed in 24ms with 7 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter3.SingleLineStatementsRuleWarnTest 7✅ 24ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.SortRuleFixTest.xml

2 tests were completed in 38ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter3.SortRuleFixTest 2✅ 38ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.SortRuleWarnTest.xml

15 tests were completed in 41ms with 15 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter3.SortRuleWarnTest 15✅ 41ms

✅ diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.spaces.IndentationConfigAwareTest.xml

24 tests were completed in 38ms with 24 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.saveourtool.diktat.ruleset.chapter3.spaces.IndentationConfigAwareTest 24✅ 38ms
Report exceeded GitHub limit of 65535 bytes and has been trimmed

Annotations

Check failure on line 93 in diktat-rules/src/test/kotlin/com/saveourtool/diktat/util/FixTestBase.kt

See this annotation in the file changed.

@github-actions github-actions / JUnit Tests (Windows, dorny/test-reporter@v1)

com.saveourtool.diktat.ruleset.chapter3.FileStructureRuleFixTest ► several empty lines after package(Path)

Failed test found in:
  diktat-rules/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.chapter3.FileStructureRuleFixTest.xml
Error:
  org.gradle.internal.exceptions.DefaultMultiCauseException: Multiple Failures (2 failures)
Raw output
org.gradle.internal.exceptions.DefaultMultiCauseException: Multiple Failures (2 failures)
	org.opentest4j.AssertionFailedError: Detected delta: InsertDelta(source=[position: 1, size: 0, lines: []], target=[position: 1, size: 1, lines: []]) ==> expected: <true> but was: <false>
	org.opentest4j.AssertionFailedError: Content are different ==> expected: <package com.saveourtool.diktat
/**
 * @param bar
 * @return something
 */
fun foo1(bar: Bar): Baz {
    // placeholder
}> but was: <package com.saveourtool.diktat

/**
 * @param bar
 * @return something
 */
fun foo1(bar: Bar): Baz {
    // placeholder
}>
	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.util.FixTestBase.fixAndCompare(FixTestBase.kt:93)
	at com.saveourtool.diktat.ruleset.chapter3.FileStructureRuleFixTest.several empty lines after package(FileStructureRuleFixTest.kt:134)
	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: Detected delta: InsertDelta(source=[position: 1, size: 0, lines: []], target=[position: 1, size: 1, lines: []]) ==> 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:42)
		at org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:187)
		at com.saveourtool.diktat.util.FixTestBase.fixAndCompare$lambda$5(FixTestBase.kt:95)
		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: Content are different ==> expected: <package com.saveourtool.diktat
/**
 * @param bar
 * @return something
 */
fun foo1(bar: Bar): Baz {
    // placeholder
}> but was: <package com.saveourtool.diktat

/**
 * @param bar
 * @return something
 */
fun foo1(bar: Bar): Baz {
    // placeholder
}>
		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:188)
		at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1163)
		at com.saveourtool.diktat.util.FixTestBase.fixAndCompare$lambda$7(FixTestBase.kt:102)
		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: Detected delta: InsertDelta(source=[position: 1, size: 0, lines: []], target=[position: 1, size: 1, lines: []]) ==> 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:42)
	at org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:187)
	at com.saveourtool.diktat.util.FixTestBase.fixAndCompare$lambda$5(FixTestBase.kt:95)
	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.util.FixTestBase.fixAndCompare(FixTestBase.kt:93)
	at com.saveourtool.diktat.ruleset.chapter3.FileStructureRuleFixTest.several empty lines after package(FileStructureRuleFixTest.kt:134)
	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: Content are different ==> expected: <package com.saveourtool.diktat
/**
 * @param bar
 * @return something
 */
fun foo1(bar: Bar): Baz {
    // placeholder
}> but was: <package com.saveourtool.diktat

/**
 * @param bar
 * @return something
 */
fun foo1(bar: Bar): Baz {
    // placeholder
}>
	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:188)
	at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1163)
	at com.saveourtool.diktat.util.FixTestBase.fixAndCompare$lambda$7(FixTestBase.kt:102)
	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.util.FixTestBase.fixAndCompare(FixTestBase.kt:93)
	at com.saveourtool.diktat.ruleset.chapter3.FileStructureRuleFixTest.several empty lines after package(FileStructureRuleFixTest.kt:134)
	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 failure on line 351 in diktat-ruleset/src/test/kotlin/com/saveourtool/diktat/ruleset/smoke/DiktatSmokeTestBase.kt

See this annotation in the file changed.

@github-actions github-actions / JUnit Tests (Windows, dorny/test-reporter@v1)

com.saveourtool.diktat.ruleset.smoke.DiktatSmokeTest ► smoke test with gradle script plugin()

Failed test found in:
  diktat-ruleset/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.smoke.DiktatSmokeTest.xml
Error:
  org.opentest4j.AssertionFailedError: 
Raw output
org.opentest4j.AssertionFailedError: 
Expecting actual:
  [DiktatError(line=2, col=1, ruleId=diktat-ruleset:comments, detail=[COMMENTED_OUT_CODE] you should not comment out code, use VCS to save it in history and delete this block: import org.jetbrains.kotlin.gradle.dsl.jvm, canBeAutoCorrected=false),
    DiktatError(line=2, col=1, ruleId=diktat-ruleset:kdoc-comments-codeblocks-formatting, detail=[COMMENT_WHITE_SPACE] there should be a white space between code and comment also between code start token and comment text: There should be 1 space(s) before comment token in //import org.jetbrains.kotlin.gradle.dsl.jvm, canBeAutoCorrected=true),
    DiktatError(line=6, col=1, ruleId=diktat-ruleset:indentation, detail=[WRONG_INDENTATION] only spaces are allowed for indentation and each indentation should equal to 4 spaces (tabs are not allowed): no newline at the end of file kotlin-library.gradle.kts, canBeAutoCorrected=true)]
to contain exactly (and in same order):
  [DiktatError(line=2, col=1, ruleId=diktat-ruleset:comments, detail=[COMMENTED_OUT_CODE] you should not comment out code, use VCS to save it in history and delete this block: import org.jetbrains.kotlin.gradle.dsl.jvm, canBeAutoCorrected=false)]
but some elements were not expected:
  [DiktatError(line=2, col=1, ruleId=diktat-ruleset:kdoc-comments-codeblocks-formatting, detail=[COMMENT_WHITE_SPACE] there should be a white space between code and comment also between code start token and comment text: There should be 1 space(s) before comment token in //import org.jetbrains.kotlin.gradle.dsl.jvm, canBeAutoCorrected=true),
    DiktatError(line=6, col=1, ruleId=diktat-ruleset:indentation, detail=[WRONG_INDENTATION] only spaces are allowed for indentation and each indentation should equal to 4 spaces (tabs are not allowed): no newline at the end of file kotlin-library.gradle.kts, canBeAutoCorrected=true)]

	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.DiktatSmokeTestBase$smoke test with gradle script plugin$1.invoke(DiktatSmokeTestBase.kt:351)
	at com.saveourtool.diktat.ruleset.smoke.DiktatSmokeTestBase$smoke test with gradle script plugin$1.invoke(DiktatSmokeTestBase.kt:350)
	at com.saveourtool.diktat.ruleset.smoke.DiktatSmokeTest.assertUnfixedLintErrors(DiktatSmokeTest.kt:51)
	at com.saveourtool.diktat.ruleset.smoke.DiktatSmokeTestBase.smoke test with gradle script plugin(DiktatSmokeTestBase.kt:350)
	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 failure on line 374 in diktat-ruleset/src/test/kotlin/com/saveourtool/diktat/ruleset/smoke/DiktatSmokeTestBase.kt

See this annotation in the file changed.

@github-actions github-actions / JUnit Tests (Windows, dorny/test-reporter@v1)

com.saveourtool.diktat.ruleset.smoke.DiktatSmokeTest ► disable chapters()

Failed test found in:
  diktat-ruleset/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.smoke.DiktatSmokeTest.xml
Error:
  java.lang.AssertionError: 
Raw output
java.lang.AssertionError: 
Expecting actual:
  [DiktatError(line=3, col=1, ruleId=diktat-ruleset:kdoc-comments, detail=[MISSING_KDOC_TOP_LEVEL] all public and internal top-level classes and functions should have Kdoc: example, canBeAutoCorrected=false),
    DiktatError(line=3, col=16, ruleId=diktat-ruleset:kdoc-comments, detail=[MISSING_KDOC_CLASS_ELEMENTS] all public, internal and protected classes, functions and variables inside the class should have Kdoc: isValid, canBeAutoCorrected=false),
    DiktatError(line=6, col=5, ruleId=diktat-ruleset:kdoc-comments, detail=[MISSING_KDOC_CLASS_ELEMENTS] all public, internal and protected classes, functions and variables inside the class should have Kdoc: foo, canBeAutoCorrected=false),
    DiktatError(line=6, col=5, ruleId=diktat-ruleset:kdoc-methods, detail=[MISSING_KDOC_ON_FUNCTION] all public, internal and protected functions should have Kdoc with proper tags: foo, canBeAutoCorrected=false),
    DiktatError(line=8, col=5, ruleId=diktat-ruleset:kdoc-comments, detail=[MISSING_KDOC_CLASS_ELEMENTS] all public, internal and protected classes, functions and variables inside the class should have Kdoc: foo, canBeAutoCorrected=false),
    DiktatError(line=9, col=1, ruleId=diktat-ruleset:kdoc-comments, detail=[MISSING_KDOC_CLASS_ELEMENTS] all public, internal and protected classes, functions and variables inside the class should have Kdoc: bar, canBeAutoCorrected=false),
    DiktatError(line=9, col=1, ruleId=diktat-ruleset:kdoc-methods, detail=[MISSING_KDOC_ON_FUNCTION] all public, internal and protected functions should have Kdoc with proper tags: bar, canBeAutoCorrected=true),
    DiktatError(line=12, col=5, ruleId=diktat-ruleset:kdoc-comments, detail=[MISSING_KDOC_CLASS_ELEMENTS] all public, internal and protected classes, functions and variables inside the class should have Kdoc: countSubStringOccurrences, canBeAutoCorrected=false),
    DiktatError(line=12, col=5, ruleId=diktat-ruleset:kdoc-methods, detail=[MISSING_KDOC_ON_FUNCTION] all public, internal and protected functions should have Kdoc with proper tags: countSubStringOccurrences, canBeAutoCorrected=true),
    DiktatError(line=17, col=5, ruleId=diktat-ruleset:kdoc-comments, detail=[MISSING_KDOC_CLASS_ELEMENTS] all public, internal and protected classes, functions and variables inside the class should have Kdoc: splitPathToDirs, canBeAutoCorrected=false),
    DiktatError(line=17, col=5, ruleId=diktat-ruleset:kdoc-methods, detail=[MISSING_KDOC_ON_FUNCTION] all public, internal and protected functions should have Kdoc with proper tags: splitPathToDirs, canBeAutoCorrected=true),
    DiktatError(line=22, col=5, ruleId=diktat-ruleset:kdoc-comments, detail=[MISSING_KDOC_CLASS_ELEMENTS] all public, internal and protected classes, functions and variables inside the class should have Kdoc: foo, canBeAutoCorrected=false),
    DiktatError(line=22, col=5, ruleId=diktat-ruleset:kdoc-methods, detail=[MISSING_KDOC_ON_FUNCTION] all public, internal and protected functions should have Kdoc with proper tags: foo, canBeAutoCorrected=true)]
to contain exactly in any order:
  [DiktatError(line=1, col=1, ruleId=diktat-ruleset:kdoc-formatting, detail=[KDOC_NO_EMPTY_TAGS] no empty descriptions in tag blocks are allowed: @return, canBeAutoCorrected=false),
    DiktatError(line=3, col=1, ruleId=diktat-ruleset:kdoc-comments, detail=[MISSING_KDOC_TOP_LEVEL] all public and internal top-level classes and functions should have Kdoc: example, canBeAutoCorrected=false),
    DiktatError(line=3, col=16, ruleId=diktat-ruleset:kdoc-comments, detail=[MISSING_KDOC_CLASS_ELEMENTS] all public, internal and protected classes, functions and variables inside the class should have Kdoc: isValid, canBeAutoCorrected=false),
    DiktatError(line=6, col=5, ruleId=diktat-ruleset:kdoc-comments, detail=[MISSING_KDOC_CLASS_ELEMENTS] all public, internal and protected classes, functions and variables inside the class should have Kdoc: foo, canBeAutoCorrected=false),
    DiktatError(line=6, col=5, ruleId=diktat-ruleset:kdoc-methods, detail=[MISSING_KDOC_ON_FUNCTION] all public, internal and protected functions should have Kdoc with proper tags: foo, canBeAutoCorrected=false),
    DiktatError(line=8, col=5, ruleId=diktat-ruleset:kdoc-comments, detail=[MISSING_KDOC_CLASS_ELEMENTS] all public, internal and protected classes, functions and variables inside the class should have Kdoc: foo, canBeAutoCorrected=false),
    DiktatError(line=10, col=4, ruleId=diktat-ruleset:kdoc-formatting, detail=[KDOC_NO_EMPTY_TAGS] no empty descriptions in tag blocks are allowed: @return, canBeAutoCorrected=false),
    DiktatError(line=13, col=9, ruleId=diktat-ruleset:kdoc-formatting, detail=[KDOC_NO_EMPTY_TAGS] no empty descriptions in tag blocks are allowed: @return, canBeAutoCorrected=false),
    DiktatError(line=18, col=40, ruleId=diktat-ruleset:kdoc-formatting, detail=[KDOC_NO_EMPTY_TAGS] no empty descriptions in tag blocks are allowed: @return, canBeAutoCorrected=false)]
elements not found:
  [DiktatError(line=1, col=1, ruleId=diktat-ruleset:kdoc-formatting, detail=[KDOC_NO_EMPTY_TAGS] no empty descriptions in tag blocks are allowed: @return, canBeAutoCorrected=false),
    DiktatError(line=10, col=4, ruleId=diktat-ruleset:kdoc-formatting, detail=[KDOC_NO_EMPTY_TAGS] no empty descriptions in tag blocks are allowed: @return, canBeAutoCorrected=false),
    DiktatError(line=13, col=9, ruleId=diktat-ruleset:kdoc-formatting, detail=[KDOC_NO_EMPTY_TAGS] no empty descriptions in tag blocks are allowed: @return, canBeAutoCorrected=false),
    DiktatError(line=18, col=40, ruleId=diktat-ruleset:kdoc-formatting, detail=[KDOC_NO_EMPTY_TAGS] no empty descriptions in tag blocks are allowed: @return, canBeAutoCorrected=false)]
and elements not expected:
  [DiktatError(line=9, col=1, ruleId=diktat-ruleset:kdoc-comments, detail=[MISSING_KDOC_CLASS_ELEMENTS] all public, internal and protected classes, functions and variables inside the class should have Kdoc: bar, canBeAutoCorrected=false),
    DiktatError(line=9, col=1, ruleId=diktat-ruleset:kdoc-methods, detail=[MISSING_KDOC_ON_FUNCTION] all public, internal and protected functions should have Kdoc with proper tags: bar, canBeAutoCorrected=true),
    DiktatError(line=12, col=5, ruleId=diktat-ruleset:kdoc-comments, detail=[MISSING_KDOC_CLASS_ELEMENTS] all public, internal and protected classes, functions and variables inside the class should have Kdoc: countSubStringOccurrences, canBeAutoCorrected=false),
    DiktatError(line=12, col=5, ruleId=diktat-ruleset:kdoc-methods, detail=[MISSING_KDOC_ON_FUNCTION] all public, internal and protected functions should have Kdoc with proper tags: countSubStringOccurrences, canBeAutoCorrected=true),
    DiktatError(line=17, col=5, ruleId=diktat-ruleset:kdoc-comments, detail=[MISSING_KDOC_CLASS_ELEMENTS] all public, internal and protected classes, functions and variables inside the class should have Kdoc: splitPathToDirs, canBeAutoCorrected=false),
    DiktatError(line=17, col=5, ruleId=diktat-ruleset:kdoc-methods, detail=[MISSING_KDOC_ON_FUNCTION] all public, internal and protected functions should have Kdoc with proper tags: splitPathToDirs, canBeAutoCorrected=true),
    DiktatError(line=22, col=5, ruleId=diktat-ruleset:kdoc-comments, detail=[MISSING_KDOC_CLASS_ELEMENTS] all public, internal and protected classes, functions and variables inside the class should have Kdoc: foo, canBeAutoCorrected=false),
    DiktatError(line=22, col=5, ruleId=diktat-ruleset:kdoc-methods, detail=[MISSING_KDOC_ON_FUNCTION] all public, internal and protected functions should have Kdoc with proper tags: foo, canBeAutoCorrected=true)]

	at com.saveourtool.diktat.ruleset.smoke.DiktatSmokeTestBase$disable chapters$1.invoke(DiktatSmokeTestBase.kt:374)
	at com.saveourtool.diktat.ruleset.smoke.DiktatSmokeTestBase$disable chapters$1.invoke(DiktatSmokeTestBase.kt:373)
	at com.saveourtool.diktat.ruleset.smoke.DiktatSmokeTest.assertUnfixedLintErrors(DiktatSmokeTest.kt:51)
	at com.saveourtool.diktat.ruleset.smoke.DiktatSmokeTestBase.disable chapters(DiktatSmokeTestBase.kt:373)
	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 failure on line 246 in diktat-ruleset/src/test/kotlin/com/saveourtool/diktat/ruleset/smoke/DiktatSmokeTestBase.kt

See this annotation in the file changed.

@github-actions github-actions / JUnit Tests (Windows, dorny/test-reporter@v1)

com.saveourtool.diktat.ruleset.smoke.DiktatSmokeTest ► smoke test #1()

Failed test found in:
  diktat-ruleset/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.smoke.DiktatSmokeTest.xml
Error:
  java.lang.AssertionError: 
Raw output
java.lang.AssertionError: 
Expecting actual:
  [DiktatError(line=1, col=1, ruleId=diktat-ruleset:file-naming, detail=[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: Example1Test.kt vs example, canBeAutoCorrected=false),
    DiktatError(line=1, col=9, ruleId=diktat-ruleset:package-naming, detail=[PACKAGE_NAME_INCORRECT_PREFIX] package name should start from company's domain: com.saveourtool.diktat, canBeAutoCorrected=true),
    DiktatError(line=1, col=9, ruleId=diktat-ruleset:package-naming, detail=[PACKAGE_NAME_INCORRECT_PATH] package name does not match the directory hierarchy for this file, the real package name should be: com.saveourtool.diktat, canBeAutoCorrected=true),
    DiktatError(line=3, col=1, ruleId=diktat-ruleset:kdoc-comments, detail=[MISSING_KDOC_TOP_LEVEL] all public and internal top-level classes and functions should have Kdoc: example, canBeAutoCorrected=false),
    DiktatError(line=3, col=7, ruleId=diktat-ruleset:identifier-naming, detail=[CLASS_NAME_INCORRECT] class/enum/interface name should be in PascalCase and should contain only latin (ASCII) letters or numbers: example, canBeAutoCorrected=true),
    DiktatError(line=3, col=14, ruleId=diktat-ruleset:horizontal-whitespace, detail=[WRONG_WHITESPACE] incorrect usage of whitespaces for code separation: there should be a whitespace before '{', canBeAutoCorrected=true),
    DiktatError(line=3, col=15, ruleId=diktat-ruleset:block-structure, detail=[BRACES_BLOCK_STRUCTURE_ERROR] braces should follow 1TBS style: incorrect same line after opening brace, canBeAutoCorrected=true),
    DiktatError(line=3, col=16, ruleId=diktat-ruleset:kdoc-comments, detail=[MISSING_KDOC_CLASS_ELEMENTS] all public, internal and protected classes, functions and variables inside the class should have Kdoc: isValid, canBeAutoCorrected=false),
    DiktatError(line=3, col=21, ruleId=diktat-ruleset:horizontal-whitespace, detail=[WRONG_WHITESPACE] incorrect usage of whitespaces for code separation: : should have 0 space(s) before and 0 space(s) after, but has 1 space(s) before and 1 space(s) after, canBeAutoCorrected=true),
    DiktatError(line=3, col=31, ruleId=diktat-ruleset:horizontal-whitespace, detail=[WRONG_WHITESPACE] incorrect usage of whitespaces for code separation: ( "getIsValid" ) should have 0 space(s) before, but has 1 space(s) before, canBeAutoCorrected=true),
    DiktatError(line=3, col=31, ruleId=diktat-ruleset:horizontal-whitespace, detail=[WRONG_WHITESPACE] incorrect usage of whitespaces for code separation: ( should have 0 space(s) after, but has 1 space(s) after, canBeAutoCorrected=true),
    DiktatError(line=3, col=46, ruleId=diktat-ruleset:horizontal-whitespace, detail=[WRONG_WHITESPACE] incorrect usage of whitespaces for code separation: ) should have 0 space(s) before, but has 1 space(s) before, canBeAutoCorrected=true),
    DiktatError(line=6, col=5, ruleId=diktat-ruleset:kdoc-comments, detail=[MISSING_KDOC_CLASS_ELEMENTS] all public, internal and protected classes, functions and variables inside the class should have Kdoc: foo, canBeAutoCorrected=false),
    DiktatError(line=6, col=5, ruleId=diktat-ruleset:kdoc-methods, detail=[MISSING_KDOC_ON_FUNCTION] all public, internal and protected functions should have Kdoc with proper tags: foo, canBeAutoCorrected=false),
    DiktatError(line=6, col=5, ruleId=diktat-ruleset:class-like-structures, detail=[WRONG_ORDER_IN_CLASS_LIKE_STRUCTURES] the declaration part of a class-like code structures (class/interface/etc.) should be in the proper order: FUN: foo, canBeAutoCorrected=true),
    DiktatError(line=6, col=19, ruleId=diktat-ruleset:empty-block-structure, detail=[EMPTY_BLOCK_STRUCTURE_ERROR] incorrect format of empty block: empty blocks are forbidden unless it is function with override keyword, canBeAutoCorrected=false),
    DiktatError(line=8, col=5, ruleId=diktat-ruleset:kdoc-comments, detail=[MISSING_KDOC_CLASS_ELEMENTS] all public, internal and protected classes, functions and variables inside the class should have Kdoc: foo, canBeAutoCorrected=false),
    DiktatError(line=8, col=5, ruleId=diktat-ruleset:class-like-structures, detail=[WRONG_ORDER_IN_CLASS_LIKE_STRUCTURES] the declaration part of a class-like code structures (class/interface/etc.) should be in the proper order: PROPERTY: foo, canBeAutoCorrected=true),
    DiktatError(line=8, col=5, ruleId=diktat-ruleset:class-like-structures, detail=[BLANK_LINE_BETWEEN_PROPERTIES] there should be no blank lines between properties without comments; comment, KDoc or annotation on property should have blank line before: foo, canBeAutoCorrected=true),
    DiktatError(line=8, col=12, ruleId=diktat-ruleset:horizontal-whitespace, detail=[WRONG_WHITESPACE] incorrect usage of whitespaces for code separation: : should have 0 space(s) before and 1 space(s) after, but has 0 space(s) after, canBeAutoCorrected=true),
    DiktatError(line=8, col=17, ruleId=diktat-ruleset:horizontal-whitespace, detail=[WRONG_WHITESPACE] incorrect usage of whitespaces for code separation: = should have 1 space(s) before and 1 space(s) after, but has 0 space(s) after, canBeAutoCorrected=true),
    DiktatError(line=9, col=1, ruleId=diktat-ruleset:kdoc-comments, detail=[MISSING_KDOC_CLASS_ELEMENTS] all public, internal and protected classes, functions and variables inside the class should have Kdoc: bar, canBeAutoCorrected=false),
    DiktatError(line=9, col=1, ruleId=diktat-ruleset:kdoc-methods, detail=[MISSING_KDOC_ON_FUNCTION] all public, internal and protected functions should have Kdoc with proper tags: bar, canBeAutoCorrected=true),
    DiktatError(line=9, col=1, ruleId=diktat-ruleset:indentation, detail=[WRONG_INDENTATION] only spaces are allowed for indentation and each indentation should equal to 4 spaces (tabs are not allowed): expected 4 but was 0, canBeAutoCorrected=true),
    DiktatError(line=9, col=11, ruleId=diktat-ruleset:horizontal-whitespace, detail=[WRONG_WHITESPACE] incorrect usage of whitespaces for code separation: : should have 0 space(s) before and 1 space(s) after, but has 1 space(s) before and 0 space(s) after, canBeAutoCorrected=true),
    DiktatError(line=9, col=15, ruleId=diktat-ruleset:horizontal-whitespace, detail=[WRONG_WHITESPACE] incorrect usage of whitespaces for code separation: , should have 0 space(s) before and 1 space(s) after, but has 0 space(s) after, canBeAutoCorrected=true),
    DiktatError(line=9, col=17, ruleId=diktat-ruleset:horizontal-whitespace, detail=[WRONG_WHITESPACE] incorrect usage of whitespaces for code separation: : should have 0 space(s) before and 1 space(s) after, but has 0 space(s) after, canBeAutoCorrected=true),
    DiktatError(line=9, col=23, ruleId=diktat-ruleset:horizontal-whitespace, detail=[WRONG_WHITESPACE] incorrect usage of whitespaces for code separation: : should have 0 space(s) before and 1 space(s) after, but has 1 space(s) before and 0 space(s) after, canBeAutoCorrected=true),
    DiktatError(line=10, col=1, ruleId=diktat-ruleset:newlines, detail=[WRONG_NEWLINES] incorrect line breaking: functions with single return statement should be simplified to expression body, canBeAutoCorrected=true),
    DiktatError(line=10, col=1, ruleId=diktat-ruleset:indentation, detail=[WRONG_INDENTATION] only spaces are allowed for indentation and each indentation should equal to 4 spaces (tabs are not allowed): expected 8 but was 0, canBeAutoCorrected=true),
    DiktatError(line=10, col=7, ruleId=diktat-ruleset:too-many-spaces, detail=[TOO_MANY_CONSECUTIVE_SPACES] too many consecutive spaces: found: 3. need to be: 1, canBeAutoCorrected=true),
    DiktatError(line=10, col=11, ruleId=diktat-ruleset:horizontal-whitespace, detail=[WRONG_WHITESPACE] incorrect usage of whitespaces for code separation: + should have 1 space(s) before and 1 space(s) after, but has 0 space(s) before, canBeAutoCorrected=true),
    DiktatError(line=10, col=14, ruleId=diktat-ruleset:block-structure, detail=[BRACES_BLOCK_STRUCTURE_ERROR] braces should follow 1TBS style: no newline before closing brace, canBeAutoCorrected=true),
    DiktatError(line=12, col=5, ruleId=diktat-ruleset:kdoc-comments, detail=[MISSING_KDOC_CLASS_ELEMENTS] all public, internal and protected classes, functions and variables inside the class should have Kdoc: countSubStringOccurrences, canBeAutoCorrected=false),
    DiktatError(line=12, col=5, ruleId=diktat-ruleset:kdoc-methods, detail=[MISSING_KDOC_ON_FUNCTION] all public, internal and protected functions should have Kdoc with proper tags: countSubStringOccurrences, canBeAutoCorrected=true),
    DiktatError(line=17, col=5, ruleId=diktat-ruleset:kdoc-comments, detail=[MISSING_KDOC_CLASS_ELEMENTS] all public, internal and protected classes, functions and variables inside the class should have Kdoc: splitPathToDirs, canBeAutoCorrected=false),
    DiktatError(line=17, col=5, ruleId=diktat-ruleset:kdoc-methods, detail=[MISSING_KDOC_ON_FUNCTION] all public, internal and protected functions should have Kdoc with proper tags: splitPathToDirs, canBeAutoCorrected=true),
    DiktatError(line=18, col=36, ruleId=diktat-ruleset:too-many-spaces, detail=[TOO_MANY_CONSECUTIVE_SPACES] too many consecutive spaces: found: 8. need to be: 1, canBeAutoCorrected=true),
    DiktatError(line=18, col=44, ruleId=diktat-ruleset:horizontal-whitespace, detail=[WRONG_WHITESPACE] incorrect usage of whitespaces for code separation: . should have 0 space(s) before and 0 space(s) after, but has 8 space(s) before, canBeAutoCorrected=true),
    DiktatError(line=19, col=1, ruleId=diktat-ruleset:indentation, detail=[WRONG_INDENTATION] only spaces are allowed for indentation and each indentation should equal to 4 spaces (tabs are not allowed): expected 16 but was 20, canBeAutoCorrected=true),
    DiktatError(line=19, col=32, ruleId=diktat-ruleset:blank-lines, detail=[TOO_MANY_BLANK_LINES] too many consecutive blank lines: do not use more than two consecutive blank lines, canBeAutoCorrected=true),
    DiktatError(line=22, col=5, ruleId=diktat-ruleset:kdoc-comments, detail=[MISSING_KDOC_CLASS_ELEMENTS] all public, internal and protected classes, functions and variables inside the class should have Kdoc: foo, canBeAutoCorrected=false),
    DiktatError(line=22, col=5, ruleId=diktat-ruleset:kdoc-methods, detail=[MISSING_KDOC_ON_FUNCTION] all public, internal and protected functions should have Kdoc with proper tags: foo, canBeAutoCorrected=true),
    DiktatError(line=22, col=15, ruleId=diktat-ruleset:horizontal-whitespace, detail=[WRONG_WHITESPACE] incorrect usage of whitespaces for code separation: : should have 0 space(s) before and 1 space(s) after, but has 1 space(s) before and 2 space(s) after, canBeAutoCorrected=true),
    DiktatError(line=22, col=16, ruleId=diktat-ruleset:too-many-spaces, detail=[TOO_MANY_CONSECUTIVE_SPACES] too many consecutive spaces: found: 2. need to be: 1, canBeAutoCorrected=true),
    DiktatError(line=23, col=13, ruleId=diktat-ruleset:newlines, detail=[WRONG_NEWLINES] incorrect line breaking: newline should be placed only after comma, canBeAutoCorrected=true),
    DiktatError(line=24, col=1, ruleId=diktat-ruleset:indentation, detail=[WRONG_INDENTATION] only spaces are allowed for indentation and each indentation should equal to 4 spaces (tabs are not allowed): expected 12 but was 13, canBeAutoCorrected=true),
    DiktatError(line=24, col=21, ruleId=diktat-ruleset:horizontal-whitespace, detail=[WRONG_WHITESPACE] incorrect usage of whitespaces for code separation: ) should have 0 space(s) before, but has 1 space(s) before, canBeAutoCorrected=true),
    DiktatError(line=25, col=9, ruleId=diktat-ruleset:newlines, detail=[WRONG_NEWLINES] incorrect line breaking: functions with single return statement should be simplified to expression body, canBeAutoCorrected=true),
    DiktatError(line=26, col=1, ruleId=diktat-ruleset:indentation, detail=[WRONG_INDENTATION] only spaces are allowed for indentation and each indentation should equal to 4 spaces (tabs are not allowed): expected 16 but was 4, canBeAutoCorrected=true),
    DiktatError(line=27, col=1, ruleId=diktat-ruleset:indentation, detail=[WRONG_INDENTATION] only spaces are allowed for indentation and each indentation should equal to 4 spaces (tabs are not allowed): expected 12 but was 5, canBeAutoCorrected=true),
    DiktatError(line=27, col=11, ruleId=diktat-ruleset:horizontal-whitespace, detail=[WRONG_WHITESPACE] incorrect usage of whitespaces for code separation: , should have 0 space(s) before and 1 space(s) after, but has 0 space(s) after, canBeAutoCorrected=true),
    DiktatError(line=28, col=1, ruleId=diktat-ruleset:indentation, detail=[WRONG_INDENTATION] only spaces are allowed for indentation and each indentation should equal to 4 spaces (tabs are not allowed): expected 16 but was 2, canBeAutoCorrected=true),
    DiktatError(line=32, col=1, ruleId=diktat-ruleset:indentation, detail=[WRONG_INDENTATION] only spaces are allowed for indentation and each indentation should equal to 4 spaces (tabs are not allowed): too many blank lines at the end of file Example1Test.kt, canBeAutoCorrected=true)]
to contain exactly in any order:
  [DiktatError(line=1, col=1, ruleId=diktat-ruleset:file-naming, detail=[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: Example1Test.kt vs Example, canBeAutoCorrected=true),
    DiktatError(line=1, col=1, ruleId=diktat-ruleset:kdoc-formatting, detail=[KDOC_NO_EMPTY_TAGS] no empty descriptions in tag blocks are allowed: @return, canBeAutoCorrected=false),
    DiktatError(line=3, col=13, ruleId=diktat-ruleset:kdoc-comments, detail=[MISSING_KDOC_TOP_LEVEL] all public and internal top-level classes and functions should have Kdoc: Example, canBeAutoCorrected=false),
    DiktatError(line=3, col=33, ruleId=diktat-ruleset:kdoc-comments, detail=[MISSING_KDOC_CLASS_ELEMENTS] all public, internal and protected classes, functions and variables inside the class should have Kdoc: isValid, canBeAutoCorrected=false),
    DiktatError(line=6, col=16, ruleId=diktat-ruleset:kdoc-comments, detail=[MISSING_KDOC_CLASS_ELEMENTS] all public, internal and protected classes, functions and variables inside the class should have Kdoc: foo, canBeAutoCorrected=false),
    DiktatError(line=8, col=15, ruleId=diktat-ruleset:kdoc-comments, detail=[MISSING_KDOC_CLASS_ELEMENTS] all public, internal and protected classes, functions and variables inside the class should have Kdoc: foo, canBeAutoCorrected=false),
    DiktatError(line=8, col=15, ruleId=diktat-ruleset:kdoc-methods, detail=[MISSING_KDOC_ON_FUNCTION] all public, internal and protected functions should have Kdoc with proper tags: foo, canBeAutoCorrected=false),
    DiktatError(line=6, col=5, ruleId=diktat-ruleset:kdoc-methods, detail=[MISSING_KDOC_ON_FUNCTION] all public, internal and protected functions should have Kdoc with proper tags: foo, canBeAutoCorrected=false),
    DiktatError(line=9, col=10, ruleId=diktat-ruleset:empty-block-structure, detail=[EMPTY_BLOCK_STRUCTURE_ERROR] incorrect format of empty block: empty blocks are forbidden unless it is function with override keyword, canBeAutoCorrected=false),
    DiktatError(line=12, col=17, ruleId=diktat-ruleset:kdoc-formatting, detail=[KDOC_NO_EMPTY_TAGS] no empty descriptions in tag blocks are allowed: @return, canBeAutoCorrected=false),
    DiktatError(line=14, col=15, ruleId=diktat-ruleset:kdoc-formatting, detail=[KDOC_NO_EMPTY_TAGS] no empty descriptions in tag blocks are allowed: @return, canBeAutoCorrected=false),
    DiktatError(line=19, col=27, ruleId=diktat-ruleset:kdoc-formatting, detail=[KDOC_NO_EMPTY_TAGS] no empty descriptions in tag blocks are allowed: @return, canBeAutoCorrected=false)]
elements not found:
  [DiktatError(line=1, col=1, ruleId=diktat-ruleset:file-naming, detail=[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: Example1Test.kt vs Example, canBeAutoCorrected=true),
    DiktatError(line=1, col=1, ruleId=diktat-ruleset:kdoc-formatting, detail=[KDOC_NO_EMPTY_TAGS] no empty descriptions in tag blocks are allowed: @return, canBeAutoCorrected=false),
    DiktatError(line=3, col=13, ruleId=diktat-ruleset:kdoc-comments, detail=[MISSING_KDOC_TOP_LEVEL] all public and internal top-level classes and functions should have Kdoc: Example, canBeAutoCorrected=false),
    DiktatError(line=3, col=33, ruleId=diktat-ruleset:kdoc-comments, detail=[MISSING_KDOC_CLASS_ELEMENTS] all public, internal and protected classes, functions and variables inside the class should have Kdoc: isValid, canBeAutoCorrected=false),
    DiktatError(line=6, col=16, ruleId=diktat-ruleset:kdoc-comments, detail=[MISSING_KDOC_CLASS_ELEMENTS] all public, internal and protected classes, functions and variables inside the class should have Kdoc: foo, canBeAutoCorrected=false),
    DiktatError(line=8, col=15, ruleId=diktat-ruleset:kdoc-comments, detail=[MISSING_KDOC_CLASS_ELEMENTS] all public, internal and protected classes, functions and variables inside the class should have Kdoc: foo, canBeAutoCorrected=false),
    DiktatError(line=8, col=15, ruleId=diktat-ruleset:kdoc-methods, detail=[MISSING_KDOC_ON_FUNCTION] all public, internal and protected functions should have Kdoc with proper tags: foo, canBeAutoCorrected=false),
    DiktatError(line=9, col=10, ruleId=diktat-ruleset:empty-block-structure, detail=[EMPTY_BLOCK_STRUCTURE_ERROR] incorrect format of empty block: empty blocks are forbidden unless it is function with override keyword, canBeAutoCorrected=false),
    DiktatError(line=12, col=17, ruleId=diktat-ruleset:kdoc-formatting, detail=[KDOC_NO_EMPTY_TAGS] no empty descriptions in tag blocks are allowed: @return, canBeAutoCorrected=false),
    DiktatError(line=14, col=15, ruleId=diktat-ruleset:kdoc-formatting, detail=[KDOC_NO_EMPTY_TAGS] no empty descriptions in tag blocks are allowed: @return, canBeAutoCorrected=false),
    DiktatError(line=19, col=27, ruleId=diktat-ruleset:kdoc-formatting, detail=[KDOC_NO_EMPTY_TAGS] no empty descriptions in tag blocks are allowed: @return, canBeAutoCorrected=false)]
and elements not expected:
  [DiktatError(line=1, col=1, ruleId=diktat-ruleset:file-naming, detail=[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: Example1Test.kt vs example, canBeAutoCorrected=false),
    DiktatError(line=1, col=9, ruleId=diktat-ruleset:package-naming, detail=[PACKAGE_NAME_INCORRECT_PREFIX] package name should start from company's domain: com.saveourtool.diktat, canBeAutoCorrected=true),
    DiktatError(line=1, col=9, ruleId=diktat-ruleset:package-naming, detail=[PACKAGE_NAME_INCORRECT_PATH] package name does not match the directory hierarchy for this file, the real package name should be: com.saveourtool.diktat, canBeAutoCorrected=true),
    DiktatError(line=3, col=1, ruleId=diktat-ruleset:kdoc-comments, detail=[MISSING_KDOC_TOP_LEVEL] all public and internal top-level classes and functions should have Kdoc: example, canBeAutoCorrected=false),
    DiktatError(line=3, col=7, ruleId=diktat-ruleset:identifier-naming, detail=[CLASS_NAME_INCORRECT] class/enum/interface name should be in PascalCase and should contain only latin (ASCII) letters or numbers: example, canBeAutoCorrected=true),
    DiktatError(line=3, col=14, ruleId=diktat-ruleset:horizontal-whitespace, detail=[WRONG_WHITESPACE] incorrect usage of whitespaces for code separation: there should be a whitespace before '{', canBeAutoCorrected=true),
    DiktatError(line=3, col=15, ruleId=diktat-ruleset:block-structure, detail=[BRACES_BLOCK_STRUCTURE_ERROR] braces should follow 1TBS style: incorrect same line after opening brace, canBeAutoCorrected=true),
    DiktatError(line=3, col=16, ruleId=diktat-ruleset:kdoc-comments, detail=[MISSING_KDOC_CLASS_ELEMENTS] all public, internal and protected classes, functions and variables inside the class should have Kdoc: isValid, canBeAutoCorrected=false),
    DiktatError(line=3, col=21, ruleId=diktat-ruleset:horizontal-whitespace, detail=[WRONG_WHITESPACE] incorrect usage of whitespaces for code separation: : should have 0 space(s) before and 0 space(s) after, but has 1 space(s) before and 1 space(s) after, canBeAutoCorrected=true),
    DiktatError(line=3, col=31, ruleId=diktat-ruleset:horizontal-whitespace, detail=[WRONG_WHITESPACE] incorrect usage of whitespaces for code separation: ( "getIsValid" ) should have 0 space(s) before, but has 1 space(s) before, canBeAutoCorrected=true),
    DiktatError(line=3, col=31, ruleId=diktat-ruleset:horizontal-whitespace, detail=[WRONG_WHITESPACE] incorrect usage of whitespaces for code separation: ( should have 0 space(s) after, but has 1 space(s) after, canBeAutoCorrected=true),
    DiktatError(line=3, col=46, ruleId=diktat-ruleset:horizontal-whitespace, detail=[WRONG_WHITESPACE] incorrect usage of whitespaces for code separation: ) should have 0 space(s) before, but has 1 space(s) before, canBeAutoCorrected=true),
    DiktatError(line=6, col=5, ruleId=diktat-ruleset:kdoc-comments, detail=[MISSING_KDOC_CLASS_ELEMENTS] all public, internal and protected classes, functions and variables inside the class should have Kdoc: foo, canBeAutoCorrected=false),
    DiktatError(line=6, col=5, ruleId=diktat-ruleset:class-like-structures, detail=[WRONG_ORDER_IN_CLASS_LIKE_STRUCTURES] the declaration part of a class-like code structures (class/interface/etc.) should be in the proper order: FUN: foo, canBeAutoCorrected=true),
    DiktatError(line=6, col=19, ruleId=diktat-ruleset:empty-block-structure, detail=[EMPTY_BLOCK_STRUCTURE_ERROR] incorrect format of empty block: empty blocks are forbidden unless it is function with override keyword, canBeAutoCorrected=false),
    DiktatError(line=8, col=5, ruleId=diktat-ruleset:kdoc-comments, detail=[MISSING_KDOC_CLASS_ELEMENTS] all public, internal and protected classes, functions and variables inside the class should have Kdoc: foo, canBeAutoCorrected=false),
    DiktatError(line=8, col=5, ruleId=diktat-ruleset:class-like-structures, detail=[WRONG_ORDER_IN_CLASS_LIKE_STRUCTURES] the declaration part of a class-like code structures (class/interface/etc.) should be in the proper order: PROPERTY: foo, canBeAutoCorrected=true),
    DiktatError(line=8, col=5, ruleId=diktat-ruleset:class-like-structures, detail=[BLANK_LINE_BETWEEN_PROPERTIES] there should be no blank lines between properties without comments; comment, KDoc or annotation on property should have blank line before: foo, canBeAutoCorrected=true),
    DiktatError(line=8, col=12, ruleId=diktat-ruleset:horizontal-whitespace, detail=[WRONG_WHITESPACE] incorrect usage of whitespaces for code separation: : should have 0 space(s) before and 1 space(s) after, but has 0 space(s) after, canBeAutoCorrected=true),
    DiktatError(line=8, col=17, ruleId=diktat-ruleset:horizontal-whitespace, detail=[WRONG_WHITESPACE] incorrect usage of whitespaces for code separation: = should have 1 space(s) before and 1 space(s) after, but has 0 space(s) after, canBeAutoCorrected=true),
    DiktatError(line=9, col=1, ruleId=diktat-ruleset:kdoc-comments, detail=[MISSING_KDOC_CLASS_ELEMENTS] all public, internal and protected classes, functions and variables inside the class should have Kdoc: bar, canBeAutoCorrected=false),
    DiktatError(line=9, col=1, ruleId=diktat-ruleset:kdoc-methods, detail=[MISSING_KDOC_ON_FUNCTION] all public, internal and protected functions should have Kdoc with proper tags: bar, canBeAutoCorrected=true),
    DiktatError(line=9, col=1, ruleId=diktat-ruleset:indentation, detail=[WRONG_INDENTATION] only spaces are allowed for indentation and each indentation should equal to 4 spaces (tabs are not allowed): expected 4 but was 0, canBeAutoCorrected=true),
    DiktatError(line=9, col=11, ruleId=diktat-ruleset:horizontal-whitespace, detail=[WRONG_WHITESPACE] incorrect usage of whitespaces for code separation: : should have 0 space(s) before and 1 space(s) after, but has 1 space(s) before and 0 space(s) after, canBeAutoCorrected=true),
    DiktatError(line=9, col=15, ruleId=diktat-ruleset:horizontal-whitespace, detail=[WRONG_WHITESPACE] incorrect usage of whitespaces for code separation: , should have 0 space(s) before and 1 space(s) after, but has 0 space(s) after, canBeAutoCorrected=true),
    DiktatError(line=9, col=17, ruleId=diktat-ruleset:horizontal-whitespace, detail=[WRONG_WHITESPACE] incorrect usage of whitespaces for code separation: : should have 0 space(s) before and 1 space(s) after, but has 0 space(s) after, canBeAutoCorrected=true),
    DiktatError(line=9, col=23, ruleId=diktat-ruleset:horizontal-whitespace, detail=[WRONG_WHITESPACE] incorrect usage of whitespaces for code separation: : should have 0 space(s) before and 1 space(s) after, but has 1 space(s) before and 0 space(s) after, canBeAutoCorrected=true),
    DiktatError(line=10, col=1, ruleId=diktat-ruleset:newlines, detail=[WRONG_NEWLINES] incorrect line breaking: functions with single return statement should be simplified to expression body, canBeAutoCorrected=true),
    DiktatError(line=10, col=1, ruleId=diktat-ruleset:indentation, detail=[WRONG_INDENTATION] only spaces are allowed for indentation and each indentation should equal to 4 spaces (tabs are not allowed): expected 8 but was 0, canBeAutoCorrected=true),
    DiktatError(line=10, col=7, ruleId=diktat-ruleset:too-many-spaces, detail=[TOO_MANY_CONSECUTIVE_SPACES] too many consecutive spaces: found: 3. need to be: 1, canBeAutoCorrected=true),
    DiktatError(line=10, col=11, ruleId=diktat-ruleset:horizontal-whitespace, detail=[WRONG_WHITESPACE] incorrect usage of whitespaces for code separation: + should have 1 space(s) before and 1 space(s) after, but has 0 space(s) before, canBeAutoCorrected=true),
    DiktatError(line=10, col=14, ruleId=diktat-ruleset:block-structure, detail=[BRACES_BLOCK_STRUCTURE_ERROR] braces should follow 1TBS style: no newline before closing brace, canBeAutoCorrected=true),
    DiktatError(line=12, col=5, ruleId=diktat-ruleset:kdoc-comments, detail=[MISSING_KDOC_CLASS_ELEMENTS] all public, internal and protected classes, functions and variables inside the class should have Kdoc: countSubStringOccurrences, canBeAutoCorrected=false),
    DiktatError(line=12, col=5, ruleId=diktat-ruleset:kdoc-methods, detail=[MISSING_KDOC_ON_FUNCTION] all public, internal and protected functions should have Kdoc with proper tags: countSubStringOccurrences, canBeAutoCorrected=true),
    DiktatError(line=17, col=5, ruleId=diktat-ruleset:kdoc-comments, detail=[MISSING_KDOC_CLASS_ELEMENTS] all public, internal and protected classes, functions and variables inside the class should have Kdoc: splitPathToDirs, canBeAutoCorrected=false),
    DiktatError(line=17, col=5, ruleId=diktat-ruleset:kdoc-methods, detail=[MISSING_KDOC_ON_FUNCTION] all public, internal and protected functions should have Kdoc with proper tags: splitPathToDirs, canBeAutoCorrected=true),
    DiktatError(line=18, col=36, ruleId=diktat-ruleset:too-many-spaces, detail=[TOO_MANY_CONSECUTIVE_SPACES] too many consecutive spaces: found: 8. need to be: 1, canBeAutoCorrected=true),
    DiktatError(line=18, col=44, ruleId=diktat-ruleset:horizontal-whitespace, detail=[WRONG_WHITESPACE] incorrect usage of whitespaces for code separation: . should have 0 space(s) before and 0 space(s) after, but has 8 space(s) before, canBeAutoCorrected=true),
    DiktatError(line=19, col=1, ruleId=diktat-ruleset:indentation, detail=[WRONG_INDENTATION] only spaces are allowed for indentation and each indentation should equal to 4 spaces (tabs are not allowed): expected 16 but was 20, canBeAutoCorrected=true),
    DiktatError(line=19, col=32, ruleId=diktat-ruleset:blank-lines, detail=[TOO_MANY_BLANK_LINES] too many consecutive blank lines: do not use more than two consecutive blank lines, canBeAutoCorrected=true),
    DiktatError(line=22, col=5, ruleId=diktat-ruleset:kdoc-comments, detail=[MISSING_KDOC_CLASS_ELEMENTS] all public, internal and protected classes, functions and variables inside the class should have Kdoc: foo, canBeAutoCorrected=false),
    DiktatError(line=22, col=5, ruleId=diktat-ruleset:kdoc-methods, detail=[MISSING_KDOC_ON_FUNCTION] all public, internal and protected functions should have Kdoc with proper tags: foo, canBeAutoCorrected=true),
    DiktatError(line=22, col=15, ruleId=diktat-ruleset:horizontal-whitespace, detail=[WRONG_WHITESPACE] incorrect usage of whitespaces for code separation: : should have 0 space(s) before and 1 space(s) after, but has 1 space(s) before and 2 space(s) after, canBeAutoCorrected=true),
    DiktatError(line=22, col=16, ruleId=diktat-ruleset:too-many-spaces, detail=[TOO_MANY_CONSECUTIVE_SPACES] too many consecutive spaces: found: 2. need to be: 1, canBeAutoCorrected=true),
    DiktatError(line=23, col=13, ruleId=diktat-ruleset:newlines, detail=[WRONG_NEWLINES] incorrect line breaking: newline should be placed only after comma, canBeAutoCorrected=true),
    DiktatError(line=24, col=1, ruleId=diktat-ruleset:indentation, detail=[WRONG_INDENTATION] only spaces are allowed for indentation and each indentation should equal to 4 spaces (tabs are not allowed): expected 12 but was 13, canBeAutoCorrected=true),
    DiktatError(line=24, col=21, ruleId=diktat-ruleset:horizontal-whitespace, detail=[WRONG_WHITESPACE] incorrect usage of whitespaces for code separation: ) should have 0 space(s) before, but has 1 space(s) before, canBeAutoCorrected=true),
    DiktatError(line=25, col=9, ruleId=diktat-ruleset:newlines, detail=[WRONG_NEWLINES] incorrect line breaking: functions with single return statement should be simplified to expression body, canBeAutoCorrected=true),
    DiktatError(line=26, col=1, ruleId=diktat-ruleset:indentation, detail=[WRONG_INDENTATION] only spaces are allowed for indentation and each indentation should equal to 4 spaces (tabs are not allowed): expected 16 but was 4, canBeAutoCorrected=true),
    DiktatError(line=27, col=1, ruleId=diktat-ruleset:indentation, detail=[WRONG_INDENTATION] only spaces are allowed for indentation and each indentation should equal to 4 spaces (tabs are not allowed): expected 12 but was 5, canBeAutoCorrected=true),
    DiktatError(line=27, col=11, ruleId=diktat-ruleset:horizontal-whitespace, detail=[WRONG_WHITESPACE] incorrect usage of whitespaces for code separation: , should have 0 space(s) before and 1 space(s) after, but has 0 space(s) after, canBeAutoCorrected=true),
    DiktatError(line=28, col=1, ruleId=diktat-ruleset:indentation, detail=[WRONG_INDENTATION] only spaces are allowed for indentation and each indentation should equal to 4 spaces (tabs are not allowed): expected 16 but was 2, canBeAutoCorrected=true),
    DiktatError(line=32, col=1, ruleId=diktat-ruleset:indentation, detail=[WRONG_INDENTATION] only spaces are allowed for indentation and each indentation should equal to 4 spaces (tabs are not allowed): too many blank lines at the end of file Example1Test.kt, canBeAutoCorrected=true)]

	at com.saveourtool.diktat.ruleset.smoke.DiktatSmokeTestBase$smoke test #1$1.invoke(DiktatSmokeTestBase.kt:246)
	at com.saveourtool.diktat.ruleset.smoke.DiktatSmokeTestBase$smoke test #1$1.invoke(DiktatSmokeTestBase.kt:245)
	at com.saveourtool.diktat.ruleset.smoke.DiktatSmokeTest.assertUnfixedLintErrors(DiktatSmokeTest.kt:51)
	at com.saveourtool.diktat.ruleset.smoke.DiktatSmokeTestBase.smoke test #1(DiktatSmokeTestBase.kt:245)
	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 failure on line 220 in diktat-ruleset/src/test/kotlin/com/saveourtool/diktat/ruleset/smoke/DiktatSmokeTestBase.kt

See this annotation in the file changed.

@github-actions github-actions / JUnit Tests (Windows, dorny/test-reporter@v1)

com.saveourtool.diktat.ruleset.smoke.DiktatSmokeTest ► smoke test #2()

Failed test found in:
  diktat-ruleset/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.smoke.DiktatSmokeTest.xml
Error:
  java.lang.AssertionError: 
Raw output
java.lang.AssertionError: 
Expecting actual:
  [DiktatError(line=1, col=1, ruleId=diktat-ruleset:header-comment, detail=[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 2 declared classes and/or objects, canBeAutoCorrected=false),
    DiktatError(line=1, col=1, ruleId=diktat-ruleset:file-structure, detail=[UNUSED_IMPORT] unused imports should be removed: kotlin.system.exitProcess - unused import, canBeAutoCorrected=true),
    DiktatError(line=1, col=9, ruleId=diktat-ruleset:package-naming, detail=[PACKAGE_NAME_INCORRECT_PREFIX] package name should start from company's domain: com.saveourtool.diktat, canBeAutoCorrected=true),
    DiktatError(line=1, col=9, ruleId=diktat-ruleset:package-naming, detail=[PACKAGE_NAME_INCORRECT_PATH] package name does not match the directory hierarchy for this file, the real package name should be: com.saveourtool.diktat, canBeAutoCorrected=true),
    DiktatError(line=3, col=1, ruleId=diktat-ruleset:file-structure, detail=[FILE_UNORDERED_IMPORTS] imports should be ordered alphabetically and shouldn't be separated by newlines: import org.slf4j.LoggerFactory..., canBeAutoCorrected=true),
    DiktatError(line=8, col=1, ruleId=diktat-ruleset:kdoc-comments, detail=[MISSING_KDOC_TOP_LEVEL] all public and internal top-level classes and functions should have Kdoc: Example, canBeAutoCorrected=false),
    DiktatError(line=8, col=1, ruleId=diktat-ruleset:multiple-modifiers, detail=[WRONG_MULTIPLE_MODIFIERS_ORDER] sequence of modifier-keywords is incorrect: data should be on position 2, but is on position 1, canBeAutoCorrected=true),
    DiktatError(line=8, col=6, ruleId=diktat-ruleset:multiple-modifiers, detail=[WRONG_MULTIPLE_MODIFIERS_ORDER] sequence of modifier-keywords is incorrect: @ExperimentalStdlibApi annotation should be before all modifiers, canBeAutoCorrected=true),
    DiktatError(line=8, col=29, ruleId=diktat-ruleset:multiple-modifiers, detail=[WRONG_MULTIPLE_MODIFIERS_ORDER] sequence of modifier-keywords is incorrect: public should be on position 1, but is on position 2, canBeAutoCorrected=true),
    DiktatError(line=8, col=50, ruleId=diktat-ruleset:kdoc-comments, detail=[KDOC_NO_CONSTRUCTOR_PROPERTY] all properties from the primary constructor should be documented in a @property tag in KDoc: add property <foo> to KDoc, canBeAutoCorrected=true),
    DiktatError(line=8, col=57, ruleId=diktat-ruleset:horizontal-whitespace, detail=[WRONG_WHITESPACE] incorrect usage of whitespaces for code separation: : should have 0 space(s) before and 1 space(s) after, but has 0 space(s) after, canBeAutoCorrected=true),
    DiktatError(line=8, col=63, ruleId=diktat-ruleset:kdoc-comments, detail=[KDOC_NO_CONSTRUCTOR_PROPERTY] all properties from the primary constructor should be documented in a @property tag in KDoc: add property <bar> to KDoc, canBeAutoCorrected=true),
    DiktatError(line=8, col=70, ruleId=diktat-ruleset:horizontal-whitespace, detail=[WRONG_WHITESPACE] incorrect usage of whitespaces for code separation: : should have 0 space(s) before and 1 space(s) after, but has 0 space(s) after, canBeAutoCorrected=true),
    DiktatError(line=8, col=78, ruleId=diktat-ruleset:horizontal-whitespace, detail=[WRONG_WHITESPACE] incorrect usage of whitespaces for code separation: : should have 1 space(s) before and 1 space(s) after, but has 0 space(s) before and 0 space(s) after, canBeAutoCorrected=true),
    DiktatError(line=10, col=15, ruleId=diktat-ruleset:identifier-naming, detail=[EXCEPTION_SUFFIX] all exception classes should have "Exception" suffix: Test, canBeAutoCorrected=true),
    DiktatError(line=11, col=1, ruleId=diktat-ruleset:kdoc-comments-codeblocks-formatting, detail=[COMMENT_WHITE_SPACE] there should be a white space between code and comment also between code start token and comment text: There should be 1 space(s) before comment token in /*    this class is unused */, canBeAutoCorrected=true),
    DiktatError(line=12, col=1, ruleId=diktat-ruleset:kdoc-comments-codeblocks-formatting, detail=[COMMENT_WHITE_SPACE] there should be a white space between code and comment also between code start token and comment text: There should be 1 space(s) before comment token in //private class Test : RuntimeException(), canBeAutoCorrected=true),
    DiktatError(line=14, col=1, ruleId=diktat-ruleset:kdoc-methods, detail=[KDOC_WITHOUT_PARAM_TAG] all methods which take arguments should have @param tags in KDoc: createWithFile (containerName), canBeAutoCorrected=true),
    DiktatError(line=17, col=4, ruleId=diktat-ruleset:kdoc-formatting, detail=[KDOC_WRONG_TAGS_ORDER] in KDoc standard tags are arranged in this order: @receiver, @param, @property, @return, @throws or @exception, @constructor, but are: @param, @param, @param, @throws, @throws, @throws, @return, canBeAutoCorrected=true),
    DiktatError(line=25, col=28, ruleId=diktat-ruleset:newlines, detail=[WRONG_NEWLINES] incorrect line breaking: value parameters should be placed on different lines in declaration of <createWithFile>, canBeAutoCorrected=true),
    DiktatError(line=28, col=71, ruleId=diktat-ruleset:empty-block-structure, detail=[EMPTY_BLOCK_STRUCTURE_ERROR] incorrect format of empty block: empty blocks are forbidden unless it is function with override keyword, canBeAutoCorrected=false),
    DiktatError(line=30, col=17, ruleId=diktat-ruleset:newlines, detail=[WRONG_NEWLINES] incorrect line breaking: opening parentheses should not be separated from constructor or function name, canBeAutoCorrected=true),
    DiktatError(line=30, col=17, ruleId=diktat-ruleset:horizontal-whitespace, detail=[WRONG_WHITESPACE] incorrect usage of whitespaces for code separation: ( should have 0 space(s) before and 0 space(s) after, but has 1 space(s) before, canBeAutoCorrected=true),
    DiktatError(line=35, col=13, ruleId=diktat-ruleset:newlines, detail=[WRONG_NEWLINES] incorrect line breaking: should break a line after and not before &&, canBeAutoCorrected=true),
    DiktatError(line=39, col=5, ruleId=diktat-ruleset:races-rule, detail=[NO_BRACES_IN_CONDITIONALS_AND_LOOPS] in if, else, when, for, do, and while statements braces should be used. Exception: single line ternary operator statement: IF, canBeAutoCorrected=true),
    DiktatError(line=39, col=12, ruleId=diktat-ruleset:kdoc-comments-codeblocks-formatting, detail=[COMMENT_WHITE_SPACE] there should be a white space between code and comment also between code start token and comment text: There should be 2 space(s) before comment text, but there are too few in // comment, canBeAutoCorrected=true)]
to contain exactly in any order:
  [DiktatError(line=1, col=1, ruleId=diktat-ruleset:header-comment, detail=[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 2 declared classes and/or objects, canBeAutoCorrected=false),
    DiktatError(line=15, col=30, ruleId=diktat-ruleset:kdoc-methods, detail=[KDOC_WITHOUT_PARAM_TAG] all methods which take arguments should have @param tags in KDoc: createWithFile (containerName), canBeAutoCorrected=true),
    DiktatError(line=31, col=21, ruleId=diktat-ruleset:empty-block-structure, detail=[EMPTY_BLOCK_STRUCTURE_ERROR] incorrect format of empty block: empty blocks are forbidden unless it is function with override keyword, canBeAutoCorrected=false)]
elements not found:
  [DiktatError(line=15, col=30, ruleId=diktat-ruleset:kdoc-methods, detail=[KDOC_WITHOUT_PARAM_TAG] all methods which take arguments should have @param tags in KDoc: createWithFile (containerName), canBeAutoCorrected=true),
    DiktatError(line=31, col=21, ruleId=diktat-ruleset:empty-block-structure, detail=[EMPTY_BLOCK_STRUCTURE_ERROR] incorrect format of empty block: empty blocks are forbidden unless it is function with override keyword, canBeAutoCorrected=false)]
and elements not expected:
  [DiktatError(line=1, col=1, ruleId=diktat-ruleset:file-structure, detail=[UNUSED_IMPORT] unused imports should be removed: kotlin.system.exitProcess - unused import, canBeAutoCorrected=true),
    DiktatError(line=1, col=9, ruleId=diktat-ruleset:package-naming, detail=[PACKAGE_NAME_INCORRECT_PREFIX] package name should start from company's domain: com.saveourtool.diktat, canBeAutoCorrected=true),
    DiktatError(line=1, col=9, ruleId=diktat-ruleset:package-naming, detail=[PACKAGE_NAME_INCORRECT_PATH] package name does not match the directory hierarchy for this file, the real package name should be: com.saveourtool.diktat, canBeAutoCorrected=true),
    DiktatError(line=3, col=1, ruleId=diktat-ruleset:file-structure, detail=[FILE_UNORDERED_IMPORTS] imports should be ordered alphabetically and shouldn't be separated by newlines: import org.slf4j.LoggerFactory..., canBeAutoCorrected=true),
    DiktatError(line=8, col=1, ruleId=diktat-ruleset:kdoc-comments, detail=[MISSING_KDOC_TOP_LEVEL] all public and internal top-level classes and functions should have Kdoc: Example, canBeAutoCorrected=false),
    DiktatError(line=8, col=1, ruleId=diktat-ruleset:multiple-modifiers, detail=[WRONG_MULTIPLE_MODIFIERS_ORDER] sequence of modifier-keywords is incorrect: data should be on position 2, but is on position 1, canBeAutoCorrected=true),
    DiktatError(line=8, col=6, ruleId=diktat-ruleset:multiple-modifiers, detail=[WRONG_MULTIPLE_MODIFIERS_ORDER] sequence of modifier-keywords is incorrect: @ExperimentalStdlibApi annotation should be before all modifiers, canBeAutoCorrected=true),
    DiktatError(line=8, col=29, ruleId=diktat-ruleset:multiple-modifiers, detail=[WRONG_MULTIPLE_MODIFIERS_ORDER] sequence of modifier-keywords is incorrect: public should be on position 1, but is on position 2, canBeAutoCorrected=true),
    DiktatError(line=8, col=50, ruleId=diktat-ruleset:kdoc-comments, detail=[KDOC_NO_CONSTRUCTOR_PROPERTY] all properties from the primary constructor should be documented in a @property tag in KDoc: add property <foo> to KDoc, canBeAutoCorrected=true),
    DiktatError(line=8, col=57, ruleId=diktat-ruleset:horizontal-whitespace, detail=[WRONG_WHITESPACE] incorrect usage of whitespaces for code separation: : should have 0 space(s) before and 1 space(s) after, but has 0 space(s) after, canBeAutoCorrected=true),
    DiktatError(line=8, col=63, ruleId=diktat-ruleset:kdoc-comments, detail=[KDOC_NO_CONSTRUCTOR_PROPERTY] all properties from the primary constructor should be documented in a @property tag in KDoc: add property <bar> to KDoc, canBeAutoCorrected=true),
    DiktatError(line=8, col=70, ruleId=diktat-ruleset:horizontal-whitespace, detail=[WRONG_WHITESPACE] incorrect usage of whitespaces for code separation: : should have 0 space(s) before and 1 space(s) after, but has 0 space(s) after, canBeAutoCorrected=true),
    DiktatError(line=8, col=78, ruleId=diktat-ruleset:horizontal-whitespace, detail=[WRONG_WHITESPACE] incorrect usage of whitespaces for code separation: : should have 1 space(s) before and 1 space(s) after, but has 0 space(s) before and 0 space(s) after, canBeAutoCorrected=true),
    DiktatError(line=10, col=15, ruleId=diktat-ruleset:identifier-naming, detail=[EXCEPTION_SUFFIX] all exception classes should have "Exception" suffix: Test, canBeAutoCorrected=true),
    DiktatError(line=11, col=1, ruleId=diktat-ruleset:kdoc-comments-codeblocks-formatting, detail=[COMMENT_WHITE_SPACE] there should be a white space between code and comment also between code start token and comment text: There should be 1 space(s) before comment token in /*    this class is unused */, canBeAutoCorrected=true),
    DiktatError(line=12, col=1, ruleId=diktat-ruleset:kdoc-comments-codeblocks-formatting, detail=[COMMENT_WHITE_SPACE] there should be a white space between code and comment also between code start token and comment text: There should be 1 space(s) before comment token in //private class Test : RuntimeException(), canBeAutoCorrected=true),
    DiktatError(line=14, col=1, ruleId=diktat-ruleset:kdoc-methods, detail=[KDOC_WITHOUT_PARAM_TAG] all methods which take arguments should have @param tags in KDoc: createWithFile (containerName), canBeAutoCorrected=true),
    DiktatError(line=17, col=4, ruleId=diktat-ruleset:kdoc-formatting, detail=[KDOC_WRONG_TAGS_ORDER] in KDoc standard tags are arranged in this order: @receiver, @param, @property, @return, @throws or @exception, @constructor, but are: @param, @param, @param, @throws, @throws, @throws, @return, canBeAutoCorrected=true),
    DiktatError(line=25, col=28, ruleId=diktat-ruleset:newlines, detail=[WRONG_NEWLINES] incorrect line breaking: value parameters should be placed on different lines in declaration of <createWithFile>, canBeAutoCorrected=true),
    DiktatError(line=28, col=71, ruleId=diktat-ruleset:empty-block-structure, detail=[EMPTY_BLOCK_STRUCTURE_ERROR] incorrect format of empty block: empty blocks are forbidden unless it is function with override keyword, canBeAutoCorrected=false),
    DiktatError(line=30, col=17, ruleId=diktat-ruleset:newlines, detail=[WRONG_NEWLINES] incorrect line breaking: opening parentheses should not be separated from constructor or function name, canBeAutoCorrected=true),
    DiktatError(line=30, col=17, ruleId=diktat-ruleset:horizontal-whitespace, detail=[WRONG_WHITESPACE] incorrect usage of whitespaces for code separation: ( should have 0 space(s) before and 0 space(s) after, but has 1 space(s) before, canBeAutoCorrected=true),
    DiktatError(line=35, col=13, ruleId=diktat-ruleset:newlines, detail=[WRONG_NEWLINES] incorrect line breaking: should break a line after and not before &&, canBeAutoCorrected=true),
    DiktatError(line=39, col=5, ruleId=diktat-ruleset:races-rule, detail=[NO_BRACES_IN_CONDITIONALS_AND_LOOPS] in if, else, when, for, do, and while statements braces should be used. Exception: single line ternary operator statement: IF, canBeAutoCorrected=true),
    DiktatError(line=39, col=12, ruleId=diktat-ruleset:kdoc-comments-codeblocks-formatting, detail=[COMMENT_WHITE_SPACE] there should be a white space between code and comment also between code start token and comment text: There should be 2 space(s) before comment text, but there are too few in // comment, canBeAutoCorrected=true)]

	at com.saveourtool.diktat.ruleset.smoke.DiktatSmokeTestBase$smoke test #2$1.invoke(DiktatSmokeTestBase.kt:220)
	at com.saveourtool.diktat.ruleset.smoke.DiktatSmokeTestBase$smoke test #2$1.invoke(DiktatSmokeTestBase.kt:219)
	at com.saveourtool.diktat.ruleset.smoke.DiktatSmokeTest.assertUnfixedLintErrors(DiktatSmokeTest.kt:51)
	at com.saveourtool.diktat.ruleset.smoke.DiktatSmokeTestBase.smoke test #2(DiktatSmokeTestBase.kt:219)
	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 failure on line 178 in diktat-ruleset/src/test/kotlin/com/saveourtool/diktat/ruleset/smoke/DiktatSmokeTestBase.kt

See this annotation in the file changed.

@github-actions github-actions / JUnit Tests (Windows, dorny/test-reporter@v1)

com.saveourtool.diktat.ruleset.smoke.DiktatSmokeTest ► smoke test #5()

Failed test found in:
  diktat-ruleset/build/test-results/test/TEST-com.saveourtool.diktat.ruleset.smoke.DiktatSmokeTest.xml
Error:
  org.opentest4j.AssertionFailedError: expected: <true> but was: <false>
Raw output
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.DiktatSmokeTestBase$smoke test #5$1.invoke(DiktatSmokeTestBase.kt:178)
	at com.saveourtool.diktat.ruleset.smoke.DiktatSmokeTestBase$smoke test #5$1.invoke(DiktatSmokeTestBase.kt:166)
	at com.saveourtool.diktat.ruleset.smoke.DiktatSmokeTest.assertUnfixedLintErrors(DiktatSmokeTest.kt:51)
	at com.saveourtool.diktat.ruleset.smoke.DiktatSmokeTestBase.smoke test #5(DiktatSmokeTestBase.kt:166)
	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)