Sha256: b7be19baa6fe065b621e8613ec665b7059299b76bf176fed58e18e588da45c9b

Contents?: true

Size: 1.4 KB

Versions: 1

Compression:

Stored size: 1.4 KB

Contents

# RuboCop Oracle

[![Gem Version](https://badge.fury.io/rb/rubocop-oracle.svg)](https://badge.fury.io/rb/rubocop-oracle)
[![CircleCI](https://circleci.com/gh/koic/rubocop-oracle.svg?style=svg)](https://circleci.com/gh/koic/rubocop-oracle)

A [RuboCop](https://github.com/rubocop-hq/rubocop) extension for [Active Record Oracle enhanced adapter](https://github.com/rsim/oracle-enhanced).

## Installation

Just install the `rubocop-oracle` gem

```sh
gem install rubocop-oracle
```

or if you use bundler put this in your `Gemfile`

```ruby
gem 'rubocop-oracle'
```

## Usage

You need to tell RuboCop to load the Oracle extension. There are three
ways to do this:

### RuboCop configuration file

Put this into your `.rubocop.yml`.

```yaml
require: rubocop-oracle
```

Alternatively, use the following array notation when specifying multiple extensions.

```yaml
require:
  - rubocop-other-extension
  - rubocop-oracle
```

Now you can run `rubocop` and it will automatically load the RuboCop Oracle
cops together with the standard cops.

### Command line

```sh
rubocop --require rubocop-oracle
```

### Rake task

```ruby
RuboCop::RakeTask.new do |task|
  task.requires << 'rubocop-oracle'
end
```

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/koic/rubocop-oracle.

## License

The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rubocop-oracle-0.1.0 README.md