Skip to content

Commit

Permalink
Make it work
Browse files Browse the repository at this point in the history
  • Loading branch information
BraisGabin committed May 8, 2024
1 parent 51c2da4 commit b4e7660
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions config/detekt/detekt.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
config:
validation: false

comments:
CommentOverPrivateProperty:
active: true
Expand Down Expand Up @@ -204,6 +207,18 @@ style:
#- value: 'org.junit.jupiter.api.assertTimeoutPreemptively'
- value: 'java.util.stream.*'
reason: "Use Kotlin's sequences instead."
ForbiddenImport/AtProductionCode:
active: true
imports:
- value: 'io.gitlab.arturbosch.detekt.api.Entity'
reason: 'Import Assertions.assertThat instead.'
excludes: ['**/test/**', '**/*Test.kt', '**/*Spec.kt']
ForbiddenImport/AtTestCode:
active: true
imports:
- value: 'io.gitlab.arturbosch.detekt.api.Entity'
reason: 'Import Assertions.assertThat instead.'
includes: ['**/test/**', '**/*Test.kt', '**/*Spec.kt']
ForbiddenMethodCall:
active: true
methods:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class LiteIssuesReport : AbstractIssuesReport() {
override fun render(issues: List<Issue>): String {
return buildString {
issues.forEach { issue ->
append("${issue.location.compact()}: ${issue.message} [${issue.ruleInstance.name}]")
append("${issue.location.compact()}: ${issue.message} [${issue.ruleInstance.id}]")
appendLine()
}
}
Expand Down

0 comments on commit b4e7660

Please sign in to comment.