Skip to content

Commit

Permalink
Update pre-commit configurations to not run pre-commit hooks on gener…
Browse files Browse the repository at this point in the history
…ated code

Co-authored-by: Filipe Pereira <[email protected]>
  • Loading branch information
macisamuele and filipemp committed Jan 25, 2020
1 parent 89906bc commit e835456
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ repos:
hooks:
- id: detect-secrets
args: [--baseline, .secrets.baseline]

# Do NOT run pre-commit hooks on generated-code
exclude: ^samples/[^/]+/src/main/java
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,4 @@ class CoroutineDispatcherRule : ExternalResource() {

fun runBlockingTest(block: suspend CoroutineScope.() -> Unit) =
runBlocking(Dispatchers.Main, block)

}

0 comments on commit e835456

Please sign in to comment.