Disable Cops in Source Code
In an area
# rubocop:disable Layout/LineLength, Style/StringLiterals
# [...]
# rubocop:enable Layout/LineLength, Style/StringLiterals
On the same line
for x in (0..19) # rubocop:disable Style/For
# rubocop:disable Layout/LineLength, Style/StringLiterals
# [...]
# rubocop:enable Layout/LineLength, Style/StringLiterals
for x in (0..19) # rubocop:disable Style/For