11 lines
270 B
Plaintext
11 lines
270 B
Plaintext
// 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!"
|
|
}
|