Warning: Describe this {kind}: its body is {lines} line(s)
Under {"requireDescription":{"minBodyLines":N}}, a method whose body spans N lines or more
and has no description is reported. The same rule applies to a routine label with a formal
argument list. A method’s description is the /// lines right above it, and a label’s is
the comment lines right above it. Private methods are exempt. Write above the method or
label what it does.
IRIS compiles the example. Checked with the style {"requireDescription":{"minBodyLines":2}}.
Class Demo.Undescribed
{
/// The larger of `a` and `b`.
ClassMethod Max(a As %Integer, b As %Integer) As %Integer
{
If a > b Quit a
Quit b
}
ClassMethod Min(a As %Integer, b As %Integer) As %Integer //! S7126
{
If a < b Quit a
Quit b
}
}