Make Ruby style consistent throughout the codebase

Includes some small adjustments to Hound/Rubocop config.
Line is too long. [107/99]<br>Ternary operators must not be nested. Prefer `if`/`else` constructs instead.