Skip to content

Commit

Permalink
- Diktat and detekt issues
Browse files Browse the repository at this point in the history
  • Loading branch information
orchestr7 committed Dec 7, 2024
1 parent cbb5506 commit a239160
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ class DiktatProcessorFactoryImpl : DiktatProcessorFactory {
callback: LintCallback,
): String {
// this API method is significantly changed in Ktlint, so -werror was disabled due to it
@Suppress("Deprecation")

Check warning on line 87 in diktat-ktlint-engine/src/main/kotlin/com/saveourtool/diktat/ktlint/DiktatProcessorFactoryImpl.kt

View check run for this annotation

Codecov / codecov/patch

diktat-ktlint-engine/src/main/kotlin/com/saveourtool/diktat/ktlint/DiktatProcessorFactoryImpl.kt#L87

Added line #L87 was not covered by tests
val formatResult = format(code)
lint(
code = Code(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package com.saveourtool.diktat.ruleset.utils

import org.jetbrains.kotlin.KtNodeTypes.BLOCK
import org.jetbrains.kotlin.KtNodeTypes.IMPORT_LIST
import org.jetbrains.kotlin.cli.common.CLIConfigurationKeys
import org.jetbrains.kotlin.cli.common.environment.setIdeaIoUseFallback
import org.jetbrains.kotlin.cli.common.messages.MessageCollector
import org.jetbrains.kotlin.cli.jvm.compiler.EnvironmentConfigFiles
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.saveourtool.diktat.buildutils

import org.gradle.api.tasks.testing.Test
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
kotlin("jvm")
Expand Down

0 comments on commit a239160

Please sign in to comment.