This class/object has a name that does not match agreed-upon naming conventions. Not following naming conventions can lead to confusion among developers and inconsistency in the codebase, which can result in bugs and maintenance issues. It is important to maintain a consistent and easily understandable codebase by following the recommended naming conventions.
Ensure that enum variants are consistently named.
to
over Pair
syntax KT-C1002The to
function provides better readability and makes the code more self-explanatory. When to
is used, it's more clear that a pair is being created from two values, improving code comprehension. Furthermore, Kotlin promotes a consistent and expressive coding style. Using to
aligns with other collection-related functions, such as mapOf
, listOf
, and