diff --git a/build.gradle.kts b/build.gradle.kts index e7222fe..9bba177 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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" + ) +}