Fatal Error Message

A fatalError call should have a message

  • Identifier: fatal_error_message
  • Enabled by default: No
  • Supports autocorrection: No
  • Kind: idiomatic
  • Analyzer rule: No
  • Minimum Swift compiler version: 5.0.0
  • Default configuration:
    KeyValue
    severity warning

Non Triggering Examples

func foo() {
  fatalError("Foo")
}
func foo() {
  fatalError(x)
}

Triggering Examples

func foo() {
  fatalError("")
}
func foo() {
  fatalError()
}