From bd1da1a9ed6a6911c1dd6f2052919a7b60f3a57b Mon Sep 17 00:00:00 2001 From: Jeremy Mailen Date: Fri, 23 Jul 2021 09:13:23 -0700 Subject: [PATCH] Clarify task exclude documentation (#213) Address #208. --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b30bb249..06e5a728 100644 --- a/README.md +++ b/README.md @@ -214,7 +214,7 @@ import org.jmailen.gradle.kotlinter.tasks.LintTask tasks { "lintKotlinMain"(LintTask::class) { - exclude("**/*Generated.kt") + exclude("com/example/**/generated/*.kt") } } ``` @@ -226,12 +226,14 @@ tasks { ```groovy lintKotlinMain { - exclude '**/*Generated.kt' + exclude 'com/example/**/generated/*.kt' } ``` +Note that exclude paths are relative to the package root. + ### Custom Tasks If you aren't using autoconfiguration from a supported plugin or otherwise need to handle additional source code, you can create custom tasks: