1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/ts_ohos-magnet_hos

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
ktlint.gradle 770
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
Sergej Shafarenka Отправлено 02.12.2019 22:57 f01e299
configurations {
ktlint
}
dependencies {
ktlint 'com.pinterest:ktlint:0.35.0'
}
def reportsDir = "$buildDir/reports/ktlint"
tasks.register("ktlint", JavaExec) {
group = "Verification"
description = "Checks Kotlin code style."
classpath = configurations.ktlint
main = "com.pinterest.ktlint.Main"
args = [
"--reporter=plain,output=$reportsDir/klint.txt",
"--reporter=checkstyle,output=$reportsDir/klint.xml",
"src/**/*.kt"
]
}
check.configure { dependsOn ktlint }
tasks.register("ktlintFormat", JavaExec) {
group = "Verification"
description = "Fix Kotlin code style deviations."
classpath = configurations.ktlint
main = "com.pinterest.ktlint.Main"
args = ["-F", "src/**/*.kt"]
}

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/ts_ohos-magnet_hos.git
git@api.gitlife.ru:oschina-mirror/ts_ohos-magnet_hos.git
oschina-mirror
ts_ohos-magnet_hos
ts_ohos-magnet_hos
master