saveourtool/diktat
Auf GitHub ansehenThe literals used to `@Suppress` Diktat checks should be configurable via `diktat-analysis.yml`
Open
#1.628 geöffnet am 16. März 2023
enhancementgood first issue
Repository-Metriken
- Stars
- (571 Stars)
- PR-Merge-Metriken
- (PR-Metriken ausstehend)
Beschreibung
The literals used to @Suppress Diktat checks should be configurable via diktat-analysis.yml, e.g.:
- name: MAGIC_NUMBER
aliases: [ MagicNumber ]
enabled: true
Then the following code should trigger no warnings:
@Suppress("MagicNumber")
fun f() {
g(42)
}
Environment information
- diktat version: 1.2.4.2
Related
- #1627
- #1530
@nulls, @petertrr, feel free to comment.