// Rule: TooManyLevels // // Description: Checks whether the layout has too many nested groups. // // Conditions: // - The depth of the layout is > 10 if (node.isRoot() && (depth = node.depth()) > 10) { analysis << [node: null, description: "This layout has too many nested layouts: " + "${depth} levels, it should have <= 10!"] }