Statement with empty body

Last modified: 03 December 2024

Reports if, while, do or for statements with empty bodies. While occasionally intended, this construction is confusing, and often the result of a typo.

Example: