The project is in a healthy, maintained state
Autocorrect offenses defined in .rubocop_todo.yml.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

RubocopTodoCorrector

test

Autocorrect offenses defined in .rubocop_todo.yml.

This is an internal implementation of rubocop-todo-corrector action. See its README for more information about this action.

Installation

Install the gem and add to the application's Gemfile by executing:

bundle add rubocop_todo_corrector

If bundler is not being used to manage dependencies, install the gem by executing:

gem install rubocop_todo_corrector

Usage

$ rubocop_todo_corrector
Commands:
  rubocop_todo_corrector bundle                        # Run `bundle install` to install RuboCop related gems.
  rubocop_todo_corrector clean                         # Remove temporary files.
  rubocop_todo_corrector correct                       # Run `rubocop --auto-correct(-all)`.
  rubocop_todo_corrector describe --cop-name=COP_NAME  # Output Markdown description for specified cop.
  rubocop_todo_corrector generate                      # Run `rubocop --auto-gen-config` to generate .rubocop_todo.yml.
  rubocop_todo_corrector help [COMMAND]                # Describe available commands or one specific command
  rubocop_todo_corrector ignore --cop-name=COP_NAME    # Ignore specified cop by appending it to ignore file.
  rubocop_todo_corrector pick                          # Output an auto-correctable Cop from .rubocop_todo.yml.
  rubocop_todo_corrector remove --cop-name=COP_NAME    # Remove section with specified cop name from .rubocop_todo.yml.

.rubocop_todo_corrector_ignore

By specifying cop names in .rubocop_todo_corrector_ignore, you can exclude them from the selection.

Style/StringConcatenation

# Comment line is available like this.
Style/StringLiterals

This is useful, for example, when you find a cop that cannot be autocorrected.