Header menu logo ionide-analyzers

UnnamedDiscriminatedUnionFieldAnalyzer

Problem

In dotnet/fsharp#15665 it is recommended that all union case fields have a name.
With the exception of a single field union case.

type DU =
    // Triggers analyzer 
    | Example of int * name: string

Fix

Add the missing name:

type DU =
    | Example of age: int * name: string
type DU = | Example of int * name: string
Multiple items
val int: value: 'T -> int (requires member op_Explicit)

--------------------
type int = int32

--------------------
type int<'Measure> = int
Multiple items
val string: value: 'T -> string

--------------------
type string = System.String

Type something to start searching.