Skip to content

Commit

Permalink
added suppressing
Browse files Browse the repository at this point in the history
  • Loading branch information
nulls committed Oct 31, 2022
1 parent 80c4054 commit 64b10f9
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package org.cqfn.diktat.test.framework.common

import org.cqfn.diktat.common.utils.loggerWithKtlintConfig
import mu.KLogger
import mu.KotlinLogging

import java.io.IOException
Expand Down Expand Up @@ -34,6 +33,7 @@ class LocalCommandExecutor internal constructor(private val command: String) {
}

companion object {
private val log: KLogger = KotlinLogging.loggerWithKtlintConfig {}
@Suppress("EMPTY_BLOCK_STRUCTURE_ERROR")
private val log = KotlinLogging.loggerWithKtlintConfig {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ class TestArgumentsReader(
}

companion object {
@Suppress("EMPTY_BLOCK_STRUCTURE_ERROR")
private val log = KotlinLogging.loggerWithKtlintConfig {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ class FileComparator(
}

companion object {
@Suppress("EMPTY_BLOCK_STRUCTURE_ERROR")
private val log = KotlinLogging.loggerWithKtlintConfig {}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ import mu.KotlinLogging
* [TestCompare] that uses stderr as tests output stream
*/
class TestCheckWarn : TestCompare() {
@Suppress("MISSING_KDOC_CLASS_ELEMENTS") override val log: KLogger = KotlinLogging.loggerWithKtlintConfig {}
@Suppress("EMPTY_BLOCK_STRUCTURE_ERROR", "MISSING_KDOC_CLASS_ELEMENTS")
override val log: KLogger = KotlinLogging.loggerWithKtlintConfig {}

@Suppress(
"UnusedPrivateMember",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package org.cqfn.diktat.test.framework.processing

import org.cqfn.diktat.common.utils.loggerWithKtlintConfig
import mu.KLogger
import mu.KotlinLogging
import java.io.IOException
import java.nio.file.Path
Expand Down Expand Up @@ -115,7 +114,8 @@ class TestComparatorUnit(
}

private companion object {
private val log: KLogger = KotlinLogging.loggerWithKtlintConfig {}
@Suppress("EMPTY_BLOCK_STRUCTURE_ERROR")
private val log = KotlinLogging.loggerWithKtlintConfig {}

/**
* @param file the file whose content is to be read.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ import java.io.File
*/
@Suppress("ForbiddenComment")
open class TestCompare : TestBase {
@Suppress("MISSING_KDOC_CLASS_ELEMENTS") protected open val log: KLogger = KotlinLogging.loggerWithKtlintConfig {}
@Suppress("EMPTY_BLOCK_STRUCTURE_ERROR", "MISSING_KDOC_CLASS_ELEMENTS")
protected open val log: KLogger = KotlinLogging.loggerWithKtlintConfig {}
private lateinit var expectedResult: File

// testResultFile will be used if and only if --in-place option will be used
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ class TestProcessingFactory(private val argReader: TestArgumentsReader) {
}

companion object {
@Suppress("EMPTY_BLOCK_STRUCTURE_ERROR")
private val log = KotlinLogging.loggerWithKtlintConfig {}
private const val STATUS_FIVE = 5
private const val STATUS_THREE = 3
Expand Down

0 comments on commit 64b10f9

Please sign in to comment.