blob: da16c5f750c86eab9ebad914f97d086ca06ffe57 (
plain)
1
2
3
4
5
6
7
8
9
10
|
// Rule: TooManyLevels
//
// Description: Checks whether the layout has too many nested groups.
//
// Conditions:
// - The depth of the layout is > 10
if (xml.isRoot() && (depth = xml.depth()) > 10) {
analysis << "This layout has too many nested layouts: ${depth} levels, it should have <= 10!"
}
|