Skip to content

Commit

Permalink
Clarify task exclude documentation
Browse files Browse the repository at this point in the history
Address #208.
  • Loading branch information
jeremymailen committed Jul 23, 2021
1 parent 25b89d3 commit 94a1317
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ import org.jmailen.gradle.kotlinter.tasks.LintTask

tasks {
"lintKotlinMain"(LintTask::class) {
exclude("**/*Generated.kt")
exclude("com/example/**/generated/*.kt")
}
}
```
Expand All @@ -226,12 +226,14 @@ tasks {

```groovy
lintKotlinMain {
exclude '**/*Generated.kt'
exclude 'com/example/**/generated/*.kt'
}
```

</details>

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:
Expand Down

0 comments on commit 94a1317

Please sign in to comment.