Skip to content

Commit

Permalink
chore: EXPOSED-573 Project detekt config does not check .kt or .kts i…
Browse files Browse the repository at this point in the history
…n docs (#2366)

* chore: EXPOSED-573 Project detekt config does not check .kt or .kts in docs

- Local detekt workflow does not check documentation files, whereas the GitHub
workflow checks them if they include changes.
- Add documentation source files to project detekt config, so that results match
on TC and when PR opened.
  • Loading branch information
bog-walk authored Jan 22, 2025
1 parent 576e1d5 commit 59ced13
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ fun Project.configureDetekt() {
apply<DetektPlugin>()

configure<DetektExtension> {
source.from(
files(
"$rootDir/documentation-website/Writerside/snippets",
"$rootDir/samples"
)
)

ignoreFailures = false
buildUponDefaultConfig = true
parallel = true
Expand Down

0 comments on commit 59ced13

Please sign in to comment.