navigation

MaxLinesInClass (FL0033)

Cause

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

Rationale

The larger a class becomes the more complex it becomes, it also indicates that it may have too many different responsibilities.

How To Fix

Extract code out into smaller composable classes.

Rule Settings

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