From d5912b53ddd30102c6e199468998fb6d72a197f3 Mon Sep 17 00:00:00 2001 From: Nihad Abbasov Date: Wed, 12 Aug 2020 16:04:54 +0300 Subject: Restore old behavior of ALEFix command for Rubocop (#3237) * Restore old behavior of ALEFix command for Rubocop Since RuboCop 0.60 ALEFix command stopped to fix all found offenses. This change restores the previous behavior by allowing rubocop to fix all detected offenses. * Fix tests * Allow to configure auto-correct option for Rubocop --- doc/ale-ruby.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'doc/ale-ruby.txt') diff --git a/doc/ale-ruby.txt b/doc/ale-ruby.txt index a27a20b2..142bb6b8 100644 --- a/doc/ale-ruby.txt +++ b/doc/ale-ruby.txt @@ -114,6 +114,14 @@ g:ale_ruby_rubocop_options *g:ale_ruby_rubocop_options* This variable can be changed to modify flags given to rubocop. +g:ale_ruby_rubocop_auto_correct_all *g:ale_ruby_rubocop_options* + *b:ale_ruby_rubocop_options* + Type: Number + Default: `0` + + This variable can be changed to make rubocop to correct all offenses (unsafe). + + =============================================================================== ruby *ale-ruby-ruby* -- cgit v1.2.3