You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The UnnecessaryInterpolation linter uses this to determine if a line is only interpolation:
def only_interpolation?(content)
content.lstrip.start_with?('"#{')
end
Thus lines like this
%tag #{some}/partially/#{interpolated}/#{value}
Raise when they shouldn't. My first thought would be to try to gsub out all the interpolation via regex then check to see if anything's left, but that seems error-prone and expensive. Any better ideas?
The text was updated successfully, but these errors were encountered:
The UnnecessaryInterpolation linter uses this to determine if a line is only interpolation:
Thus lines like this
Raise when they shouldn't. My first thought would be to try to gsub out all the interpolation via regex then check to see if anything's left, but that seems error-prone and expensive. Any better ideas?
The text was updated successfully, but these errors were encountered: