diff --git a/diktat-analysis.yml b/diktat-analysis.yml index ba68d8ddce..545067dfdd 100644 --- a/diktat-analysis.yml +++ b/diktat-analysis.yml @@ -7,7 +7,7 @@ # testDirs: test disabledChapters: "" testDirs: test - kotlinVersion: "1.4.21" + kotlinVersion: 1.4.30 # Checks that the Class/Enum/Interface name does not match Pascal case - name: CLASS_NAME_INCORRECT enabled: true diff --git a/diktat-common/src/test/kotlin/org/cqfn/diktat/test/ConfigReaderTest.kt b/diktat-common/src/test/kotlin/org/cqfn/diktat/test/ConfigReaderTest.kt index b1b624a80e..4c0678fe65 100644 --- a/diktat-common/src/test/kotlin/org/cqfn/diktat/test/ConfigReaderTest.kt +++ b/diktat-common/src/test/kotlin/org/cqfn/diktat/test/ConfigReaderTest.kt @@ -23,12 +23,12 @@ class ConfigReaderTest { fun `testing kotlin version`() { val rulesConfigList: List? = RulesConfigReader(javaClass.classLoader) .readResource("src/test/resources/test-rules-config.yml") - val currentKotlinVersion = KotlinVersion.CURRENT + val kotlinVersionForTest = KotlinVersion(1, 4, 21) requireNotNull(rulesConfigList) - assert(rulesConfigList.getCommonConfiguration().value.kotlinVersion == currentKotlinVersion) + assert(rulesConfigList.getCommonConfiguration().value.kotlinVersion == kotlinVersionForTest) assert(rulesConfigList.find { it.name == DIKTAT_COMMON } ?.configuration ?.get("kotlinVersion") - ?.kotlinVersion() == currentKotlinVersion) + ?.kotlinVersion() == kotlinVersionForTest) } } diff --git a/diktat-gradle-plugin/build.gradle.kts b/diktat-gradle-plugin/build.gradle.kts index 467346ebb4..daa17dcf97 100644 --- a/diktat-gradle-plugin/build.gradle.kts +++ b/diktat-gradle-plugin/build.gradle.kts @@ -3,7 +3,7 @@ import org.gradle.nativeplatform.platform.internal.DefaultNativePlatform.getCurr plugins { `java-gradle-plugin` - kotlin("jvm") version "1.4.21" + kotlin("jvm") version "1.4.30" jacoco id("pl.droidsonroids.jacoco.testkit") version "1.0.7" } diff --git a/diktat-rules/src/main/resources/diktat-analysis-huawei.yml b/diktat-rules/src/main/resources/diktat-analysis-huawei.yml index 05e66815f2..841f5620ac 100644 --- a/diktat-rules/src/main/resources/diktat-analysis-huawei.yml +++ b/diktat-rules/src/main/resources/diktat-analysis-huawei.yml @@ -7,7 +7,7 @@ # testDirs: test disabledChapters: "" testDirs: test - kotlinVersion: "1.4.21" + kotlinVersion: 1.4.30 # Checks that the Class/Enum/Interface name does not match Pascal case - name: CLASS_NAME_INCORRECT enabled: true diff --git a/diktat-rules/src/main/resources/diktat-analysis.yml b/diktat-rules/src/main/resources/diktat-analysis.yml index 5c0ec14ca9..03be9196b8 100644 --- a/diktat-rules/src/main/resources/diktat-analysis.yml +++ b/diktat-rules/src/main/resources/diktat-analysis.yml @@ -5,7 +5,7 @@ domainName: your.name.here testDirs: test disabledChapters: "" - kotlinVersion: "1.4.21" + kotlinVersion: 1.4 # Checks that the Class/Enum/Interface name does not match Pascal case - name: CLASS_NAME_INCORRECT enabled: true diff --git a/pom.xml b/pom.xml index 2a7357d146..e053dfbbd4 100644 --- a/pom.xml +++ b/pom.xml @@ -42,7 +42,7 @@ 1.8 1.8 UTF-8 - 1.4.21 + 1.4.30 true 1.0.1 0.39.0