• Robert Speicher's avatar
    Merge branch 'rubocop/enable-style-for-cop' into 'master' · 164fc34e
    Robert Speicher authored
    Enable Style/For rubocop cop
    
    > Do not use `for`, unless you know exactly why. Most of the time iterators should be used instead. `for` is implemented in terms of `each` (so you're adding a level of indirection), but with a twist - `for` doesn't introduce a new scope (unlike `each`) and variables defined in its block will be visible outside it.
    
    See #17478
    
    See merge request !4397
    164fc34e
.rubocop.yml 27.2 KB