gitextract_zjq19om1/ ├── .editorconfig ├── .git-hooks/ │ ├── commit-msg.sh │ └── pre-commit.sh ├── .gitattributes ├── .github/ │ ├── ISSUE_TEMPLATE/ │ │ ├── bug_report.md │ │ └── config.yml │ ├── codecov.yml │ ├── pull_request_template.md │ └── workflows/ │ ├── build_and_test.yml │ ├── codeql-analysis.yml │ ├── dependencies.yml │ ├── detekt.yml │ ├── diktat.yml │ ├── diktat_snapshot.yml │ └── release.yml ├── .gitignore ├── CNAME ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── RELEASING.md ├── _config.yml ├── build.gradle.kts ├── detekt-config.yml ├── diktat-analysis.yml ├── diktat-api/ │ ├── build.gradle.kts │ └── src/ │ └── main/ │ └── kotlin/ │ └── com/ │ └── saveourtool/ │ └── diktat/ │ ├── Constants.kt │ ├── DiktatProcessor.kt │ ├── DiktatProcessorFactory.kt │ ├── DiktatRunner.kt │ ├── DiktatRunnerArguments.kt │ ├── DiktatRunnerFactory.kt │ ├── api/ │ │ ├── DiktatBaseline.kt │ │ ├── DiktatBaselineFactory.kt │ │ ├── DiktatCallback.kt │ │ ├── DiktatError.kt │ │ ├── DiktatErrorEmitter.kt │ │ ├── DiktatProcessorListener.kt │ │ ├── DiktatReporterCreationArguments.kt │ │ ├── DiktatReporterFactory.kt │ │ ├── DiktatReporterType.kt │ │ ├── DiktatRule.kt │ │ ├── DiktatRuleConfig.kt │ │ ├── DiktatRuleConfigReader.kt │ │ ├── DiktatRuleNameAware.kt │ │ ├── DiktatRuleSet.kt │ │ └── DiktatRuleSetFactory.kt │ ├── common/ │ │ └── config/ │ │ └── rules/ │ │ └── LegacyAliases.kt │ └── util/ │ ├── DiktatProcessorListenerWrapper.kt │ └── FileUtils.kt ├── diktat-cli/ │ ├── README.md │ ├── build.gradle.kts │ └── src/ │ ├── main/ │ │ ├── kotlin/ │ │ │ └── com/ │ │ │ └── saveourtool/ │ │ │ └── diktat/ │ │ │ ├── DiktatMain.kt │ │ │ ├── cli/ │ │ │ │ ├── DiktatMode.kt │ │ │ │ └── DiktatProperties.kt │ │ │ └── util/ │ │ │ └── CliUtils.kt │ │ └── script/ │ │ ├── diktat.cmd │ │ └── header-diktat.sh │ └── test/ │ ├── kotlin/ │ │ └── com/ │ │ └── saveourtool/ │ │ └── diktat/ │ │ ├── smoke/ │ │ │ ├── DiktatCliTest.kt │ │ │ ├── DiktatSaveSmokeTest.kt │ │ │ ├── DiktatSmokeTest.kt │ │ │ ├── DiktatSmokeTestBase.kt │ │ │ └── DiktatSmokeTestUtils.kt │ │ └── util/ │ │ └── CliUtilsKtTest.kt │ └── resources/ │ └── test/ │ └── smoke/ │ ├── .editorconfig │ ├── .gitignore │ ├── build.gradle.kts_ │ ├── save.toml │ └── src/ │ ├── jsMain/ │ │ └── kotlin/ │ │ └── com/ │ │ └── saveourtool/ │ │ └── diktat/ │ │ └── scripts/ │ │ ├── ScriptExpected.kt │ │ └── ScriptTest.kt │ └── main/ │ └── kotlin/ │ ├── Bug1Expected.kt │ ├── Bug1Test.kt │ ├── DefaultPackageExpected.kt │ ├── DefaultPackageTest.kt │ ├── Example1-2Expected.kt │ ├── Example1Expected.kt │ ├── Example1Test.kt │ ├── Example2Expected.kt │ ├── Example2Test.kt │ ├── Example3Expected.kt │ ├── Example3Test.kt │ ├── Example4Expected.kt │ ├── Example4Test.kt │ ├── Example5Expected.kt │ ├── Example5Test.kt │ ├── Example6Expected.kt │ ├── Example6Test.kt │ ├── Example7Expected.kt │ ├── Example7Test.kt │ ├── Example8Expected.kt │ ├── Example8Test.kt │ ├── KdocFormattingMultilineTagsExpected.kt │ ├── KdocFormattingMultilineTagsTest.kt │ ├── LocalVariableWithOffsetExpected.kt │ ├── LocalVariableWithOffsetTest.kt │ ├── ManyLineTransformInLongLineExpected.kt │ ├── ManyLineTransformInLongLineTest.kt │ ├── NewlinesAfterInterfacesExpected.kt │ ├── NewlinesAfterInterfacesTest.kt │ ├── SemicolonsExpected.kt │ ├── SemicolonsTest.kt │ ├── kotlin-library-expected.gradle.kts │ ├── kotlin-library.gradle.kts │ ├── save.toml │ └── script/ │ ├── PackageInScriptExpected.kts │ ├── PackageInScriptTest.kts │ ├── SimpleRunInScriptExpected.kts │ └── SimpleRunInScriptTest.kts ├── diktat-common-test/ │ ├── build.gradle.kts │ └── src/ │ └── main/ │ └── kotlin/ │ └── com/ │ └── saveourtool/ │ └── diktat/ │ └── test/ │ └── framework/ │ ├── processing/ │ │ ├── ResourceReader.kt │ │ ├── TestComparatorUnit.kt │ │ └── TestFileContent.kt │ └── util/ │ └── TestUtils.kt ├── diktat-dev-ksp/ │ ├── build.gradle.kts │ └── src/ │ └── main/ │ ├── kotlin/ │ │ └── com/ │ │ └── saveourtool/ │ │ └── diktat/ │ │ └── ruleset/ │ │ └── generation/ │ │ ├── EnumNames.kt │ │ ├── EnumNamesSymbolProcessor.kt │ │ └── EnumNamesSymbolProcessorProvider.kt │ └── resources/ │ └── META-INF/ │ └── services/ │ └── com.google.devtools.ksp.processing.SymbolProcessorProvider ├── diktat-gradle-plugin/ │ ├── README.md │ ├── build.gradle.kts │ └── src/ │ ├── functionalTest/ │ │ └── kotlin/ │ │ └── com/ │ │ └── saveourtool/ │ │ └── diktat/ │ │ └── plugin/ │ │ └── gradle/ │ │ ├── DiktatGradlePluginFunctionalTest.kt │ │ ├── DiktatGradlePluginGroovyFunctionalTest.kt │ │ ├── DiktatGradlePluginMultiprojectFunctionalTest.kt │ │ └── Utils.kt │ ├── main/ │ │ └── kotlin/ │ │ └── com/ │ │ └── saveourtool/ │ │ └── diktat/ │ │ └── plugin/ │ │ └── gradle/ │ │ ├── DiktatExtension.kt │ │ ├── DiktatGradlePlugin.kt │ │ ├── Utils.kt │ │ ├── extension/ │ │ │ ├── DefaultReporter.kt │ │ │ ├── Reporter.kt │ │ │ └── Reporters.kt │ │ └── tasks/ │ │ ├── DiktatCheckTask.kt │ │ ├── DiktatFixTask.kt │ │ ├── DiktatTaskBase.kt │ │ └── SarifReportMergeTask.kt │ └── test/ │ └── kotlin/ │ └── com/ │ └── saveourtool/ │ └── diktat/ │ └── plugin/ │ └── gradle/ │ ├── DiktatGradlePluginTest.kt │ └── DiktatJavaExecTaskTest.kt ├── diktat-ktlint-engine/ │ ├── build.gradle.kts │ └── src/ │ ├── main/ │ │ └── kotlin/ │ │ └── com/ │ │ ├── pinterest/ │ │ │ └── ktlint/ │ │ │ └── rule/ │ │ │ └── engine/ │ │ │ └── api/ │ │ │ └── Code.kt │ │ └── saveourtool/ │ │ └── diktat/ │ │ └── ktlint/ │ │ ├── DiktatBaselineFactoryImpl.kt │ │ ├── DiktatProcessorFactoryImpl.kt │ │ ├── DiktatReporterFactoryImpl.kt │ │ ├── DiktatReporterImpl.kt │ │ ├── KtLintRuleWrapper.kt │ │ ├── KtLintUtils.kt │ │ └── ReporterV2Wrapper.kt │ └── test/ │ └── kotlin/ │ └── com/ │ └── saveourtool/ │ └── diktat/ │ └── ktlint/ │ └── KtLintRuleWrapperTest.kt ├── diktat-maven-plugin/ │ ├── README.md │ ├── build.gradle.kts │ └── src/ │ ├── main/ │ │ └── kotlin/ │ │ └── com/ │ │ └── saveourtool/ │ │ └── diktat/ │ │ └── plugin/ │ │ └── maven/ │ │ ├── DiktatBaseMojo.kt │ │ ├── DiktatMojo.kt │ │ ├── Utils.kt │ │ └── reporters/ │ │ ├── DefaultReporter.kt │ │ ├── GitHubActionsReporter.kt │ │ ├── Reporter.kt │ │ └── Reporters.kt │ └── test/ │ ├── kotlin/ │ │ └── com/ │ │ └── saveourtool/ │ │ └── diktat/ │ │ └── plugin/ │ │ └── maven/ │ │ ├── DiktatBaseMojoTest.kt │ │ └── DiktatMavenPluginIntegrationTest.kt │ └── resources/ │ └── .mvn/ │ ├── jvm.config │ └── maven.config ├── diktat-rules/ │ ├── build.gradle.kts │ └── src/ │ ├── main/ │ │ ├── kotlin/ │ │ │ └── com/ │ │ │ └── saveourtool/ │ │ │ └── diktat/ │ │ │ ├── common/ │ │ │ │ └── config/ │ │ │ │ └── rules/ │ │ │ │ └── LegacyUtils.kt │ │ │ └── ruleset/ │ │ │ ├── config/ │ │ │ │ ├── AbstractDiktatRuleConfigReader.kt │ │ │ │ ├── CommonConfiguration.kt │ │ │ │ ├── DiktatRuleConfigYamlReader.kt │ │ │ │ └── RuleConfiguration.kt │ │ │ ├── constants/ │ │ │ │ ├── Chapters.kt │ │ │ │ └── Warnings.kt │ │ │ ├── rules/ │ │ │ │ ├── DiktatRule.kt │ │ │ │ ├── DiktatRuleSetFactoryImpl.kt │ │ │ │ ├── chapter1/ │ │ │ │ │ ├── FileNaming.kt │ │ │ │ │ ├── IdentifierNaming.kt │ │ │ │ │ └── PackageNaming.kt │ │ │ │ ├── chapter2/ │ │ │ │ │ ├── comments/ │ │ │ │ │ │ ├── CommentsRule.kt │ │ │ │ │ │ └── HeaderCommentRule.kt │ │ │ │ │ └── kdoc/ │ │ │ │ │ ├── CommentsFormatting.kt │ │ │ │ │ ├── KdocComments.kt │ │ │ │ │ ├── KdocFormatting.kt │ │ │ │ │ └── KdocMethods.kt │ │ │ │ ├── chapter3/ │ │ │ │ │ ├── AnnotationNewLineRule.kt │ │ │ │ │ ├── BlockStructureBraces.kt │ │ │ │ │ ├── BooleanExpressionsRule.kt │ │ │ │ │ ├── BracesInConditionalsAndLoopsRule.kt │ │ │ │ │ ├── ClassLikeStructuresOrderRule.kt │ │ │ │ │ ├── CollapseIfStatementsRule.kt │ │ │ │ │ ├── ConsecutiveSpacesRule.kt │ │ │ │ │ ├── DebugPrintRule.kt │ │ │ │ │ ├── EmptyBlock.kt │ │ │ │ │ ├── EnumsSeparated.kt │ │ │ │ │ ├── LineLength.kt │ │ │ │ │ ├── LongNumericalValuesSeparatedRule.kt │ │ │ │ │ ├── MagicNumberRule.kt │ │ │ │ │ ├── MultipleModifiersSequence.kt │ │ │ │ │ ├── NullableTypeRule.kt │ │ │ │ │ ├── PreviewAnnotationRule.kt │ │ │ │ │ ├── RangeConventionalRule.kt │ │ │ │ │ ├── SingleLineStatementsRule.kt │ │ │ │ │ ├── SortRule.kt │ │ │ │ │ ├── StringConcatenationRule.kt │ │ │ │ │ ├── StringTemplateFormatRule.kt │ │ │ │ │ ├── TrailingCommaRule.kt │ │ │ │ │ ├── WhenMustHaveElseRule.kt │ │ │ │ │ ├── files/ │ │ │ │ │ │ ├── BlankLinesRule.kt │ │ │ │ │ │ ├── FileSize.kt │ │ │ │ │ │ ├── FileStructureRule.kt │ │ │ │ │ │ ├── IndentationAmount.kt │ │ │ │ │ │ ├── IndentationAware.kt │ │ │ │ │ │ ├── IndentationConfigAware.kt │ │ │ │ │ │ ├── IndentationError.kt │ │ │ │ │ │ ├── IndentationRule.kt │ │ │ │ │ │ ├── IndentedElementType.kt │ │ │ │ │ │ ├── NewlinesRule.kt │ │ │ │ │ │ ├── SemicolonsRule.kt │ │ │ │ │ │ ├── TopLevelOrderRule.kt │ │ │ │ │ │ └── WhiteSpaceRule.kt │ │ │ │ │ └── identifiers/ │ │ │ │ │ └── LocalVariablesRule.kt │ │ │ │ ├── chapter4/ │ │ │ │ │ ├── ImmutableValNoVarRule.kt │ │ │ │ │ ├── NullChecksRule.kt │ │ │ │ │ ├── SmartCastRule.kt │ │ │ │ │ ├── TypeAliasRule.kt │ │ │ │ │ ├── VariableGenericTypeDeclarationRule.kt │ │ │ │ │ └── calculations/ │ │ │ │ │ └── AccurateCalculationsRule.kt │ │ │ │ ├── chapter5/ │ │ │ │ │ ├── AsyncAndSyncRule.kt │ │ │ │ │ ├── AvoidNestedFunctionsRule.kt │ │ │ │ │ ├── CheckInverseMethodRule.kt │ │ │ │ │ ├── CustomLabel.kt │ │ │ │ │ ├── FunctionArgumentsSize.kt │ │ │ │ │ ├── FunctionLength.kt │ │ │ │ │ ├── LambdaLengthRule.kt │ │ │ │ │ ├── LambdaParameterOrder.kt │ │ │ │ │ ├── NestedFunctionBlock.kt │ │ │ │ │ ├── OverloadingArgumentsFunction.kt │ │ │ │ │ └── ParameterNameInOuterLambdaRule.kt │ │ │ │ └── chapter6/ │ │ │ │ ├── AvoidEmptyPrimaryConstructor.kt │ │ │ │ ├── AvoidUtilityClass.kt │ │ │ │ ├── CustomGetterSetterRule.kt │ │ │ │ ├── ExtensionFunctionsInFileRule.kt │ │ │ │ ├── ExtensionFunctionsSameNameRule.kt │ │ │ │ ├── ImplicitBackingPropertyRule.kt │ │ │ │ ├── PropertyAccessorFields.kt │ │ │ │ ├── RunInScript.kt │ │ │ │ ├── TrivialPropertyAccessors.kt │ │ │ │ ├── UseLastIndex.kt │ │ │ │ ├── UselessSupertype.kt │ │ │ │ └── classes/ │ │ │ │ ├── AbstractClassesRule.kt │ │ │ │ ├── CompactInitialization.kt │ │ │ │ ├── DataClassesRule.kt │ │ │ │ ├── InlineClassesRule.kt │ │ │ │ ├── SingleConstructorRule.kt │ │ │ │ ├── SingleInitRule.kt │ │ │ │ └── StatelessClassesRule.kt │ │ │ └── utils/ │ │ │ ├── AstConstants.kt │ │ │ ├── AstNodeUtils.kt │ │ │ ├── AstNodeUtilsFromKtLint.kt │ │ │ ├── FileUtils.kt │ │ │ ├── FunctionAstNodeUtils.kt │ │ │ ├── KdocUtils.kt │ │ │ ├── KotlinParseException.kt │ │ │ ├── KotlinParser.kt │ │ │ ├── PositionInTextLocator.kt │ │ │ ├── PsiUtils.kt │ │ │ ├── StringCaseUtils.kt │ │ │ ├── StringUtils.kt │ │ │ ├── indentation/ │ │ │ │ ├── Checkers.kt │ │ │ │ ├── CustomIndentationChecker.kt │ │ │ │ └── IndentationConfig.kt │ │ │ └── search/ │ │ │ ├── VariablesSearch.kt │ │ │ ├── VariablesWithAssignmentSearch.kt │ │ │ └── VariablesWithUsagesSearch.kt │ │ └── resources/ │ │ ├── diktat-analysis-huawei.yml │ │ └── diktat-analysis.yml │ └── test/ │ ├── kotlin/ │ │ └── com/ │ │ └── saveourtool/ │ │ └── diktat/ │ │ ├── ruleset/ │ │ │ ├── chapter1/ │ │ │ │ ├── EnumValueCaseTest.kt │ │ │ │ ├── IdentifierNamingFixTest.kt │ │ │ │ ├── IdentifierNamingWarnTest.kt │ │ │ │ ├── MethodNamingWarnTest.kt │ │ │ │ ├── PackageNamingFixTest.kt │ │ │ │ ├── PackageNamingWarnTest.kt │ │ │ │ └── PackagePathFixTest.kt │ │ │ ├── chapter2/ │ │ │ │ ├── CommentsFormattingFixTest.kt │ │ │ │ ├── CommentsFormattingTest.kt │ │ │ │ ├── HeaderCommentRuleFixTest.kt │ │ │ │ ├── HeaderCommentRuleTest.kt │ │ │ │ ├── KdocCommentsFixTest.kt │ │ │ │ ├── KdocCommentsWarnTest.kt │ │ │ │ ├── KdocFormattingFixTest.kt │ │ │ │ ├── KdocFormattingTest.kt │ │ │ │ ├── KdocMethodsFixTest.kt │ │ │ │ ├── KdocMethodsTest.kt │ │ │ │ ├── KdocParamPresentWarnTest.kt │ │ │ │ └── comments/ │ │ │ │ └── CommentedCodeTest.kt │ │ │ ├── chapter3/ │ │ │ │ ├── AnnotationNewLineRuleFixTest.kt │ │ │ │ ├── AnnotationNewLineRuleWarnTest.kt │ │ │ │ ├── BlockStructureBracesFixTest.kt │ │ │ │ ├── BlockStructureBracesWarnTest.kt │ │ │ │ ├── BooleanExpressionsRuleFixTest.kt │ │ │ │ ├── BooleanExpressionsRuleWarnTest.kt │ │ │ │ ├── BracesRuleFixTest.kt │ │ │ │ ├── BracesRuleWarnTest.kt │ │ │ │ ├── ClassLikeStructuresOrderFixTest.kt │ │ │ │ ├── ClassLikeStructuresOrderRuleWarnTest.kt │ │ │ │ ├── CollapseIfStatementsRuleFixTest.kt │ │ │ │ ├── CollapseIfStatementsRuleWarnTest.kt │ │ │ │ ├── ConsecutiveSpacesRuleFixTest.kt │ │ │ │ ├── ConsecutiveSpacesRuleWarnTest.kt │ │ │ │ ├── DebugPrintRuleWarnTest.kt │ │ │ │ ├── EmptyBlockFixTest.kt │ │ │ │ ├── EmptyBlockWarnTest.kt │ │ │ │ ├── EnumsSeparatedFixTest.kt │ │ │ │ ├── EnumsSeparatedWarnTest.kt │ │ │ │ ├── FileSizeWarnTest.kt │ │ │ │ ├── FileStructureRuleFixTest.kt │ │ │ │ ├── FileStructureRuleTest.kt │ │ │ │ ├── LineLengthFixTest.kt │ │ │ │ ├── LineLengthWarnTest.kt │ │ │ │ ├── LocalVariablesWarnTest.kt │ │ │ │ ├── LongNumericalValuesSeparatedFixTest.kt │ │ │ │ ├── LongNumericalValuesSeparatedWarnTest.kt │ │ │ │ ├── MagicNumberRuleWarnTest.kt │ │ │ │ ├── MultipleModifiersSequenceFixTest.kt │ │ │ │ ├── MultipleModifiersSequenceWarnTest.kt │ │ │ │ ├── NullableTypeRuleFixTest.kt │ │ │ │ ├── NullableTypeRuleWarnTest.kt │ │ │ │ ├── PreviewAnnotationFixTest.kt │ │ │ │ ├── PreviewAnnotationWarnTest.kt │ │ │ │ ├── RangeConventionalRuleFixTest.kt │ │ │ │ ├── RangeConventionalRuleWarnTest.kt │ │ │ │ ├── SingleLineStatementsRuleFixTest.kt │ │ │ │ ├── SingleLineStatementsRuleWarnTest.kt │ │ │ │ ├── SortRuleFixTest.kt │ │ │ │ ├── SortRuleWarnTest.kt │ │ │ │ ├── StringConcatenationRuleFixTest.kt │ │ │ │ ├── StringConcatenationWarnTest.kt │ │ │ │ ├── StringTemplateRuleFixTest.kt │ │ │ │ ├── StringTemplateRuleWarnTest.kt │ │ │ │ ├── SuperClassListWarnTest.kt │ │ │ │ ├── TrailingCommaFixTest.kt │ │ │ │ ├── TrailingCommaWarnTest.kt │ │ │ │ ├── WhenMustHaveElseFixTest.kt │ │ │ │ ├── WhenMustHaveElseWarnTest.kt │ │ │ │ ├── files/ │ │ │ │ │ ├── BlankLinesFixTest.kt │ │ │ │ │ ├── BlankLinesWarnTest.kt │ │ │ │ │ ├── NewlinesRuleFixTest.kt │ │ │ │ │ ├── NewlinesRuleWarnTest.kt │ │ │ │ │ ├── SemicolonsRuleFixTest.kt │ │ │ │ │ ├── SemicolonsRuleWarnTest.kt │ │ │ │ │ ├── TopLevelOrderRuleFixTest.kt │ │ │ │ │ └── TopLevelOrderRuleWarnTest.kt │ │ │ │ └── spaces/ │ │ │ │ ├── ExpectedIndentationError.kt │ │ │ │ ├── IndentationConfigAwareTest.kt │ │ │ │ ├── IndentationConfigFactory.kt │ │ │ │ ├── IndentationRuleFixTest.kt │ │ │ │ ├── IndentationRuleTest.kt │ │ │ │ ├── IndentationRuleTestSuite.kt │ │ │ │ ├── IndentationRuleTestUtils.kt │ │ │ │ ├── IndentationRuleWarnTest.kt │ │ │ │ ├── WhiteSpaceRuleFixTest.kt │ │ │ │ ├── WhiteSpaceRuleWarnTest.kt │ │ │ │ └── junit/ │ │ │ │ ├── IndentationTest.kt │ │ │ │ ├── IndentationTestExtension.kt │ │ │ │ ├── IndentationTestFixExtension.kt │ │ │ │ ├── IndentationTestFixInvocationContext.kt │ │ │ │ ├── IndentationTestInput.kt │ │ │ │ ├── IndentationTestInvocationContext.kt │ │ │ │ ├── IndentationTestInvocationContextProvider.kt │ │ │ │ ├── IndentationTestWarnExtension.kt │ │ │ │ ├── IndentationTestWarnInvocationContext.kt │ │ │ │ └── IndentedSourceCode.kt │ │ │ ├── chapter4/ │ │ │ │ ├── AccurateCalculationsWarnTest.kt │ │ │ │ ├── NoVarRuleWarnTest.kt │ │ │ │ ├── NullChecksRuleFixTest.kt │ │ │ │ ├── NullChecksRuleWarnTest.kt │ │ │ │ ├── SmartCastRuleFixTest.kt │ │ │ │ ├── SmartCastRuleWarnTest.kt │ │ │ │ ├── TypeAliasRuleWarnTest.kt │ │ │ │ ├── VariableGenericTypeDeclarationRuleFixTest.kt │ │ │ │ └── VariableGenericTypeDeclarationRuleWarnTest.kt │ │ │ ├── chapter5/ │ │ │ │ ├── AsyncAndSyncRuleTest.kt │ │ │ │ ├── AvoidNestedFunctionsFixTest.kt │ │ │ │ ├── AvoidNestedFunctionsWarnTest.kt │ │ │ │ ├── CheckInverseMethodRuleFixTest.kt │ │ │ │ ├── CheckInverseMethodRuleWarnTest.kt │ │ │ │ ├── CustomLabelsTest.kt │ │ │ │ ├── FunctionArgumentsSizeWarnTest.kt │ │ │ │ ├── FunctionLengthWarnTest.kt │ │ │ │ ├── LambdaLengthWarnTest.kt │ │ │ │ ├── LambdaParameterOrderWarnTest.kt │ │ │ │ ├── NestedFunctionBlockWarnTest.kt │ │ │ │ ├── OverloadingArgumentsFunctionWarnTest.kt │ │ │ │ └── ParameterNameInOuterLambdaRuleWarnTest.kt │ │ │ ├── chapter6/ │ │ │ │ ├── AbstractClassesFixTest.kt │ │ │ │ ├── AbstractClassesWarnTest.kt │ │ │ │ ├── AvoidUtilityClassWarnTest.kt │ │ │ │ ├── CompactInitializationFixTest.kt │ │ │ │ ├── CompactInitializationWarnTest.kt │ │ │ │ ├── CustomGetterSetterWarnTest.kt │ │ │ │ ├── DataClassesRuleWarnTest.kt │ │ │ │ ├── EmptyPrimaryConstructorFixTest.kt │ │ │ │ ├── EmptyPrimaryConstructorWarnTest.kt │ │ │ │ ├── ExtensionFunctionsInFileWarnTest.kt │ │ │ │ ├── ExtensionFunctionsSameNameWarnTest.kt │ │ │ │ ├── ImplicitBackingPropertyWarnTest.kt │ │ │ │ ├── InlineClassesWarnTest.kt │ │ │ │ ├── PropertyAccessorFieldsWarnTest.kt │ │ │ │ ├── RunInScriptFixTest.kt │ │ │ │ ├── RunInScriptWarnTest.kt │ │ │ │ ├── SingleConstructorRuleFixTest.kt │ │ │ │ ├── SingleConstructorRuleWarnTest.kt │ │ │ │ ├── SingleInitRuleFixTest.kt │ │ │ │ ├── SingleInitRuleWarnTest.kt │ │ │ │ ├── StatelessClassesRuleFixTest.kt │ │ │ │ ├── StatelessClassesRuleWarnTest.kt │ │ │ │ ├── TrivialPropertyAccessorsFixTest.kt │ │ │ │ ├── TrivialPropertyAccessorsWarnTest.kt │ │ │ │ ├── UseLastIndexFixTest.kt │ │ │ │ ├── UseLastIndexWarnTest.kt │ │ │ │ ├── UselessSupertypeFixTest.kt │ │ │ │ └── UselessSupertypeWarnTest.kt │ │ │ ├── config/ │ │ │ │ └── DiktatRuleConfigYamlReaderTest.kt │ │ │ ├── junit/ │ │ │ │ ├── BooleanOrDefault.kt │ │ │ │ ├── CloseablePath.kt │ │ │ │ ├── ExpectedLintError.kt │ │ │ │ ├── ExpectedLintErrors.kt │ │ │ │ ├── NaturalDisplayName.kt │ │ │ │ └── RuleInvocationContextProvider.kt │ │ │ ├── smoke/ │ │ │ │ └── RulesConfigValidationTest.kt │ │ │ └── utils/ │ │ │ ├── AstNodeUtilsTest.kt │ │ │ ├── AvailableRulesDocTest.kt │ │ │ ├── FunctionAstNodeUtilsTest.kt │ │ │ ├── KotlinParserTest.kt │ │ │ ├── RulesConfigYamlTest.kt │ │ │ ├── StringCaseUtilsTest.kt │ │ │ ├── SuppressAnnotatedExpressionTest.kt │ │ │ ├── SuppressTest.kt │ │ │ ├── VariablesSearchTest.kt │ │ │ ├── VariablesWithAssignmentsSearchTest.kt │ │ │ ├── VariablesWithUsagesSearchTest.kt │ │ │ └── WarningsGenerationTest.kt │ │ └── util/ │ │ ├── DiktatRuleSetFactoryImplTest.kt │ │ ├── DiktatRuleTest.kt │ │ ├── FixTestBase.kt │ │ ├── LintTestBase.kt │ │ ├── SuppressingTest.kt │ │ └── TestUtils.kt │ └── resources/ │ ├── log4j2.properties │ ├── test/ │ │ ├── chapter6/ │ │ │ ├── abstract_classes/ │ │ │ │ ├── ShouldReplaceAbstractKeywordExpected.kt │ │ │ │ └── ShouldReplaceAbstractKeywordTest.kt │ │ │ ├── classes/ │ │ │ │ ├── AssignmentWithLocalPropertyExpected.kt │ │ │ │ ├── AssignmentWithLocalPropertyTest.kt │ │ │ │ ├── ConstructorShouldKeepExpressionsOrderExpected.kt │ │ │ │ ├── ConstructorShouldKeepExpressionsOrderTest.kt │ │ │ │ ├── ConstructorWithCommentsExpected.kt │ │ │ │ ├── ConstructorWithCommentsTest.kt │ │ │ │ ├── ConstructorWithComplexAssignmentsExpected.kt │ │ │ │ ├── ConstructorWithComplexAssignmentsTest.kt │ │ │ │ ├── ConstructorWithCustomAssignmentsExpected.kt │ │ │ │ ├── ConstructorWithCustomAssignmentsTest.kt │ │ │ │ ├── ConstructorWithInitExpected.kt │ │ │ │ ├── ConstructorWithInitTest.kt │ │ │ │ ├── ConstructorWithModifiersExpected.kt │ │ │ │ ├── ConstructorWithModifiersTest.kt │ │ │ │ ├── SimpleConstructorExpected.kt │ │ │ │ └── SimpleConstructorTest.kt │ │ │ ├── compact_initialization/ │ │ │ │ ├── ApplyOnStatementsWithThisKeywordExpected.kt │ │ │ │ ├── ApplyOnStatementsWithThisKeywordTest.kt │ │ │ │ ├── ApplyWithValueArgumentExpected.kt │ │ │ │ ├── ApplyWithValueArgumentTest.kt │ │ │ │ ├── ExampleWithCommentsExpected.kt │ │ │ │ ├── ExampleWithCommentsTest.kt │ │ │ │ ├── ParenthesizedReceiverExpected.kt │ │ │ │ ├── ParenthesizedReceiverTest.kt │ │ │ │ ├── SimpleExampleExpected.kt │ │ │ │ ├── SimpleExampleTest.kt │ │ │ │ ├── StatementUseFieldMultipleTimesExpected.kt │ │ │ │ └── StatementUseFieldMultipleTimesTest.kt │ │ │ ├── init_blocks/ │ │ │ │ ├── InitBlockWithAssignmentsExpected.kt │ │ │ │ ├── InitBlockWithAssignmentsTest.kt │ │ │ │ ├── InitBlocksExpected.kt │ │ │ │ ├── InitBlocksTest.kt │ │ │ │ ├── InitBlocksWithAssignmentsExpected.kt │ │ │ │ └── InitBlocksWithAssignmentsTest.kt │ │ │ ├── lastIndex_change/ │ │ │ │ ├── IncorrectUseLengthMinusOneExpected.kt │ │ │ │ ├── IncorrectUseLengthMinusOneTest.kt │ │ │ │ ├── UseAnyWhiteSpacesExpected.kt │ │ │ │ └── UseAnyWhiteSpacesTest.kt │ │ │ ├── primary_constructor/ │ │ │ │ ├── EmptyPCExpected.kt │ │ │ │ └── EmptyPCTest.kt │ │ │ ├── properties/ │ │ │ │ ├── TrivialPropertyAccessorsExpected.kt │ │ │ │ └── TrivialPropertyAccessorsTest.kt │ │ │ ├── script/ │ │ │ │ ├── SimpleRunInScriptExpected.kts │ │ │ │ └── SimpleRunInScriptTest.kts │ │ │ └── stateless_classes/ │ │ │ ├── StatelessClassExpected.kt │ │ │ └── StatelessClassTest.kt │ │ ├── paragraph1/ │ │ │ └── naming/ │ │ │ ├── class_/ │ │ │ │ ├── IncorrectClassNameExpected.kt │ │ │ │ └── IncorrectClassNameTest.kt │ │ │ ├── enum_/ │ │ │ │ ├── EnumValuePascalCaseExpected.kt │ │ │ │ ├── EnumValuePascalCaseTest.kt │ │ │ │ ├── EnumValueSnakeCaseExpected.kt │ │ │ │ └── EnumValueSnakeCaseTest.kt │ │ │ ├── file/ │ │ │ │ ├── fileNameTest.kt │ │ │ │ └── file_nameTest.kt │ │ │ ├── function/ │ │ │ │ ├── FunctionNameExpected.kt │ │ │ │ └── FunctionNameTest.kt │ │ │ ├── generic/ │ │ │ │ ├── GenericFunctionExpected.kt │ │ │ │ └── GenericFunctionTest.kt │ │ │ ├── identifiers/ │ │ │ │ ├── ConstantValNameExpected.kt │ │ │ │ ├── ConstantValNameTest.kt │ │ │ │ ├── IdentifierNameRegressionExpected.kt │ │ │ │ ├── IdentifierNameRegressionTest.kt │ │ │ │ ├── LambdaArgExpected.kt │ │ │ │ ├── LambdaArgTest.kt │ │ │ │ ├── PrefixInNameExpected.kt │ │ │ │ ├── PrefixInNameTest.kt │ │ │ │ ├── PropertyInKdocExpected.kt │ │ │ │ ├── PropertyInKdocTest.kt │ │ │ │ ├── TypeAliasNameExpected.kt │ │ │ │ ├── TypeAliasNameTest.kt │ │ │ │ ├── VariableNamingExpected.kt │ │ │ │ └── VariableNamingTest.kt │ │ │ ├── object_/ │ │ │ │ ├── IncorrectObjectNameExpected.kt │ │ │ │ └── IncorrectObjectNameTest.kt │ │ │ └── package/ │ │ │ ├── FixUnderscoreExpected.kt │ │ │ ├── FixUnderscoreTest.kt │ │ │ ├── FixUpperExpected.kt │ │ │ ├── FixUpperTest.kt │ │ │ ├── MissingDomainNameExpected.kt │ │ │ ├── MissingDomainNameTest.kt │ │ │ └── src/ │ │ │ └── main/ │ │ │ └── kotlin/ │ │ │ ├── com/ │ │ │ │ └── saveourtool/ │ │ │ │ └── diktat/ │ │ │ │ └── some/ │ │ │ │ └── name/ │ │ │ │ ├── FixIncorrectExpected.kt │ │ │ │ ├── FixIncorrectTest.kt │ │ │ │ ├── FixMissingExpected.kt │ │ │ │ ├── FixMissingTest.kt │ │ │ │ ├── FixMissingWithAnnotationExpected.kt │ │ │ │ ├── FixMissingWithAnnotationExpected2.kt │ │ │ │ ├── FixMissingWithAnnotationExpected3.kt │ │ │ │ ├── FixMissingWithAnnotationTest.kt │ │ │ │ ├── FixMissingWithAnnotationTest2.kt │ │ │ │ ├── FixMissingWithAnnotationTest3.kt │ │ │ │ ├── FixMissingWithoutImportExpected.kt │ │ │ │ ├── FixMissingWithoutImportTest.kt │ │ │ │ ├── FixPackageRegressionExpected.kt │ │ │ │ └── FixPackageRegressionTest.kt │ │ │ └── some/ │ │ │ ├── FixIncorrectExpected.kt │ │ │ ├── FixIncorrectTest.kt │ │ │ ├── FixMissingExpected.kt │ │ │ └── FixMissingTest.kt │ │ ├── paragraph2/ │ │ │ ├── header/ │ │ │ │ ├── AutoCopyrightApplyPatternExpected.kt │ │ │ │ ├── AutoCopyrightApplyPatternTest.kt │ │ │ │ ├── AutoCopyrightExpected.kt │ │ │ │ ├── AutoCopyrightTest.kt │ │ │ │ ├── CopyrightAbsentInvalidPatternExpected.kt │ │ │ │ ├── CopyrightAbsentInvalidPatternTest.kt │ │ │ │ ├── CopyrightDifferentYearExpected.kt │ │ │ │ ├── CopyrightDifferentYearExpected2.kt │ │ │ │ ├── CopyrightDifferentYearTest.kt │ │ │ │ ├── CopyrightDifferentYearTest2.kt │ │ │ │ ├── CopyrightInvalidPatternValidCodeExpected.kt │ │ │ │ ├── CopyrightInvalidPatternValidCodeTest.kt │ │ │ │ ├── CopyrightShouldNotTriggerNPEExpected.kt │ │ │ │ ├── CopyrightShouldNotTriggerNPETest.kt │ │ │ │ ├── MisplacedHeaderKdocAppendedCopyrightExpected.kt │ │ │ │ ├── MisplacedHeaderKdocAppendedCopyrightTest.kt │ │ │ │ ├── MisplacedHeaderKdocExpected.kt │ │ │ │ ├── MisplacedHeaderKdocNoCopyrightExpected.kt │ │ │ │ ├── MisplacedHeaderKdocNoCopyrightTest.kt │ │ │ │ ├── MisplacedHeaderKdocTest.kt │ │ │ │ ├── MultilineCopyrightExample.kt │ │ │ │ ├── MultilineCopyrightNotTriggerExample.kt │ │ │ │ ├── MultilineCopyrightNotTriggerTest.kt │ │ │ │ ├── MultilineCopyrightTest.kt │ │ │ │ ├── NewlineAfterHeaderKdocExpected.kt │ │ │ │ └── NewlineAfterHeaderKdocTest.kt │ │ │ └── kdoc/ │ │ │ ├── BasicTagsEmptyLineBeforeExpected.kt │ │ │ ├── BasicTagsEmptyLineBeforeTest.kt │ │ │ ├── BasicTagsEmptyLinesExpected.kt │ │ │ ├── BasicTagsEmptyLinesTest.kt │ │ │ ├── ConstructorCommentExpected.kt │ │ │ ├── ConstructorCommentNewlineExpected.kt │ │ │ ├── ConstructorCommentNewlineTest.kt │ │ │ ├── ConstructorCommentNoKDocExpected.kt │ │ │ ├── ConstructorCommentNoKDocTest.kt │ │ │ ├── ConstructorCommentPropertiesExpected.kt │ │ │ ├── ConstructorCommentPropertiesTest.kt │ │ │ ├── ConstructorCommentTest.kt │ │ │ ├── DeprecatedTagExpected.kt │ │ │ ├── DeprecatedTagTest.kt │ │ │ ├── KdocBlockCommentExpected.kt │ │ │ ├── KdocBlockCommentTest.kt │ │ │ ├── KdocCodeBlockFormattingExampleExpected.kt │ │ │ ├── KdocCodeBlockFormattingExampleTest.kt │ │ │ ├── KdocCodeBlocksFormattingExpected.kt │ │ │ ├── KdocCodeBlocksFormattingTest.kt │ │ │ ├── KdocEmptyLineExpected.kt │ │ │ ├── KdocEmptyLineTest.kt │ │ │ ├── KdocFormattingFullExpected.kt │ │ │ ├── KdocFormattingFullTest.kt │ │ │ ├── KdocFormattingOrderExpected.kt │ │ │ ├── KdocFormattingOrderTest.kt │ │ │ ├── NoPackageNoImportExpected.kt │ │ │ ├── NoPackageNoImportTest.kt │ │ │ ├── OrderedTagsAssertionExpected.kt │ │ │ ├── OrderedTagsAssertionTest.kt │ │ │ ├── OrderedTagsExpected.kt │ │ │ ├── OrderedTagsTest.kt │ │ │ ├── SpacesAfterTagExpected.kt │ │ │ ├── SpacesAfterTagTest.kt │ │ │ ├── SpecialTagsInKdocExpected.kt │ │ │ ├── SpecialTagsInKdocTest.kt │ │ │ └── package/ │ │ │ └── src/ │ │ │ └── main/ │ │ │ └── kotlin/ │ │ │ └── com/ │ │ │ └── saveourtool/ │ │ │ └── diktat/ │ │ │ └── kdoc/ │ │ │ └── methods/ │ │ │ ├── EmptyKdocExpected.kt │ │ │ ├── EmptyKdocTested.kt │ │ │ ├── KdocMethodsFullExpected.kt │ │ │ ├── KdocMethodsFullTested.kt │ │ │ ├── KdocWithoutThrowsTagExpected.kt │ │ │ ├── KdocWithoutThrowsTagTested.kt │ │ │ ├── MissingKdocExpected.kt │ │ │ ├── MissingKdocOnFunctionExpected.kt │ │ │ ├── MissingKdocOnFunctionTest.kt │ │ │ ├── MissingKdocTested.kt │ │ │ ├── MissingKdocWithModifiersExpected.kt │ │ │ ├── MissingKdocWithModifiersTest.kt │ │ │ ├── ParamTagInsertionExpected.kt │ │ │ ├── ParamTagInsertionTested.kt │ │ │ ├── ReturnTagInsertionExpected.kt │ │ │ ├── ReturnTagInsertionTested.kt │ │ │ ├── ThrowsTagInsertionExpected.kt │ │ │ └── ThrowsTagInsertionTested.kt │ │ ├── paragraph3/ │ │ │ ├── annotations/ │ │ │ │ ├── AnnotationCommentExpected.kt │ │ │ │ ├── AnnotationCommentTest.kt │ │ │ │ ├── AnnotationConstructorSingleLineExpected.kt │ │ │ │ ├── AnnotationConstructorSingleLineTest.kt │ │ │ │ ├── AnnotationSingleLineExpected.kt │ │ │ │ └── AnnotationSingleLineTest.kt │ │ │ ├── blank_lines/ │ │ │ │ ├── CodeBlockWithBlankLinesExpected.kt │ │ │ │ ├── CodeBlockWithBlankLinesTest.kt │ │ │ │ ├── RedundantBlankLinesAtTheEndOfBlockExpected.kt │ │ │ │ ├── RedundantBlankLinesAtTheEndOfBlockTest.kt │ │ │ │ ├── RedundantBlankLinesExpected.kt │ │ │ │ └── RedundantBlankLinesTest.kt │ │ │ ├── block_brace/ │ │ │ │ ├── ClassBracesExpected.kt │ │ │ │ ├── ClassBracesTest.kt │ │ │ │ ├── DoWhileBracesExpected.kt │ │ │ │ ├── DoWhileBracesTest.kt │ │ │ │ ├── IfElseBracesExpected.kt │ │ │ │ ├── IfElseBracesTest.kt │ │ │ │ ├── LoopsBracesExpected.kt │ │ │ │ ├── LoopsBracesTest.kt │ │ │ │ ├── TryBraceExpected.kt │ │ │ │ ├── TryBraceTest.kt │ │ │ │ ├── WhenBranchesExpected.kt │ │ │ │ └── WhenBranchesTest.kt │ │ │ ├── boolean_expressions/ │ │ │ │ ├── BooleanExpressionsExpected.kt │ │ │ │ ├── BooleanExpressionsTest.kt │ │ │ │ ├── DistributiveLawExpected.kt │ │ │ │ ├── DistributiveLawTest.kt │ │ │ │ ├── ExpressionSimplificationExpected.kt │ │ │ │ ├── ExpressionSimplificationTest.kt │ │ │ │ ├── NegativeExpressionExpected.kt │ │ │ │ ├── NegativeExpressionTest.kt │ │ │ │ ├── OrderIssueExpected.kt │ │ │ │ ├── OrderIssueTest.kt │ │ │ │ ├── SameExpressionsInConditionExpected.kt │ │ │ │ ├── SameExpressionsInConditionTest.kt │ │ │ │ ├── SubstitutionIssueExpected.kt │ │ │ │ └── SubstitutionIssueTest.kt │ │ │ ├── braces/ │ │ │ │ ├── DoWhileBracesExpected.kt │ │ │ │ ├── DoWhileBracesTest.kt │ │ │ │ ├── IfElseBraces1Expected.kt │ │ │ │ ├── IfElseBraces1Test.kt │ │ │ │ ├── IfElseBracesInsideScopeFunctionsExpected.kt │ │ │ │ ├── IfElseBracesInsideScopeFunctionsTest.kt │ │ │ │ ├── LoopsBracesExpected.kt │ │ │ │ ├── LoopsBracesInsideScopeFunctionsExpected.kt │ │ │ │ ├── LoopsBracesInsideScopeFunctionsTest.kt │ │ │ │ ├── LoopsBracesTest.kt │ │ │ │ ├── WhenBranchesExpected.kt │ │ │ │ └── WhenBranchesTest.kt │ │ │ ├── collapse_if/ │ │ │ │ ├── CollapseIfStatementsExpected.kt │ │ │ │ └── CollapseIfStatementsTest.kt │ │ │ ├── else_expected/ │ │ │ │ ├── ElseInWhenExpected.kt │ │ │ │ └── ElseInWhenTest.kt │ │ │ ├── empty_block/ │ │ │ │ ├── EmptyBlockExpected.kt │ │ │ │ └── EmptyBlockTest.kt │ │ │ ├── enum_separated/ │ │ │ │ ├── EnumSeparatedExpected.kt │ │ │ │ ├── EnumSeparatedTest.kt │ │ │ │ ├── LastElementCommentExpected.kt │ │ │ │ └── LastElementCommentTest.kt │ │ │ ├── file_structure/ │ │ │ │ ├── BlankLinesBetweenBlocksExpected.kt │ │ │ │ ├── CompanionObjectWithCommentExpected.kt │ │ │ │ ├── CompanionObjectWithCommentTest.kt │ │ │ │ ├── CopyrightCommentPositionExpected.kt │ │ │ │ ├── CopyrightCommentPositionTest.kt │ │ │ │ ├── DeclarationsInClassOrderExpected.kt │ │ │ │ ├── DeclarationsInClassOrderTest.kt │ │ │ │ ├── DefaultPackageWithImportsExpected.kt │ │ │ │ ├── DefaultPackageWithImportsTest.kt │ │ │ │ ├── FileAnnotationExpected.kt │ │ │ │ ├── FileAnnotationTest.kt │ │ │ │ ├── HeaderKdocAfterPackageExpected.kt │ │ │ │ ├── HeaderKdocAfterPackageTest.kt │ │ │ │ ├── LoggerOrderExpected.kt │ │ │ │ ├── LoggerOrderTest.kt │ │ │ │ ├── MissingBlankLinesBetweenBlocksTest.kt │ │ │ │ ├── NoImportNoPackageExpected.kt │ │ │ │ ├── NoImportNoPackageTest.kt │ │ │ │ ├── OrderWithCommentExpected.kt │ │ │ │ ├── OrderWithCommentTest.kt │ │ │ │ ├── OrderWithEnumsExpected.kt │ │ │ │ ├── OrderWithEnumsTest.kt │ │ │ │ ├── OtherCommentsExpected.kt │ │ │ │ ├── OtherCommentsTest.kt │ │ │ │ ├── RedundantBlankLinesBetweenBlocksTest.kt │ │ │ │ ├── ReorderingImportsExpected.kt │ │ │ │ ├── ReorderingImportsRecommendedExpected.kt │ │ │ │ ├── ReorderingImportsRecommendedTest.kt │ │ │ │ ├── ReorderingImportsTest.kt │ │ │ │ ├── ScriptPackageDirectiveExpected.kts │ │ │ │ └── ScriptPackageDirectiveTest.kts │ │ │ ├── indentation/ │ │ │ │ ├── ConstructorExpected.kt │ │ │ │ ├── ConstructorTest.kt │ │ │ │ ├── IndentFullExpected.kt │ │ │ │ ├── IndentFullTest.kt │ │ │ │ ├── IndentationFull1Expected.kt │ │ │ │ ├── IndentationFull1Test.kt │ │ │ │ ├── IndentationParametersExpected.kt │ │ │ │ └── IndentationParametersTest.kt │ │ │ ├── long_line/ │ │ │ │ ├── LongBinaryExpressionExpected.kt │ │ │ │ ├── LongBinaryExpressionLastWordExpected.kt │ │ │ │ ├── LongBinaryExpressionLastWordTest.kt │ │ │ │ ├── LongBinaryExpressionTest.kt │ │ │ │ ├── LongComplexExpressionExpected.kt │ │ │ │ ├── LongComplexExpressionTest.kt │ │ │ │ ├── LongConditionInSmallFunctionExpected.kt │ │ │ │ ├── LongConditionInSmallFunctionTest.kt │ │ │ │ ├── LongDotQualifiedExpressionExpected.kt │ │ │ │ ├── LongDotQualifiedExpressionTest.kt │ │ │ │ ├── LongExpressionInConditionExpected.kt │ │ │ │ ├── LongExpressionInConditionTest.kt │ │ │ │ ├── LongExpressionNoFixExpected.kt │ │ │ │ ├── LongExpressionNoFixTest.kt │ │ │ │ ├── LongInlineCommentsExpected.kt │ │ │ │ ├── LongInlineCommentsTest.kt │ │ │ │ ├── LongLineAnnotationExpected.kt │ │ │ │ ├── LongLineAnnotationTest.kt │ │ │ │ ├── LongLineCommentExpected.kt │ │ │ │ ├── LongLineCommentExpected2.kt │ │ │ │ ├── LongLineCommentTest.kt │ │ │ │ ├── LongLineCommentTest2.kt │ │ │ │ ├── LongLineExpressionExpected.kt │ │ │ │ ├── LongLineExpressionTest.kt │ │ │ │ ├── LongLineFunExpected.kt │ │ │ │ ├── LongLineFunTest.kt │ │ │ │ ├── LongLineRValueExpected.kt │ │ │ │ ├── LongLineRValueTest.kt │ │ │ │ ├── LongShortRValueExpected.kt │ │ │ │ ├── LongShortRValueTest.kt │ │ │ │ ├── LongStringTemplateExpected.kt │ │ │ │ ├── LongStringTemplateTest.kt │ │ │ │ ├── LongValueArgumentsListExpected.kt │ │ │ │ └── LongValueArgumentsListTest.kt │ │ │ ├── long_numbers/ │ │ │ │ ├── LongNumericalValuesExpected.kt │ │ │ │ └── LongNumericalValuesTest.kt │ │ │ ├── multiple_modifiers/ │ │ │ │ ├── AnnotationExpected.kt │ │ │ │ ├── AnnotationTest.kt │ │ │ │ ├── ModifierExpected.kt │ │ │ │ └── ModifierTest.kt │ │ │ ├── newlines/ │ │ │ │ ├── ColonExpected.kt │ │ │ │ ├── ColonTest.kt │ │ │ │ ├── CommaExpected.kt │ │ │ │ ├── CommaTest.kt │ │ │ │ ├── ExpressionBodyExpected.kt │ │ │ │ ├── ExpressionBodyTest.kt │ │ │ │ ├── FunctionalStyleExpected.kt │ │ │ │ ├── FunctionalStyleTest.kt │ │ │ │ ├── LParExpected.kt │ │ │ │ ├── LParTest.kt │ │ │ │ ├── LambdaExpected.kt │ │ │ │ ├── LambdaTest.kt │ │ │ │ ├── ListArgumentLambdaExpected.kt │ │ │ │ ├── ListArgumentLambdaTest.kt │ │ │ │ ├── LongDotQualifiedExpressionExpected.kt │ │ │ │ ├── LongDotQualifiedExpressionTest.kt │ │ │ │ ├── OneLineFunctionExpected.kt │ │ │ │ ├── OneLineFunctionTest.kt │ │ │ │ ├── OperatorsExpected.kt │ │ │ │ ├── OperatorsTest.kt │ │ │ │ ├── ParameterListExpected.kt │ │ │ │ ├── ParameterListTest.kt │ │ │ │ ├── SizeParameterListExpected.kt │ │ │ │ ├── SizeParameterListTest.kt │ │ │ │ ├── SuperClassListOnTheSameLineExpected.kt │ │ │ │ └── SuperClassListOnTheSameLineTest.kt │ │ │ ├── nullable/ │ │ │ │ ├── CollectionExpected.kt │ │ │ │ ├── CollectionTest.kt │ │ │ │ ├── NullPrimitiveExpected.kt │ │ │ │ └── NullPrimitiveTest.kt │ │ │ ├── preview_annotation/ │ │ │ │ ├── PreviewAnnotationMethodNameExpected.kt │ │ │ │ ├── PreviewAnnotationMethodNameTest.kt │ │ │ │ ├── PreviewAnnotationPrivateModifierExpected.kt │ │ │ │ └── PreviewAnnotationPrivateModifierTest.kt │ │ │ ├── range/ │ │ │ │ ├── RangeToExpected.kt │ │ │ │ ├── RangeToTest.kt │ │ │ │ ├── RangeToUntilExpected.kt │ │ │ │ └── RangeToUntilTest.kt │ │ │ ├── semicolons/ │ │ │ │ ├── SemicolonsExpected.kt │ │ │ │ └── SemicolonsTest.kt │ │ │ ├── sort_error/ │ │ │ │ ├── ConstantsExpected.kt │ │ │ │ ├── ConstantsTest.kt │ │ │ │ ├── EnumSortExpected.kt │ │ │ │ └── EnumSortTest.kt │ │ │ ├── spaces/ │ │ │ │ ├── AnnotationExpected.kt │ │ │ │ ├── AnnotationTest.kt │ │ │ │ ├── BinaryOpExpected.kt │ │ │ │ ├── BinaryOpTest.kt │ │ │ │ ├── BracesLambdaSpacesExpected.kt │ │ │ │ ├── BracesLambdaSpacesTest.kt │ │ │ │ ├── EolSpacesExpected.kt │ │ │ │ ├── EolSpacesTest.kt │ │ │ │ ├── EqualsExpected.kt │ │ │ │ ├── EqualsTest.kt │ │ │ │ ├── LBraceAfterKeywordExpected.kt │ │ │ │ ├── LBraceAfterKeywordTest.kt │ │ │ │ ├── LambdaAsArgumentExpected.kt │ │ │ │ ├── LambdaAsArgumentTest.kt │ │ │ │ ├── LbraceExpected.kt │ │ │ │ ├── LbraceTest.kt │ │ │ │ ├── TooManySpacesEnumExpected.kt │ │ │ │ ├── TooManySpacesEnumTest.kt │ │ │ │ ├── TooManySpacesExpected.kt │ │ │ │ ├── TooManySpacesTest.kt │ │ │ │ ├── WhiteSpaceBeforeLBraceExpected.kt │ │ │ │ ├── WhiteSpaceBeforeLBraceTest.kt │ │ │ │ ├── WhiteSpaceBeforeLParExpected.kt │ │ │ │ └── WhiteSpaceBeforeLParTest.kt │ │ │ ├── src/ │ │ │ │ └── main/ │ │ │ │ ├── A/ │ │ │ │ │ ├── FileSize2000.kt │ │ │ │ │ └── FileSizeA.kt │ │ │ │ ├── B/ │ │ │ │ │ └── FileSizeB.kt │ │ │ │ ├── C/ │ │ │ │ │ └── FileSizeC.kt │ │ │ │ └── FileSizeLarger.kt │ │ │ ├── statement/ │ │ │ │ ├── StatementExpected.kt │ │ │ │ └── StatementTest.kt │ │ │ ├── string_concatenation/ │ │ │ │ ├── StringConcatenationExpected.kt │ │ │ │ └── StringConcatenationTest.kt │ │ │ ├── string_template/ │ │ │ │ ├── StringTemplateExpected.kt │ │ │ │ └── StringTemplateTest.kt │ │ │ ├── top_level/ │ │ │ │ ├── TopLevelSortExpected.kt │ │ │ │ ├── TopLevelSortTest.kt │ │ │ │ ├── TopLevelWithCommentExpected.kt │ │ │ │ └── TopLevelWithCommentTest.kt │ │ │ └── trailing_comma/ │ │ │ ├── TrailingCommaExpected.kt │ │ │ └── TrailingCommaTest.kt │ │ ├── paragraph4/ │ │ │ ├── generics/ │ │ │ │ ├── VariableGenericTypeDeclarationExpected.kt │ │ │ │ └── VariableGenericTypeDeclarationTest.kt │ │ │ ├── null_checks/ │ │ │ │ ├── IfConditionAssignCheckExpected.kt │ │ │ │ ├── IfConditionAssignCheckTest.kt │ │ │ │ ├── IfConditionBreakCheckExpected.kt │ │ │ │ ├── IfConditionBreakCheckTest.kt │ │ │ │ ├── IfConditionNullCheckExpected.kt │ │ │ │ ├── IfConditionNullCheckTest.kt │ │ │ │ ├── RequireFunctionExpected.kt │ │ │ │ └── RequireFunctionTest.kt │ │ │ └── smart_cast/ │ │ │ ├── SmartCastExpected.kt │ │ │ └── SmartCastTest.kt │ │ ├── paragraph5/ │ │ │ ├── method_call_names/ │ │ │ │ ├── ReplaceMethodCallNamesExpected.kt │ │ │ │ └── ReplaceMethodCallNamesTest.kt │ │ │ └── nested_functions/ │ │ │ ├── AvoidNestedFunctionsExample.kt │ │ │ ├── AvoidNestedFunctionsNoTriggerExample.kt │ │ │ ├── AvoidNestedFunctionsNoTriggerTest.kt │ │ │ ├── AvoidNestedFunctionsSeveralExample.kt │ │ │ ├── AvoidNestedFunctionsSeveralTest.kt │ │ │ └── AvoidNestedFunctionsTest.kt │ │ └── paragraph6/ │ │ └── useless-override/ │ │ ├── SeveralSuperTypesExpected.kt │ │ ├── SeveralSuperTypesTest.kt │ │ ├── UselessOverrideExpected.kt │ │ └── UselessOverrideTest.kt │ └── test-rules-config.yml ├── diktat-ruleset/ │ ├── build.gradle.kts │ └── src/ │ └── main/ │ ├── kotlin/ │ │ └── com/ │ │ └── saveourtool/ │ │ └── diktat/ │ │ └── ruleset/ │ │ └── rules/ │ │ └── DiktatRuleSetProviderV3Spi.kt │ └── resources/ │ └── META-INF/ │ └── services/ │ └── com.pinterest.ktlint.cli.ruleset.core.api.RuleSetProviderV3 ├── diktat-runner/ │ ├── build.gradle.kts │ └── src/ │ └── main/ │ └── kotlin/ │ └── com/ │ └── saveourtool/ │ └── diktat/ │ └── DiktatFactories.kt ├── examples/ │ ├── README.md │ ├── gradle-groovy-dsl/ │ │ ├── build.gradle │ │ ├── diktat-analysis.yml │ │ └── src/ │ │ └── main/ │ │ └── kotlin/ │ │ ├── AnotherTest.kt │ │ └── Test.kt │ ├── gradle-kotlin-dsl/ │ │ ├── build.gradle.kts │ │ ├── diktat-analysis.yml │ │ ├── settings.gradle.kts │ │ └── src/ │ │ └── main/ │ │ └── kotlin/ │ │ ├── AnotherTest.kt │ │ └── Test.kt │ ├── gradle-kotlin-dsl-multiproject/ │ │ ├── backend/ │ │ │ ├── build.gradle.kts │ │ │ └── src/ │ │ │ └── main/ │ │ │ └── kotlin/ │ │ │ └── Test.kt │ │ ├── build.gradle.kts │ │ ├── diktat-analysis.yml │ │ ├── frontend/ │ │ │ ├── build.gradle.kts │ │ │ └── src/ │ │ │ └── main/ │ │ │ └── kotlin/ │ │ │ └── AnotherTest.kt │ │ └── settings.gradle.kts │ ├── maven/ │ │ ├── diktat-analysis.yml │ │ ├── pom.xml │ │ └── src/ │ │ └── main/ │ │ └── kotlin/ │ │ ├── AnotherTest.kt │ │ └── Test.kt │ └── maven-multiproject/ │ ├── backend/ │ │ ├── pom.xml │ │ └── src/ │ │ └── main/ │ │ └── kotlin/ │ │ └── Test.kt │ ├── diktat-analysis.yml │ ├── frontend/ │ │ ├── pom.xml │ │ └── src/ │ │ └── main/ │ │ └── kotlin/ │ │ └── AnotherTest.kt │ └── pom.xml ├── gradle/ │ ├── libs.versions.toml │ ├── plugins/ │ │ ├── build.gradle.kts │ │ ├── settings.gradle.kts │ │ └── src/ │ │ └── main/ │ │ └── kotlin/ │ │ ├── Versions.kt │ │ └── com/ │ │ └── saveourtool/ │ │ └── diktat/ │ │ └── buildutils/ │ │ ├── JacocoConfiguration.kt │ │ ├── PublishingConfiguration.kt │ │ ├── TaskNames.kt │ │ ├── VersioningConfiguration.kt │ │ ├── code-quality-convention.gradle.kts │ │ ├── detekt-convention-configuration.gradle.kts │ │ ├── diktat-convention-configuration.gradle.kts │ │ ├── git-hook-configuration.gradle.kts │ │ ├── kotlin-jvm-configuration.gradle.kts │ │ ├── publishing-configuration.gradle.kts │ │ ├── publishing-default-configuration.gradle.kts │ │ └── versioning-configuration.gradle.kts │ └── wrapper/ │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradle.properties ├── gradlew ├── gradlew.bat ├── info/ │ ├── README.md │ ├── available-rules.md │ ├── build.gradle.kts │ ├── buildSrc/ │ │ ├── build.gradle.kts │ │ ├── gradle.properties │ │ └── src/ │ │ └── main/ │ │ └── kotlin/ │ │ └── com/ │ │ └── saveourtool/ │ │ └── diktat/ │ │ └── generation/ │ │ └── docs/ │ │ ├── FullDocGenerator.kt │ │ ├── GenerationAvailableRules.kt │ │ ├── GenerationDocs.kt │ │ ├── LatexUtils.kt │ │ └── WarningsTableGenerator.kt │ ├── gradle/ │ │ └── wrapper/ │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties │ ├── gradlew │ ├── gradlew.bat │ ├── guide/ │ │ ├── diktat-coding-convention.md │ │ ├── guide-TOC.md │ │ ├── guide-chapter-0.md │ │ ├── guide-chapter-1.md │ │ ├── guide-chapter-2.md │ │ ├── guide-chapter-3.md │ │ ├── guide-chapter-4.md │ │ ├── guide-chapter-5.md │ │ ├── guide-chapter-6.md │ │ └── table-of-content.md │ └── rules-mapping.md ├── renovate.json ├── settings.gradle.kts └── wp/ ├── README.md ├── makefile ├── references.bib ├── sections/ │ ├── appendix.tex │ ├── compare.tex │ ├── conclusion.tex │ ├── definition.tex │ ├── diKTat.tex │ ├── download.tex │ ├── feature.tex │ ├── introduction.tex │ ├── kotlin.tex │ └── work.tex └── wp.tex