@@ -0,0 +1,2386 @@
+package com.github.pavlospt;%0A%0Aimport com.android.tools.lint.checks.infrastructure.TestFile;%0Aimport com.github.pavlospt.misc.IssuesInfo;%0Aimport org.junit.Test;%0A%0Aimport static com.android.tools.lint.checks.infrastructure.TestFiles.java;%0Aimport static com.android.tools.lint.checks.infrastructure.TestLintTask.lint;%0A%0Apublic class LithoIssuesDetectorTest %7B%0A%0A  private static final TestFile LITHO_COMPONENT = java(%22%22%0A      + %22package com.github.pavlospt.litholintrulessample;%5Cn%22%0A      + %22%5Cn%22%0A      + %22import android.graphics.drawable.Drawable;%5Cn%22%0A      + %22import android.text.Layout;%5Cn%22%0A      + %22import com.facebook.litho.ComponentContext;%5Cn%22%0A      + %22import com.facebook.litho.ComponentLayout;%5Cn%22%0A      + %22import com.facebook.litho.annotations.LayoutSpec;%5Cn%22%0A      + %22import com.facebook.litho.annotations.OnCreateLayout;%5Cn%22%0A      + %22import com.facebook.litho.annotations.Prop;%5Cn%22%0A      + %22import com.facebook.litho.widget.Text;%5Cn%22%0A      + %22import com.facebook.yoga.YogaAlign;%5Cn%22%0A      + %22%5Cn%22%0A      + %22import static com.facebook.yoga.YogaEdge.ALL;%5Cn%22%0A      + %22%5Cn%22%0A      + %22/*%5Cn%22%0A      + %22* This class is an example class where all LithoLint rules apply.%5Cn%22%0A      + %22* */%5Cn%22%0A      + %22%5Cn%22%0A      + %22@LayoutSpec%5Cn%22%0A      + %22public class RandomCompSpec %7B%5Cn%22%0A      + %22%5Cn%22%0A      + %22  @OnCreateLayout%5Cn%22%0A      + %22  public static ComponentLayout onCreateLayout(ComponentContext context,%5Cn%22%0A      + %22      @Prop(optional = true) String test, @Prop String text, @Prop(optional = true) float ratio,%5Cn%22%0A      + %22      @Prop(optional = true) Drawable drawable) %7B%5Cn%22%0A      + %22    return Text.create(context)%5Cn%22%0A      + %22        .text(text)%5Cn%22%0A      + %22        .textSizeDip(18)%5Cn%22%0A      + %22        .textColorRes(android.R.color.white)%5Cn%22%0A      + %22        .textSizeSp(18)%5Cn%22%0A      + %22        .textAlignment(Layout.Alignment.ALIGN_CENTER)%5Cn%22%0A      + %22        .withLayout()%5Cn%22%0A      + %22        .alignSelf(YogaAlign.STRETCH)%5Cn%22%0A      + %22        .paddingDip(ALL, 8)%5Cn%22%0A      + %22        .build();%5Cn%22%0A      + %22  %7D%5Cn%22%0A      + %22%7D%5Cn%22);%0A%0A  @Test%0A  public void testAllRulesApply() %7B%0A    lint().files(LITHO_COMPONENT)%0A        .issues(IssuesInfo.LAYOUT_SPEC_NAME_ISSUE, IssuesInfo.ANNOTATED_METHOD_VISIBILITY_ISSUE,%0A            IssuesInfo.COMPONENT_CONTEXT_NAME_ISSUE_ISSUE,%0A            IssuesInfo.OPTIONAL_PROP_BEFORE_REQUIRED_ISSUE)%0A        .allowCompilationErrors()%0A        .run()%0A        .expectErrorCount(6);%0A  %7D%0A%7D%0A

Add LithoLintIssuesDetectorTest