Inspectopedia Help

Using zero as nil

Reports the cases when 0 is used instead of nil. In some cases, it might be a problem, for example, when 0 is stored in an array. You might have wanted to store NSNumber with value 0 instead of nil.

Inspection Details

Available in:

AppCode 2023.3

Plugin:

AppCode, 2023.3

Last modified: 13 July 2023