rails_best_practices
rails_best_practices copied to clipboard
False positive: move model logic into model with string[/regexp/]
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.