Skip to content
  • Nick Malcolm's avatar
    Use the `RESTRICT_ON_SEND` optimization and remove special cases · 9bdcaa1a
    Nick Malcolm authored
    Instead of using a double negative @splattael suggested matching on
    all params, ehn permitting when params is used safely.
    
    With that we could simplify the node pattern while making the cop rule
    faster and perhaps more secure. There's no special case made for methods
    like page, per, puts, has_key, etc.
    
    The downside is the number of rubocop exceptions when from 225 to 379.
    9bdcaa1a