blob: 30553e58b69e146e25b95091662ca05a1002e7db (
plain)
1
2
3
4
5
6
7
8
9
10
|
// Rule: TooManyViews
//
// Description: Checks whether the layout has too many views.
//
// Conditions:
// - The document contains more than 80 views
if (xml.isRoot && (size = xml.'**'.size()) > 80) {
analysis << "This layout has too many views: ${size} views, it should have <= 80!"
}
|