rails_best_practices icon indicating copy to clipboard operation
rails_best_practices copied to clipboard

False positive: move model logic into model with string[/regexp/]

Open msg7086 opened this issue 9 years ago • 0 comments

I have some code involving extracting specific values from string via regular expression.

Frequently using var = str[/regexp/, pos] triggers the warning (str[] use_count > 4)

I think it's a false positive unless this is by design.

Thanks.

msg7086 avatar Jul 17 '15 19:07 msg7086