Sha256: 4ef297ff77bba4229a2612d4540c5a664850e1c8cbd24393baa83b6437e508b4

Contents?: true

Size: 1.38 KB

Versions: 1

Compression:

Stored size: 1.38 KB

Contents

[![Gem Version](https://badge.fury.io/rb/theforeman-rubocop.svg)](https://badge.fury.io/rb/theforeman-rubocop)

# theforeman-rubocop

![Foreman](https://raw.githubusercontent.com/theforeman/foreman-graphics/master/logo/foreman_medium.png)

Set of RuboCop styles for [Foreman](https://theforeman.org) 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

```ruby
# Gemfile
source 'https://ezr-ondrej:dc069ebb028fa13cf880764491a921ef28724340@rubygems.pkg.github.com/ezr-ondrej/theforeman-rubocop' do
  gem 'theforeman-rubocop', '~> 0.0.1'
end
```

And configure in the `.rubocop.yml`.

### Easiest config - get all

```yaml
inherit_gem:
  theforeman-rubocop:
    - all.yml
```

### Basic style and performance cops
```yaml
inherit_gem:
  theforeman-rubocop:
    - all.yml
```

### All cops, including newly introduced ones
```yaml
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
```yaml
inherit_gem:
  theforeman-rubocop:
    - rules/style.yml
    - rules/ruby_target.yml
    - rules/performance.yml
    - rules/rails.yml
    - rules/minitest.yml

AllCops:
  NewCops: disable
```

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
theforeman-rubocop-0.0.1 README.md