Remove redundant "do", "return" and language extensions from base
Background: #18424
This MR adds anti-redundancy rules to base
's HLint configuration file.
To ease the readability of the code for future contributors, some indentation quirks have been fixed.
No feature change.