navigation

UnionCasesNames (FL0041)

Cause

Union case naming does not match the specified config.

Rationale

Consistency aides readability.

How To Fix

Update the union case's naming to be consistent with the rules you have specified

Rule Settings

Note, any of the settings below can be omitted and will not be checked.

{
    "unionCasesNames": {
        "enabled": true,
        "config": {
            "naming": "PascalCase",
            "underscores": "None"
        }
    }
}
  • naming - expected casing of the identifiers ("PascalCase" or "CamelCase")
  • underscores - if underscores are allowed in the identifiers ("AllowPrefix", "AllowAny", or "None")
  • prefix - prefix string expected on the front of the identifiers.
  • suffix - suffix string expected on the end of the identifiers.