Lines Matching full:area

72         help="List area(s) for paths")
82 help="List area(s) for commit range")
94 "area",
95 metavar="AREA",
97 help="Name of area to list files in. If not specified, all "
99 "any area).")
115 help="List orphaned files (files that do not appear in any area)")
163 A dictionary that maps area names to Area instances, for all areas
187 area = Area()
188 area.name = area_name
189 area.status = area_dict.get("status")
190 area.maintainers = area_dict.get("maintainers", [])
191 area.collaborators = area_dict.get("collaborators", [])
192 area.inform = area_dict.get("inform", [])
193 area.labels = area_dict.get("labels", [])
194 area.tests = area_dict.get("tests", [])
195 area.tags = area_dict.get("tags", [])
196 area.description = area_dict.get("description")
198 # area._match_fn(path) tests if the path matches files and/or
200 area._match_fn = \
204 # Like area._match_fn(path), but for files-exclude and
206 area._exclude_match_fn = \
210 self.areas[area_name] = area
214 Returns a list of Area instances for the areas that contain 'path',
231 return [area for area in self.areas.values()
232 if area._contains(path)]
236 Returns a set() of Area instances for the areas that contain files that
273 print("Orphaned paths (not in any area):\n" + "\n".join(orphaned))
279 _print_areas({area for commit_range in commits
280 for area in self.commits2areas(commit_range)})
284 for area in self.areas.values():
286 if args.maintainer in area.maintainers:
287 print("{:25}\t{}".format(area.name, ",".join(area.maintainers)))
289 print("{:25}\t{}".format(area.name, ",".join(area.maintainers)))
305 for area in self.areas.values():
306 if area.status == 'maintained':
307 maintainers = maintainers.union(set(area.maintainers))
308 elif area.status == 'odd fixes':
310 collaborators = collaborators.union(set(area.collaborators))
324 if args.area is None:
325 # List all files that appear in some area
327 for area in self.areas.values():
328 if area._contains(path):
332 # List all files that appear in the given area
333 area = self.areas.get(args.area)
334 if area is None:
335 _serr("'{}': no such area defined in '{}'"
336 .format(args.area, self.filename))
339 if area._contains(path):
349 for area in self.areas.values():
350 if area._contains(path):
356 class Area: class
358 Represents an entry for an area in MAINTAINERS.yml.
363 The status of the area, as a string. None if the area has no 'status'
367 List of maintainers. Empty if the area has no 'maintainers' key.
370 List of collaborators. Empty if the area has no 'collaborators' key.
373 List of people to inform on pull requests. Empty if the area has no
377 List of GitHub labels for the area. Empty if the area has no 'labels'
381 Text from 'description' key, or None if the area has no 'description'
385 # Returns True if the area contains 'path', and False otherwise
391 return "<Area {}>".format(self.name)
396 for area in sorted(areas, key=operator.attrgetter("name")):
410 \tdescription: {}""".format(area.name,
411 area.status,
412 ", ".join(area.maintainers),
413 ", ".join(area.collaborators),
414 ", ".join(area.inform),
415 ", ".join(area.labels),
416 ", ".join(area.tests),
417 ", ".join(area.tags),
418 area.description or ""))
495 ferr("malformed entry for area '{}' (not a dict)"
500 ferr("unknown key '{}' in area '{}'"
505 ferr("bad 'status' key on area '{}', should be one of {}"
510 "for area '{}'".format(area_name))
518 ferr("malformed '{}' value for area '{}' -- should "
529 ferr("glob pattern '{}' in '{}' in area '{}' does not "
534 ferr("glob pattern '{}' in '{}' in area '{}' "
552 ferr("malformed 'description' value for area '{}' -- should be a "