fix the lint and detekt that couldn't be auto-fixed

This commit is contained in:
Sammy Khamis 2023-05-22 12:44:56 -10:00
Родитель 588eef1bf4
Коммит 3bb6d3faa3
4 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -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,