Class BaselineKt
-
- All Implemented Interfaces:
public final class BaselineKt
-
-
Field Summary
Fields Modifier and Type Field Description private final static StringrelativeRoute
-
Method Summary
Modifier and Type Method Description final StringgetRelativeRoute()final static BaselineloadBaseline(String path)Loads the Baseline from the file located on path. final static BooleancontainsLintError(List<KtlintCliError> $self, KtlintCliError ktlintCliError)Checks if the list contains the given KtlintCliError. final static BooleandoesNotContain(List<KtlintCliError> $self, KtlintCliError ktlintCliError)Checks if the list does not contain the given KtlintCliError. -
-
Method Detail
-
getRelativeRoute
final String getRelativeRoute()
-
loadBaseline
final static Baseline loadBaseline(String path)
Loads the Baseline from the file located on path.
-
containsLintError
final static Boolean containsLintError(List<KtlintCliError> $self, KtlintCliError ktlintCliError)
Checks if the list contains the given KtlintCliError. The List.contains function can not be used as KtlintCliError.detail is not available in the baseline file and a normal equality check on the KtlintCliError fails.
-
doesNotContain
final static Boolean doesNotContain(List<KtlintCliError> $self, KtlintCliError ktlintCliError)
Checks if the list does not contain the given KtlintCliError. The List.contains function can not be used as KtlintCliError.detail is not available in the baseline file and a normal equality check on the KtlintCliError fails.
-
-
-
-