Skip to content

Commit 3900084

Browse files
Mark operand-expression-wrapping rule as experimental (#3081)
Closes #3080
1 parent b4cc564 commit 3900084

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ktlint-ruleset-standard/api/ktlint-ruleset-standard.api

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ public final class com/pinterest/ktlint/ruleset/standard/rules/EnumWrappingRuleK
244244
public static final fun getENUM_WRAPPING_RULE_ID ()Lcom/pinterest/ktlint/rule/engine/core/api/RuleId;
245245
}
246246

247-
public final class com/pinterest/ktlint/ruleset/standard/rules/ExpressionOperandWrappingRule : com/pinterest/ktlint/ruleset/standard/StandardRule {
247+
public final class com/pinterest/ktlint/ruleset/standard/rules/ExpressionOperandWrappingRule : com/pinterest/ktlint/ruleset/standard/StandardRule, com/pinterest/ktlint/rule/engine/core/api/Rule$Experimental {
248248
public fun <init> ()V
249249
public fun beforeFirstNode (Lcom/pinterest/ktlint/rule/engine/core/api/editorconfig/EditorConfig;)V
250250
public fun beforeVisitChildNodes (Lorg/jetbrains/kotlin/com/intellij/lang/ASTNode;Lkotlin/jvm/functions/Function3;)V

ktlint-ruleset-standard/src/main/kotlin/com/pinterest/ktlint/ruleset/standard/rules/ExpressionOperandWrappingRule.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import com.pinterest.ktlint.rule.engine.core.api.ElementType.BINARY_EXPRESSION
66
import com.pinterest.ktlint.rule.engine.core.api.ElementType.EOL_COMMENT
77
import com.pinterest.ktlint.rule.engine.core.api.ElementType.OPERATION_REFERENCE
88
import com.pinterest.ktlint.rule.engine.core.api.IndentConfig
9+
import com.pinterest.ktlint.rule.engine.core.api.Rule
910
import com.pinterest.ktlint.rule.engine.core.api.RuleId
1011
import com.pinterest.ktlint.rule.engine.core.api.SinceKtlint
1112
import com.pinterest.ktlint.rule.engine.core.api.SinceKtlint.Status.EXPERIMENTAL
@@ -55,7 +56,8 @@ public class ExpressionOperandWrappingRule :
5556
INDENT_SIZE_PROPERTY,
5657
INDENT_STYLE_PROPERTY,
5758
),
58-
) {
59+
),
60+
Rule.Experimental {
5961
private var indentConfig = IndentConfig.DEFAULT_INDENT_CONFIG
6062

6163
override fun beforeFirstNode(editorConfig: EditorConfig) {

0 commit comments

Comments
 (0)