Inspectopedia
 
2024.3

Replace 'until' with '..<' operator

Info
New
Last modified: 03 December 2024

Reports until that can be replaced with ..< operator.

Every until to ..< replacement doesn't change the semantic in any way.

The UX research shows that developers make ~20-30% fewer errors when reading code containing ..< compared to until.

Example:

After the quick-fix is applied:

This inspection only reports if the Kotlin language level of the project or module is 1.7 or higher.