Reports problems caused by incorrect use of nil value.
Analyses the data flow to determine if variables could have nil or not nil values.
Based on this, reports potential bugs in the code. For example:
- Method calls with nil receiver could lead to 'nil pointer dereference'.
- nil slice indexing could cause panics.
- Comparisons like v == nil could be meaningless if v is known to be always nil or not nil.
- Variable has a corresponding error and it is not checked to be not nil. An error corresponds to a variable when they are defined or assigned together in statements like v, err := foo().