DEV: Update rubocop-discourse from 2.3.2 to 2.4.0 (PR #11079)

Also fixes whitespace related issues raised by rubocop.

GitHub