navigation

MaxLinesInUnion (FL0032)

Cause

A discriminated union is made up of more than a configurable number of lines.

Rationale

The larger a discriminated union becomes the more complex it becomes, it also indicates that all the items may not be related.

How To Fix

Extract code out into smaller composed discriminated unions.

Rule Settings

{
    "maxLinesInUnion": {
        "enabled": false,
        "config": {
            "maxLines": 500
        }
    }
}