Skip to content

Conversation

@github-actions
Copy link
Contributor

Rubocop challenge!

Style/RedundantInterpolation

Safe autocorrect: No
⚠️ The autocorrect a cop can yield false positives by design.

Description

Overview

Checks for strings that are just an interpolated expression.

Examples

# bad
"#{@var}"

# good
@var.to_s

# good if @var is already a String
@var

Auto generated by rubocop_challenger

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

1 participant