From 6e1f876c1f58392a02403f36ae89ace08c4791bb Mon Sep 17 00:00:00 2001 From: Nariman Abdullin Date: Tue, 28 Jun 2022 19:03:52 +0300 Subject: [PATCH] fixed review notes --- .../src/main/kotlin/org/cqfn/diktat/ruleset/utils/PsiUtils.kt | 1 - .../diktat/ruleset/chapter3/spaces/IndentationRuleFixTest.kt | 3 --- .../diktat/ruleset/chapter3/spaces/IndentationRuleWarnTest.kt | 2 -- 3 files changed, 6 deletions(-) diff --git a/diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/utils/PsiUtils.kt b/diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/utils/PsiUtils.kt index 9c2a3eaf40..71bb91331f 100644 --- a/diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/utils/PsiUtils.kt +++ b/diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/utils/PsiUtils.kt @@ -47,7 +47,6 @@ fun KtExpression.containsOnlyConstants(): Boolean = * Here we assume that property can be declared only in block, since declaration is not an expression in kotlin * and compiler prohibits things like `if (condition) val x = 0`. */ -@Suppress("UnsafeCallOnNullableType") fun KtProperty.getDeclarationScope() = // FixMe: class body is missing here getParentOfType(true) diff --git a/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter3/spaces/IndentationRuleFixTest.kt b/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter3/spaces/IndentationRuleFixTest.kt index 150a183119..671b12d262 100644 --- a/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter3/spaces/IndentationRuleFixTest.kt +++ b/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter3/spaces/IndentationRuleFixTest.kt @@ -117,7 +117,6 @@ class IndentationRuleFixTest : FixTestBase("test/paragraph3/indentation", /** * See [#1330](https://github.com/saveourtool/diktat/issues/1330). */ - @Suppress("BACKTICKS_PROHIBITED") @Nested @TestMethodOrder(DisplayName::class) inner class `Expression body functions` { @@ -166,7 +165,6 @@ class IndentationRuleFixTest : FixTestBase("test/paragraph3/indentation", /** * See [#1347](https://github.com/saveourtool/diktat/issues/1347). */ - @Suppress("BACKTICKS_PROHIBITED") @Nested @TestMethodOrder(DisplayName::class) inner class `Multi-line string literals` { @@ -215,7 +213,6 @@ class IndentationRuleFixTest : FixTestBase("test/paragraph3/indentation", /** * See [#1340](https://github.com/saveourtool/diktat/issues/1340). */ - @Suppress("BACKTICKS_PROHIBITED") @Nested @TestMethodOrder(DisplayName::class) inner class `Expressions wrapped after operator` { diff --git a/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter3/spaces/IndentationRuleWarnTest.kt b/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter3/spaces/IndentationRuleWarnTest.kt index 2f35e99bd0..9885a29254 100644 --- a/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter3/spaces/IndentationRuleWarnTest.kt +++ b/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter3/spaces/IndentationRuleWarnTest.kt @@ -815,7 +815,6 @@ class IndentationRuleWarnTest : LintTestBase(::IndentationRule) { /** * See [#1330](https://github.com/saveourtool/diktat/issues/1330). */ - @Suppress("BACKTICKS_PROHIBITED") @Nested @TestMethodOrder(DisplayName::class) inner class `Expression body functions` { @@ -868,7 +867,6 @@ class IndentationRuleWarnTest : LintTestBase(::IndentationRule) { /** * See [#1340](https://github.com/saveourtool/diktat/issues/1340). */ - @Suppress("BACKTICKS_PROHIBITED") @Nested @TestMethodOrder(DisplayName::class) inner class `Expressions wrapped after operator` {