public class UntilInsteadOfRangeTo
Reports calls to '..' operator instead of calls to 'until'. 'until' is applicable in cases where the upper range value is described as some value subtracted by 1. 'until' helps to prevent off-by-one errors.
Constructor and Description |
---|
UntilInsteadOfRangeTo(io.gitlab.arturbosch.detekt.api.Config config)
Reports calls to '..' operator instead of calls to 'until'.
'until' is applicable in cases where the upper range value is described as
some value subtracted by 1. 'until' helps to prevent off-by-one errors.
|
UntilInsteadOfRangeTo()
Reports calls to '..' operator instead of calls to 'until'.
'until' is applicable in cases where the upper range value is described as
some value subtracted by 1. 'until' helps to prevent off-by-one errors.
|
Modifier and Type | Method and Description |
---|---|
io.gitlab.arturbosch.detekt.api.Issue |
getIssue() |
void |
visitBinaryExpression(org.jetbrains.kotlin.psi.KtBinaryExpression expression) |
public UntilInsteadOfRangeTo(io.gitlab.arturbosch.detekt.api.Config config)
Reports calls to '..' operator instead of calls to 'until'. 'until' is applicable in cases where the upper range value is described as some value subtracted by 1. 'until' helps to prevent off-by-one errors.
public UntilInsteadOfRangeTo()
Reports calls to '..' operator instead of calls to 'until'. 'until' is applicable in cases where the upper range value is described as some value subtracted by 1. 'until' helps to prevent off-by-one errors.