Replace obsolete constant Rubocop with RuboCop
Fix RuboCop offenses