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
I seem to have found a very strange edge case in parameter-list-wrapper rule. It must be an edge case because it took a very long time to find a reasonably minimal reproduction case. Every time I changed something it did not trigger.
To illustrate, any of the following changes will avoid the false positive:
Renaming the property startDateTime to property
Renaming TestClassA to TestClass
Eliminating the line WORDS c.property = ${"interpolation".length}
The issue is ktlint triggers the rule and attempt to reformat the line
Observed Behavior
I seem to have found a very strange edge case in
parameter-list-wrapper
rule. It must be an edge case because it took a very long time to find a reasonably minimal reproduction case. Every time I changed something it did not trigger.To illustrate, any of the following changes will avoid the false positive:
startDateTime
toproperty
TestClassA
toTestClass
WORDS c.property = ${"interpolation".length}
The issue is ktlint triggers the rule and attempt to reformat the line
to
Expected Behavior
I should not encounter a false positive.
Steps to Reproduce
Your Environment
The text was updated successfully, but these errors were encountered: