Skip to content

Commit

Permalink
Add when-entry-bracing rule to release docs (#2847)
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-dingemans authored Oct 24, 2024
1 parent 6e7f104 commit 0ab3d25
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions documentation/release-latest/docs/rules/experimental.md
Original file line number Diff line number Diff line change
Expand Up @@ -341,20 +341,20 @@ This rule is not incorporated in the Kotlin Coding conventions, nor in the Andro
}
```
Rule id: `standard:when-entry-spacing`
Rule id: `standard:when-entry-bracing`
Suppress or disable rule (1)
{ .annotate }
1. Suppress rule in code with annotation below:
```kotlin
@Suppress("ktlint:standard:when-entry-spacing")
@Suppress("ktlint:standard:when-entry-bracing")
```
Enable rule via `.editorconfig`
```editorconfig
ktlint_standard_when-entry-spacing = enabled
ktlint_standard_when-entry-bracing = enabled
```
Disable rule via `.editorconfig`
```editorconfig
ktlint_standard_when-entry-spacing = disabled
ktlint_standard_when-entry-bracing = disabled
```

0 comments on commit 0ab3d25

Please sign in to comment.