Fix rubocop offenses

MSP-11399