diff --git a/diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/DiktatRuleSetProvider.kt b/diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/DiktatRuleSetProvider.kt index a58e6898d8..8f7e7dee7e 100644 --- a/diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/DiktatRuleSetProvider.kt +++ b/diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/DiktatRuleSetProvider.kt @@ -7,6 +7,12 @@ import org.cqfn.diktat.ruleset.constants.Warnings import org.cqfn.diktat.ruleset.rules.chapter1.FileNaming import org.cqfn.diktat.ruleset.rules.chapter1.IdentifierNaming import org.cqfn.diktat.ruleset.rules.chapter1.PackageNaming +import org.cqfn.diktat.ruleset.rules.chapter2.comments.CommentsRule +import org.cqfn.diktat.ruleset.rules.chapter2.comments.HeaderCommentRule +import org.cqfn.diktat.ruleset.rules.chapter2.kdoc.CommentsFormatting +import org.cqfn.diktat.ruleset.rules.chapter2.kdoc.KdocComments +import org.cqfn.diktat.ruleset.rules.chapter2.kdoc.KdocFormatting +import org.cqfn.diktat.ruleset.rules.chapter2.kdoc.KdocMethods import org.cqfn.diktat.ruleset.rules.chapter3.AnnotationNewLineRule import org.cqfn.diktat.ruleset.rules.chapter3.BlockStructureBraces import org.cqfn.diktat.ruleset.rules.chapter3.BracesInConditionalsAndLoopsRule @@ -23,11 +29,19 @@ import org.cqfn.diktat.ruleset.rules.chapter3.SortRule import org.cqfn.diktat.ruleset.rules.chapter3.StringConcatenationRule import org.cqfn.diktat.ruleset.rules.chapter3.StringTemplateFormatRule import org.cqfn.diktat.ruleset.rules.chapter3.WhenMustHaveElseRule +import org.cqfn.diktat.ruleset.rules.chapter3.files.BlankLinesRule +import org.cqfn.diktat.ruleset.rules.chapter3.files.FileSize +import org.cqfn.diktat.ruleset.rules.chapter3.files.FileStructureRule +import org.cqfn.diktat.ruleset.rules.chapter3.files.IndentationRule +import org.cqfn.diktat.ruleset.rules.chapter3.files.NewlinesRule +import org.cqfn.diktat.ruleset.rules.chapter3.files.WhiteSpaceRule +import org.cqfn.diktat.ruleset.rules.chapter3.identifiers.LocalVariablesRule import org.cqfn.diktat.ruleset.rules.chapter4.ImmutableValNoVarRule import org.cqfn.diktat.ruleset.rules.chapter4.NullChecksRule import org.cqfn.diktat.ruleset.rules.chapter4.SmartCastRule import org.cqfn.diktat.ruleset.rules.chapter4.TypeAliasRule import org.cqfn.diktat.ruleset.rules.chapter4.VariableGenericTypeDeclarationRule +import org.cqfn.diktat.ruleset.rules.chapter4.calculations.AccurateCalculationsRule import org.cqfn.diktat.ruleset.rules.chapter5.AsyncAndSyncRule import org.cqfn.diktat.ruleset.rules.chapter5.AvoidNestedFunctionsRule import org.cqfn.diktat.ruleset.rules.chapter5.CheckInverseMethodRule @@ -46,26 +60,12 @@ import org.cqfn.diktat.ruleset.rules.chapter6.ImplicitBackingPropertyRule import org.cqfn.diktat.ruleset.rules.chapter6.PropertyAccessorFields import org.cqfn.diktat.ruleset.rules.chapter6.TrivialPropertyAccessors import org.cqfn.diktat.ruleset.rules.chapter6.UselessSupertype -import org.cqfn.diktat.ruleset.rules.chapter4.calculations.AccurateCalculationsRule import org.cqfn.diktat.ruleset.rules.chapter6.classes.AbstractClassesRule import org.cqfn.diktat.ruleset.rules.chapter6.classes.CompactInitialization import org.cqfn.diktat.ruleset.rules.chapter6.classes.DataClassesRule import org.cqfn.diktat.ruleset.rules.chapter6.classes.SingleConstructorRule import org.cqfn.diktat.ruleset.rules.chapter6.classes.SingleInitRule import org.cqfn.diktat.ruleset.rules.chapter6.classes.StatelessClassesRule -import org.cqfn.diktat.ruleset.rules.chapter2.comments.CommentsRule -import org.cqfn.diktat.ruleset.rules.chapter2.comments.HeaderCommentRule -import org.cqfn.diktat.ruleset.rules.chapter3.files.BlankLinesRule -import org.cqfn.diktat.ruleset.rules.chapter3.files.FileSize -import org.cqfn.diktat.ruleset.rules.chapter3.files.FileStructureRule -import org.cqfn.diktat.ruleset.rules.chapter3.files.IndentationRule -import org.cqfn.diktat.ruleset.rules.chapter3.files.NewlinesRule -import org.cqfn.diktat.ruleset.rules.chapter3.files.WhiteSpaceRule -import org.cqfn.diktat.ruleset.rules.chapter3.identifiers.LocalVariablesRule -import org.cqfn.diktat.ruleset.rules.chapter2.kdoc.CommentsFormatting -import org.cqfn.diktat.ruleset.rules.chapter2.kdoc.KdocComments -import org.cqfn.diktat.ruleset.rules.chapter2.kdoc.KdocFormatting -import org.cqfn.diktat.ruleset.rules.chapter2.kdoc.KdocMethods import com.pinterest.ktlint.core.RuleSet import com.pinterest.ktlint.core.RuleSetProvider diff --git a/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter3/AnnotationNewLineRuleWarnTest.kt b/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter3/AnnotationNewLineRuleWarnTest.kt index ac06770c59..f281956031 100644 --- a/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter3/AnnotationNewLineRuleWarnTest.kt +++ b/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter3/AnnotationNewLineRuleWarnTest.kt @@ -1,8 +1,8 @@ package org.cqfn.diktat.ruleset.chapter3 import org.cqfn.diktat.ruleset.constants.Warnings -import org.cqfn.diktat.ruleset.rules.chapter3.AnnotationNewLineRule import org.cqfn.diktat.ruleset.rules.DIKTAT_RULE_SET_ID +import org.cqfn.diktat.ruleset.rules.chapter3.AnnotationNewLineRule import org.cqfn.diktat.util.LintTestBase import com.pinterest.ktlint.core.LintError diff --git a/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter3/BlockStructureBracesWarnTest.kt b/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter3/BlockStructureBracesWarnTest.kt index 558416bc52..6fbcb92a84 100644 --- a/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter3/BlockStructureBracesWarnTest.kt +++ b/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter3/BlockStructureBracesWarnTest.kt @@ -2,8 +2,8 @@ package org.cqfn.diktat.ruleset.chapter3 import org.cqfn.diktat.common.config.rules.RulesConfig import org.cqfn.diktat.ruleset.constants.Warnings.BRACES_BLOCK_STRUCTURE_ERROR -import org.cqfn.diktat.ruleset.rules.chapter3.BlockStructureBraces import org.cqfn.diktat.ruleset.rules.DIKTAT_RULE_SET_ID +import org.cqfn.diktat.ruleset.rules.chapter3.BlockStructureBraces import org.cqfn.diktat.util.LintTestBase import com.pinterest.ktlint.core.LintError diff --git a/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter3/BracesRuleWarnTest.kt b/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter3/BracesRuleWarnTest.kt index c58cf5dee6..5c6106d105 100644 --- a/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter3/BracesRuleWarnTest.kt +++ b/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter3/BracesRuleWarnTest.kt @@ -1,8 +1,8 @@ package org.cqfn.diktat.ruleset.chapter3 import org.cqfn.diktat.ruleset.constants.Warnings.NO_BRACES_IN_CONDITIONALS_AND_LOOPS -import org.cqfn.diktat.ruleset.rules.chapter3.BracesInConditionalsAndLoopsRule import org.cqfn.diktat.ruleset.rules.DIKTAT_RULE_SET_ID +import org.cqfn.diktat.ruleset.rules.chapter3.BracesInConditionalsAndLoopsRule import org.cqfn.diktat.util.LintTestBase import com.pinterest.ktlint.core.LintError diff --git a/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter3/ClassLikeStructuresOrderRuleWarnTest.kt b/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter3/ClassLikeStructuresOrderRuleWarnTest.kt index 51b2e870f3..ef3bae9674 100644 --- a/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter3/ClassLikeStructuresOrderRuleWarnTest.kt +++ b/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter3/ClassLikeStructuresOrderRuleWarnTest.kt @@ -2,8 +2,8 @@ package org.cqfn.diktat.ruleset.chapter3 import org.cqfn.diktat.ruleset.constants.Warnings.BLANK_LINE_BETWEEN_PROPERTIES import org.cqfn.diktat.ruleset.constants.Warnings.WRONG_ORDER_IN_CLASS_LIKE_STRUCTURES -import org.cqfn.diktat.ruleset.rules.chapter3.ClassLikeStructuresOrderRule import org.cqfn.diktat.ruleset.rules.DIKTAT_RULE_SET_ID +import org.cqfn.diktat.ruleset.rules.chapter3.ClassLikeStructuresOrderRule import org.cqfn.diktat.util.LintTestBase import com.pinterest.ktlint.core.LintError diff --git a/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter3/ConsecutiveSpacesRuleWarnTest.kt b/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter3/ConsecutiveSpacesRuleWarnTest.kt index 844bdcf0ff..acb8afc14e 100644 --- a/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter3/ConsecutiveSpacesRuleWarnTest.kt +++ b/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter3/ConsecutiveSpacesRuleWarnTest.kt @@ -2,8 +2,8 @@ package org.cqfn.diktat.ruleset.chapter3 import org.cqfn.diktat.common.config.rules.RulesConfig import org.cqfn.diktat.ruleset.constants.Warnings.TOO_MANY_CONSECUTIVE_SPACES -import org.cqfn.diktat.ruleset.rules.chapter3.ConsecutiveSpacesRule import org.cqfn.diktat.ruleset.rules.DIKTAT_RULE_SET_ID +import org.cqfn.diktat.ruleset.rules.chapter3.ConsecutiveSpacesRule import org.cqfn.diktat.util.LintTestBase import com.pinterest.ktlint.core.LintError diff --git a/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter5/AsyncAndSyncRuleTest.kt b/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter5/AsyncAndSyncRuleTest.kt index 801482347d..afba174399 100644 --- a/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter5/AsyncAndSyncRuleTest.kt +++ b/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter5/AsyncAndSyncRuleTest.kt @@ -1,8 +1,8 @@ package org.cqfn.diktat.ruleset.chapter5 import org.cqfn.diktat.ruleset.constants.Warnings.RUN_BLOCKING_INSIDE_ASYNC -import org.cqfn.diktat.ruleset.rules.chapter5.AsyncAndSyncRule import org.cqfn.diktat.ruleset.rules.DIKTAT_RULE_SET_ID +import org.cqfn.diktat.ruleset.rules.chapter5.AsyncAndSyncRule import org.cqfn.diktat.util.LintTestBase import com.pinterest.ktlint.core.LintError diff --git a/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter5/AvoidNestedFunctionsWarnTest.kt b/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter5/AvoidNestedFunctionsWarnTest.kt index af733af19a..7f7893ee17 100644 --- a/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter5/AvoidNestedFunctionsWarnTest.kt +++ b/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter5/AvoidNestedFunctionsWarnTest.kt @@ -1,8 +1,8 @@ package org.cqfn.diktat.ruleset.chapter5 import org.cqfn.diktat.ruleset.constants.Warnings -import org.cqfn.diktat.ruleset.rules.chapter5.AvoidNestedFunctionsRule import org.cqfn.diktat.ruleset.rules.DIKTAT_RULE_SET_ID +import org.cqfn.diktat.ruleset.rules.chapter5.AvoidNestedFunctionsRule import org.cqfn.diktat.util.LintTestBase import com.pinterest.ktlint.core.LintError diff --git a/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter5/CheckInverseMethodRuleWarnTest.kt b/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter5/CheckInverseMethodRuleWarnTest.kt index febd324311..04b3d97595 100644 --- a/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter5/CheckInverseMethodRuleWarnTest.kt +++ b/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter5/CheckInverseMethodRuleWarnTest.kt @@ -1,8 +1,8 @@ package org.cqfn.diktat.ruleset.chapter5 import org.cqfn.diktat.ruleset.constants.Warnings -import org.cqfn.diktat.ruleset.rules.chapter5.CheckInverseMethodRule import org.cqfn.diktat.ruleset.rules.DIKTAT_RULE_SET_ID +import org.cqfn.diktat.ruleset.rules.chapter5.CheckInverseMethodRule import org.cqfn.diktat.util.LintTestBase import com.pinterest.ktlint.core.LintError diff --git a/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter5/CustomLabelsTest.kt b/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter5/CustomLabelsTest.kt index 56e24889f6..bbafb353af 100644 --- a/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter5/CustomLabelsTest.kt +++ b/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter5/CustomLabelsTest.kt @@ -1,8 +1,8 @@ package org.cqfn.diktat.ruleset.chapter5 import org.cqfn.diktat.ruleset.constants.Warnings.CUSTOM_LABEL -import org.cqfn.diktat.ruleset.rules.chapter5.CustomLabel import org.cqfn.diktat.ruleset.rules.DIKTAT_RULE_SET_ID +import org.cqfn.diktat.ruleset.rules.chapter5.CustomLabel import org.cqfn.diktat.util.LintTestBase import com.pinterest.ktlint.core.LintError diff --git a/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter6/AvoidUtilityClassWarnTest.kt b/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter6/AvoidUtilityClassWarnTest.kt index b18ece73ae..1d0f38ce2d 100644 --- a/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter6/AvoidUtilityClassWarnTest.kt +++ b/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter6/AvoidUtilityClassWarnTest.kt @@ -1,8 +1,8 @@ package org.cqfn.diktat.ruleset.chapter6 import org.cqfn.diktat.ruleset.constants.Warnings.AVOID_USING_UTILITY_CLASS -import org.cqfn.diktat.ruleset.rules.chapter6.AvoidUtilityClass import org.cqfn.diktat.ruleset.rules.DIKTAT_RULE_SET_ID +import org.cqfn.diktat.ruleset.rules.chapter6.AvoidUtilityClass import org.cqfn.diktat.util.LintTestBase import com.pinterest.ktlint.core.LintError diff --git a/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter6/CustomGetterSetterWarnTest.kt b/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter6/CustomGetterSetterWarnTest.kt index 8650136944..a2e0466744 100644 --- a/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter6/CustomGetterSetterWarnTest.kt +++ b/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter6/CustomGetterSetterWarnTest.kt @@ -1,8 +1,8 @@ package org.cqfn.diktat.ruleset.chapter6 import org.cqfn.diktat.ruleset.constants.Warnings -import org.cqfn.diktat.ruleset.rules.chapter6.CustomGetterSetterRule import org.cqfn.diktat.ruleset.rules.DIKTAT_RULE_SET_ID +import org.cqfn.diktat.ruleset.rules.chapter6.CustomGetterSetterRule import org.cqfn.diktat.util.LintTestBase import com.pinterest.ktlint.core.LintError diff --git a/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter6/EmptyPrimaryConstructorWarnTest.kt b/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter6/EmptyPrimaryConstructorWarnTest.kt index 11b78d74e6..59b3bee96a 100644 --- a/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter6/EmptyPrimaryConstructorWarnTest.kt +++ b/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter6/EmptyPrimaryConstructorWarnTest.kt @@ -1,8 +1,8 @@ package org.cqfn.diktat.ruleset.chapter6 import org.cqfn.diktat.ruleset.constants.Warnings.EMPTY_PRIMARY_CONSTRUCTOR -import org.cqfn.diktat.ruleset.rules.chapter6.AvoidEmptyPrimaryConstructor import org.cqfn.diktat.ruleset.rules.DIKTAT_RULE_SET_ID +import org.cqfn.diktat.ruleset.rules.chapter6.AvoidEmptyPrimaryConstructor import org.cqfn.diktat.util.LintTestBase import com.pinterest.ktlint.core.LintError