Skip to content

Commit

Permalink
Detekt 1.16.0
Browse files Browse the repository at this point in the history
### What's done:
* Code style
  • Loading branch information
petertrr committed Mar 15, 2021
1 parent b5e2f05 commit 32c3c5f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import java.util.concurrent.atomic.AtomicInteger

import kotlinx.serialization.Serializable
import kotlinx.serialization.decodeFromString
import java.util.Locale

const val DIKTAT_COMMON = "DIKTAT_COMMON"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,10 @@ class DiktatRuleSetProvider(private var diktatConfigFile: String = DIKTAT_ANALYS
it?.takeIf { File(it).exists() }
}

@Suppress("LongMethod", "TOO_LONG_FUNCTION", "SpreadOperator")
@Suppress(
"LongMethod",
"TOO_LONG_FUNCTION",
"SpreadOperator")
override fun get(): RuleSet {
log.debug("Will run $DIKTAT_RULE_SET_ID with $diktatConfigFile" +
" (it can be placed to the run directory or the default file from resources will be used)")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,10 @@ class FileStructureRule(configRules: List<RulesConfig>) : DiktatRule(
return hasCode
}

@Suppress("ComplexMethod", "TOO_LONG_FUNCTION", "SpreadOperator")
@Suppress(
"ComplexMethod",
"TOO_LONG_FUNCTION",
"SpreadOperator")
private fun checkCodeBlocksOrderAndEmptyLines(node: ASTNode) {
// From KtFile.kt: 'scripts have no package directive, all other files must have package directives'.
// Kotlin compiler itself enforces it's position in the file if it is present.
Expand Down

0 comments on commit 32c3c5f

Please sign in to comment.