Home | History | Annotate | Download | only in rules
      1 // Rule: IncorrectHeightInScrollView
      2 //
      3 // Description: Checks whether a scrollview's child has the wrong dimension.
      4 //
      5 // Conditions:
      6 // - The node has a ScrollView parent
      7 // - The node has a height set to match_parent
      8 
      9 if (node.'..'.is("ScrollView") && node.isHeightFillParent()) {
     10     analysis << "This ${node.name()} tag should use android:layout_height=\"wrap_content\""
     11 }
     12