You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documentation/snapshot/docs/rules/experimental.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ Also see [enable/disable specific rules](../configuration-ktlint/#disabled-rules
10
10
11
11
## Blank line between when-conditions
12
12
13
-
Consistently add or remove blank line between when-conditions in a when-statement. A blank line is only added between when-conditions if the when-statement contains at lease one multiline when-condition. If a when-statement only contains single line when-conditions, then the blank lines between the when-conditions are removed.
13
+
Consistently add or remove a blank line between when-conditions in a when-statement. A blank line is only added between when-conditions if the when-statement contains at lease one multiline when-condition. If a when-statement only contains single line when-conditions, then the blank lines between the when-conditions are removed.
14
14
15
15
!!! note
16
16
Ktlint uses `.editorconfig` property `ij_kotlin_line_break_after_multiline_when_entry` but applies it also on single line entries to increase consistency.
@@ -130,7 +130,7 @@ Suppress or disable rule (1)
130
130
KDoc's should only be used on elements for which KDoc is to be transformed to documentation. Normal block comments should be used in other cases.
131
131
132
132
!!! note:
133
-
Access modifiers are ignored. Strictly speaking, one could argue that private declarations should not have a KDoc as no documentation will be generated for it. However, for internal use of developers the KDoc still serves documentation purposes.
133
+
Access modifiers are ignored. Strictly speaking, one could argue that private declarations should not have a KDoc as no documentation will be generated for it. However, for internal use of developers, the KDoc still serves documentation purposes.
134
134
135
135
=== "[:material-heart:](#) Ktlint"
136
136
@@ -200,7 +200,7 @@ Suppress or disable rule (1)
200
200
201
201
## Mixed condition operators
202
202
203
-
Conditions should not use a both `&&` and `||` operators between operators at the same level. By using parenthesis the expression is to be clarified.
203
+
Conditions cannot use both `&&` and `||` operators between operators at the same level. By using parenthesis the expression is to be clarified.
204
204
205
205
=== "[:material-heart:](#) Ktlint"
206
206
@@ -237,7 +237,7 @@ Suppress or disable rule (1)
237
237
238
238
## Square brackets spacing
239
239
240
-
Check for spacing around square brackets.
240
+
Checks for spacing around square brackets.
241
241
242
242
=== "[:material-heart:](#) Ktlint"
243
243
@@ -287,7 +287,7 @@ Suppress or disable rule (1)
287
287
288
288
## When-entry bracing
289
289
290
-
Enforce consistent usages of braces inside the when-statement. All when-entries in the when-statement should use braces around their bodies in case at least one when-entry has a multiline body, or when the body is surrounded by braces.
290
+
Enforces consistent usages of braces inside the when-statement. All when-entries in the when-statement should use braces around their bodies in case at least one when-entry has a multiline body, or when the body is surrounded by braces.
0 commit comments