fix the lint and detekt that couldn't be auto-fixed
This commit is contained in:
Родитель
588eef1bf4
Коммит
3bb6d3faa3
|
@ -317,7 +317,7 @@ tasks.register("ktlint", JavaExec) {
|
|||
description = "Check Kotlin code style."
|
||||
classpath = configurations.ktlint
|
||||
main = "com.pinterest.ktlint.Main"
|
||||
args "${projectDir}/components/**/*.kt", "${projectDir}/gradle-plugin/**/*.kt", "buildSrc/**/*.kt", "!**/build", "!**/templates", "!components/external", "!**/generated/**"
|
||||
args "${projectDir}/components/**/*.kt", "${projectDir}/gradle-plugin/**/*.kt", "buildSrc/**/*.kt", "!**/build", "!**/templates/**", "!components/external", "!**/generated/**"
|
||||
}
|
||||
|
||||
tasks.register("ktlintFormat", JavaExec) {
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// ktlint-disable filename
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// ktlint-disable filename
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
|
|
@ -249,6 +249,7 @@ class FeatureVariablesTest {
|
|||
}
|
||||
}
|
||||
|
||||
// ktlint-disable enum-entry-name-case
|
||||
@Suppress("EnumNaming")
|
||||
enum class MenuItemId {
|
||||
settings,
|
||||
|
@ -259,6 +260,7 @@ enum class MenuItemId {
|
|||
|
||||
data class MenuItem(val deepLink: String, val label: String)
|
||||
|
||||
// ktlint-disable enum-entry-name-case
|
||||
@Suppress("EnumNaming")
|
||||
enum class NumKey {
|
||||
one,
|
||||
|
|
Загрузка…
Ссылка в новой задаче