SONARKT-681 S1862 should not raise when guard conditions are used in "when" statements#689
SONARKT-681 S1862 should not raise when guard conditions are used in "when" statements#689
Conversation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
SummaryThe PR refines the S1862 rule (identical conditions) to properly handle guard conditions in Kotlin's What reviewers should knowStart with the test cases in Core logic is in
Minor cleanup:
|
|




Summary
Fixed S1862 rule to not raise when guard conditions are used in "when" statements in Kotlin.
Changes
Testing
Ticket
SONARKT-681