[Fixes #70748484] Rubocop lint checks

Add to default rake task and fix existing warnings.