4
0
Fork 0
mirror of https://github.com/Anvilcraft/modpacktools synced 2024-05-19 11:54:20 +02:00

add preCommit task with test and lint check

This commit is contained in:
LordMZTE 2020-08-12 12:57:22 +02:00
parent be22304295
commit 5b29bfe3f4

View file

@ -128,3 +128,14 @@ ktlint {
)
)
}
//RUN THIS BEFORE COMMITTING! (i recommend adding a git pre-commit hook for this)
tasks.register("preCommit") {
group = "verification"
description = "runs the linter and tests"
dependsOn(
"ktlintCheck",
"test"
)
}