Skip to content

Add rake task `rubocop:todo:generate`

Peter Leitzen requested to merge pl-rake-rubocop-todo-task into master

What does this MR do?

This MR abstracts bundle exec rubocop --auto-gen-config --auto-gen-only-exclude --exclude-limit=100000 in a rake task rubocop:todo:generate.

Contributes to #294273 (closed).

This MR is a step towards potentially splitting up .rubocop_todo.yml into multiple files (one per cop) and removing the ever-growing rubocop_manual_todo.yml.

How to setup and validate locally (strongly suggested)

bundle exec rake -T rubocop
rake rubocop                # Run RuboCop
rake rubocop:auto_correct   # Auto-correct RuboCop offenses
rake rubocop:todo:generate  # Generate RuboCop todos
rake spec:rubocop           # Run the code examples in spec/rubocop

bundle exec rake rubocop:todo:generate

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • [-] Label as security and @ mention @gitlab-com/gl-security/appsec
  • [-] The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • [-] Security reports checked/validated by a reviewer from the AppSec team
Edited by Peter Leitzen

Merge request reports