• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Rule: TooManyViews
2//
3// Description: Checks whether the layout has too many views.
4//
5// Conditions:
6// - The document contains more than 80 views
7
8if (node.isRoot && (size = node.'**'.size()) > 80) {
9    analysis << [node: null,
10            description: "This layout has too many views: ${size} views, it should have <= 80!"]
11}
12