Home | History | Annotate | Download | only in rules
      1 // Rule: TooManyViews
      2 //
      3 // Description: Checks whether the layout has too many views.
      4 //
      5 // Conditions:
      6 // - The document contains more than 80 views
      7 
      8 if (node.isRoot && (size = node.'**'.size()) > 80) {
      9     analysis << [node: null,
     10             description: "This layout has too many views: ${size} views, it should have <= 80!"]
     11 }
     12