ascot diagnostics

S7126

Warning: Describe this {kind}: its body is {lines} line(s)

Under {"requireDescription":{"minBodyLines":N}}, a method, or a routine label with a parameter list, whose body spans at least N lines and has no description: /// lines right above a method, comment lines right above a label. Private methods are exempt. IRIS compiles it with or without; say what it does above it.

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
}

}

All diagnostics