The inspection is intended to point at the following types of inconsistencies:
- The function/method contains return statements with arguments as well as without them
- The function/method may happen to return a value or end its execution without a return statement at all
- The function/method is declared void but contains return statements with arguments
Technically these are not errors but practically usually indicate programmer’s mistakes.