Binary operators in !(...)
not checked for missing horizontal whitespace
#2652
Milestone
!(...)
not checked for missing horizontal whitespace
#2652
Expected Behavior
Given this code:
It should be a lint violation, and formatted to the following to match what IntelliJ does:
Kotlin Coding Conventions: Horizontal whitespace
This rule currently seems to be implemented in SpacingAroundOperatorsRule.
Observed Behavior
No error is thrown during check and it is not formatted.
However, it is working correctly for these cases:
So I am only observing it for the
!( ... )
cases.Steps to Reproduce
Adding this test to SpacingAroundOperatorsRuleTest:
Results in this test failure:
Your Environment
master
branch faf8f66The text was updated successfully, but these errors were encountered: