Home | History | Annotate | Download | only in rules
      1 // Rule: TooManyLevels
      2 //
      3 // Description: Checks whether the layout has too many nested groups.
      4 //
      5 // Conditions:
      6 // - The depth of the layout is > 10
      7 
      8 if (node.isRoot() && (depth = node.depth()) > 10) {
      9     analysis << [node: null, description: "This layout has too many nested layouts: " +
     10             "${depth} levels, it should have <= 10!"]
     11 }
     12