Gem Version

theforeman-rubocop

Foreman

Set of RuboCop styles for Foreman and its plugins.

Introduction

As we are one organization and almost one project, it would be nice to keep the similar standards for code quality.

Instead of defining the rules for plugin per plugin, plugins can include defaults from this gem.

Usage

# Gemfile
gem 'theforeman-rubocop', '~> 0.0.2'

And configure in the .rubocop.yml.

Easiest config - get all

inherit_gem:
  theforeman-rubocop:
    - all.yml

Basic style and performance cops

inherit_gem:
  theforeman-rubocop:
    - all.yml

All cops, including newly introduced ones

inherit_gem:
  theforeman-rubocop:
    - edge.yml

Choose just some cops

Cops are splited in categories for your convenience, so you can opt-out some cops.

.rubocop.yml

inherit_gem:
  theforeman-rubocop:
    - rules/style.yml
    - rules/ruby_target.yml
    - rules/performance.yml
    - rules/rails.yml
    - rules/minitest.yml

AllCops:
  NewCops: disable