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: