navigation

FavourStaticEmptyFields (FL0076)

Introduced in 0.21.3

Cause

Use of immediate string "", empty list [] or empty array [||].

Rationale

Using static empty fields aids readibility.

How To Fix

Use a static empty field such as String.Empty, List.Empty or Array.empty.

Rule Settings

{
    "favourStaticEmptyFields": { "enabled": false }
}