enum

Ignorelint::OutputFormat

Inherits Enum < Comparable < Value < Object

Constants

Human = 0
Json = 1
Checkstyle = 2
Sarif = 3

Class methods

parse?(value : String) : OutputFormat | Nil

Parse a format name string into the enum value.

Returns nil if the string does not match any known format (used by the CLI to detect invalid --format arguments).

In Crystal, self. in an enum method refers to the enum type, and the return type OutputFormat? means "OutputFormat or Nil" (a union type).

valid_values

Human-readable list of all valid format names, for error messages and help text.

Instance methods

checkstyle?

Returns true if this enum value equals Checkstyle

human?

Returns true if this enum value equals Human

json?

Returns true if this enum value equals Json

sarif?

Returns true if this enum value equals Sarif