rubocop

https://github.com/bbatsov/rubocop

Ruby

A Ruby static code analyzer, based on the community Ruby style guide.

RuboCop::CLI#run_line_length_cop_auto_gen_config

Do an initial run with only Metrics/LineLength so that cops that depend
on Metrics/LineLength:Max get the correct value for that parameter.

Source | Google | Stack overflow

Edit

git clone [email protected]:bbatsov/rubocop.git

cd rubocop

open lib/rubocop/cli.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-RuboCop--CLI-run_line_length_cop_auto_gen_config-for-pr


# Commit to git

git add lib/rubocop/cli.rbgit commit -m "better docs for RuboCop::CLI#run_line_length_cop_auto_gen_config"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-RuboCop--CLI-run_line_length_cop_auto_gen_config-for-pr

hub pull-request


# Celebrate!