1 Star 0 Fork 20

Admin/ToolsFx

forked from Leon Lambert/ToolsFx 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
build.gradle.kts 922 Bytes
一键复制 编辑 原始数据 按行查看 历史
Leon Lambert 提交于 2022-09-21 13:36 . style: solve detekt issue
plugins {
kotlin("jvm") version "1.7.10"
// https://github.com/diffplug/spotless/blob/main/plugin-gradle/CHANGES.md
id("com.diffplug.spotless") version "6.11.0"
id("io.gitlab.arturbosch.detekt") version "1.22.0-RC1"
id("org.openjfx.javafxplugin") version "0.0.13"
}
apply(from = "${rootProject.projectDir}/config/Versions.gradle.kts")
subprojects {
apply(from = "${rootProject.projectDir}/config/codeQuality.gradle")
apply(plugin = "org.openjfx.javafxplugin")
apply(plugin = "org.jetbrains.kotlin.jvm")
dependencies {
detektPlugins("io.gitlab.arturbosch.detekt:detekt-formatting:1.22.0-RC1")
}
}
val hook = File("${rootProject.projectDir}/.git/hooks/pre-commit")
hook.writeBytes(
"""
#!/bin/bash
echo "run code format"
./gradlew spotlessCheck
echo "run code smell check"
./gradlew detekt
""".trimIndent().toByteArray()
)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Kotlin
1
https://gitee.com/juding-xdm/ToolsFx.git
git@gitee.com:juding-xdm/ToolsFx.git
juding-xdm
ToolsFx
ToolsFx
dev

搜索帮助