Class BaselineKt

  • All Implemented Interfaces:

    
    public final class BaselineKt
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static Baseline loadBaseline(String path) Loads the Baseline from the file located on path.
      final static Boolean containsLintError(List<KtlintCliError> $self, KtlintCliError ktlintCliError) Checks if the list contains the given KtlintCliError.
      final static Boolean doesNotContain(List<KtlintCliError> $self, KtlintCliError ktlintCliError) Checks if the list does not contain the given KtlintCliError.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • 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.