• Thong Kuah's avatar
    Script a rubocop corrector using a data file · 2419da27
    Thong Kuah authored
    We generate the data file using ruby-warnings
    
    Adds rubocop:
    
    - Only match if method name matches, not just line number
    - Match only file path from root so that files from other machines work
    
    Adds autocorrection
    
    - Add autocorrection by inserting ** before.
    - Special correction case for literal hash args
    
    Mark cop as unsafe as relies on data source
    
    Fix correction from splat type to double splat
    2419da27
This project manages its dependencies using Bundler. Learn more
Gemfile.lock 38.1 KB