Skip to content

Commit

Permalink
Migrate detekt config to use new property. Fixes:
Browse files Browse the repository at this point in the history
> Task :detekt-test:detektMain
Property 'style>ForbiddenComment>values' is deprecated. Use `comments` instead, make sure you escape your text for Regular Expressions..

History:
@requiresTypeResolution: detekt#3579 + 13a8389
@author: detekt#1776
  • Loading branch information
TWiStErRob committed May 19, 2023
1 parent 007d3b4 commit 4687325
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions config/detekt/detekt.yml
Expand Up @@ -169,12 +169,17 @@ style:
active: true
ForbiddenComment:
active: true
values:
- 'TODO:'
- 'FIXME:'
- 'STOPSHIP:'
- '@author'
- '@requiresTypeResolution'
comments:
- value: 'FIXME:'
reason: 'Some fixes are pending, please complete them.'
- value: 'STOPSHIP:'
reason: 'Some changes are present which need to be addressed before release.'
- value: 'TODO:'
reason: 'Some changes are pending, please complete them.'
- value: '@author'
reason: 'Authors are not recorded in KDoc.'
- value: '@requiresTypeResolution'
reason: 'Use @RequiresTypeResolution annotation on the class instead.'
excludes: ['**/detekt-rules-style/**/ForbiddenComment.kt']
ForbiddenImport:
active: true
Expand Down

0 comments on commit 4687325

Please sign in to comment.