navigation

PatternMatchClauseIndentation (FL0006)

Cause

All pattern match clauses should be at the same indentation level.

Rationale

Readability.

How To Fix

Update pattern match clauses to have consistent indentation.

Rule Settings

Uses the numIndentationSpaces global setting.

{
    "patternMatchClauseIndentation": {
        "enabled": false,
        "config": {
          "allowSingleLineLambda": false
        }
    }
}
  • allowSingleLineLambda - whether or not to allow single-line lambda pattern matches