Script a rubocop corrector using a data file
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
Showing
... | ... | @@ -351,6 +351,7 @@ group :development do |
end | ||
group :development, :test do | ||
gem 'warning', '~> 1.1', require: false | ||
gem 'bullet', '~> 6.1.0' | ||
gem 'pry-byebug', '~> 3.9.0', platform: :mri | ||
gem 'pry-rails', '~> 0.3.9' | ||
... | ... |
spec/ruby_keyword_warning.rb
0 → 100644
Please register or sign in to comment