Is the group interesting for a final user?

Groups are mandatory in the model but for simple packages they are not always interesting.

A interesting group has, at least, one of the following true:

  • it has 2 modules or more
  • it has a subgroup
  • it has a documentation

Property definitions

nitc :: loader $ MGroup :: is_interesting
	# Is the group interesting for a final user?
	#
	# Groups are mandatory in the model but for simple packages they are not
	# always interesting.
	#
	# A interesting group has, at least, one of the following true:
	#
	# * it has 2 modules or more
	# * it has a subgroup
	# * it has a documentation
	fun is_interesting: Bool
	do
		return mmodules.length > 1 or
			not in_nesting.direct_smallers.is_empty or
			mdoc != null or
			(mmodules.length == 1 and default_mmodule == null)
	end
src/loader.nit:1231,2--1247,4