Skip to content

Enable the StringReplacement cop.

Also fix one use of gsub that would be faster as delete.

Use tr instead of gsub when you are replacing the same number of characters. Use delete instead of gsub when you are deleting characters.

Merge request reports

Loading