Control flow issues
- 'defer' in the loop
Reports defer statements inside loops.
- Assignment to a receiver
Reports assignments to method receivers.
- Infinite 'for' loop
Reports empty for loops.
- Unreachable code
Reports code that can never be executed because there exists no control flow path to the code from the rest of the program.
Last modified: 03 December 2024