Repository: cqfn/diKTat (kotlin)

Issue:
Diktat analysis test (RulesConfigYamlTest) isignored now
```
RulesConfigYamlTest 
```
is not working and not checking anything

Pull request description:
### What's done:
* fixed tests
Closes #1222

Patch:
diff --git a/diktat-analysis.yml b/diktat-analysis.yml
index 6e74a2b95c..bc63e062c6 100644
--- a/diktat-analysis.yml
+++ b/diktat-analysis.yml
@@ -512,4 +512,13 @@
 - name: CONVENTIONAL_RANGE
   enabled: true
   configuration:
-    isRangeToIgnore: false
\ No newline at end of file
+    isRangeToIgnore: false
+# Check that typealias name is in PascalCase
+- name: TYPEALIAS_NAME_INCORRECT_CASE
+  enabled: true
+# Should change property length - 1 to property lastIndex
+- name: USE_LAST_INDEX
+  enabled: true
+# Only properties from the primary constructor should be documented in a @property tag in class KDoc
+- name: KDOC_NO_CLASS_BODY_PROPERTIES_IN_HEADER
+  enabled: true
\ No newline at end of file
diff --git a/diktat-rules/src/main/resources/diktat-analysis-huawei.yml b/diktat-rules/src/main/resources/diktat-analysis-huawei.yml
index 0ec2835e11..b30567c09d 100644
--- a/diktat-rules/src/main/resources/diktat-analysis-huawei.yml
+++ b/diktat-rules/src/main/resources/diktat-analysis-huawei.yml
@@ -512,4 +512,13 @@
 - name: CONVENTIONAL_RANGE
   enabled: true
   configuration:
-    isRangeToIgnore: false
\ No newline at end of file
+    isRangeToIgnore: false
+# Check that typealias name is in PascalCase
+- name: TYPEALIAS_NAME_INCORRECT_CASE
+  enabled: true
+# Should change property length - 1 to property lastIndex
+- name: USE_LAST_INDEX
+  enabled: true
+# Only properties from the primary constructor should be documented in a @property tag in class KDoc
+- name: KDOC_NO_CLASS_BODY_PROPERTIES_IN_HEADER
+  enabled: true
\ No newline at end of file
diff --git a/diktat-rules/src/main/resources/diktat-analysis.yml b/diktat-rules/src/main/resources/diktat-analysis.yml
index 9118fea459..824ac650f0 100644
--- a/diktat-rules/src/main/resources/diktat-analysis.yml
+++ b/diktat-rules/src/main/resources/diktat-analysis.yml
@@ -508,4 +508,13 @@
 - name: CONVENTIONAL_RANGE
   enabled: true
   configuration:
-    isRangeToIgnore: false
\ No newline at end of file
+    isRangeToIgnore: false
+# Check that typealias name is in PascalCase
+- name: TYPEALIAS_NAME_INCORRECT_CASE
+  enabled: true
+# Should change property length - 1 to property lastIndex
+- name: USE_LAST_INDEX
+  enabled: true
+# Only properties from the primary constructor should be documented in a @property tag in class KDoc
+- name: KDOC_NO_CLASS_BODY_PROPERTIES_IN_HEADER
+  enabled: true
\ No newline at end of file


Test patch:
diff --git a/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/utils/RulesConfigYamlTest.kt b/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/utils/RulesConfigYamlTest.kt
index bae4d5049d..5be3a571ca 100644
--- a/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/utils/RulesConfigYamlTest.kt
+++ b/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/utils/RulesConfigYamlTest.kt
@@ -19,18 +19,19 @@ import kotlinx.serialization.encodeToString
  * Special test that checks that developer has not forgotten to add his warning to a diktat-analysis.yml
  * This file is needed to be in tact with latest changes in Warnings.kt
  */
-@JvmInline
 @Suppress("UNUSED")
-value class RulesConfigYamlTest(private val pathMap: Map<String, String> =
-        mapOf("diktat-analysis.yml" to "diKTat/diktat-rules/src/main/resources/diktat-analysis.yml",
-            "diktat-analysis-huawei.yml" to "diKTat/diktat-rules/src/main/resources/diktat-analysis-huawei.yml",
-            "parent/diktat-analysis.yml" to "diKTat/diktat-analysis.yml")) {
+class RulesConfigYamlTest {
+    private val parentDiktatAnalysis = "${System.getProperty("user.dir")}${File.separator}..${File.separator}diktat-analysis.yml${File.separator}"
+    private val pathMap: Map<String, String> =
+            mapOf("diktat-analysis.yml" to "diKTat/diktat-rules/src/main/resources/diktat-analysis.yml",
+                "diktat-analysis-huawei.yml" to "diKTat/diktat-rules/src/main/resources/diktat-analysis-huawei.yml",
+                parentDiktatAnalysis to "diKTat/diktat-analysis.yml")
+
     @Test
     fun `read rules config yml`() {
         compareRulesAndConfig("diktat-analysis.yml")
         compareRulesAndConfig("diktat-analysis-huawei.yml")
-        val thirdConfig = "${System.getProperty("user.dir")}${File.separator}..${File.separator}diktat-analysis.yml${File.separator}"
-        compareRulesAndConfig(thirdConfig, "../diktat-analysis.yml")
+        compareRulesAndConfig(parentDiktatAnalysis, "diKTat/diktat-analysis.yml")
     }
 
     @Test
@@ -43,14 +44,15 @@ value class RulesConfigYamlTest(private val pathMap: Map<String, String> =
     @Test
     @Suppress("UNUSED")
     fun `check kotlin version`() {
-        val currentKotlinVersion = KotlinVersion.CURRENT
+        val currentKotlinVersion = "${KotlinVersion.CURRENT.major}.${KotlinVersion.CURRENT.minor}"
         pathMap.keys.forEach { path ->
             val config = readAllRulesFromConfig(path)
             val ktVersion = config.find { it.name == DIKTAT_COMMON }
                 ?.configuration
                 ?.get("kotlinVersion")
                 ?.kotlinVersion()
-            Assertions.assertEquals(ktVersion, currentKotlinVersion)
+            val ktVersionNew = "${ktVersion?.major}.${ktVersion?.minor}"
+            Assertions.assertEquals(ktVersionNew, currentKotlinVersion)
         }
     }
 
@@ -78,6 +80,9 @@ value class RulesConfigYamlTest(private val pathMap: Map<String, String> =
         val allRulesFromCode = readAllRulesFromCode()
 
         allRulesFromCode.forEach { rule ->
+            if (rule == Warnings.DUMMY_TEST_WARNING) {
+                return@forEach
+            }
             val foundRule = allRulesFromConfig.getRuleConfig(rule)
             val ymlCodeSnippet = RulesConfig(rule.ruleName(), true, emptyMap())