Sha256: 4291a58df4aa639b3b4b1a8a89f0c362e8a182ba530f02eab1a8d39b2ac64446

Contents?: true

Size: 1.38 KB

Versions: 4

Compression:

Stored size: 1.38 KB

Contents

# RamseyCop

[![Gem Version](https://badge.fury.io/rb/ramsey_cop.svg)](https://badge.fury.io/rb/ramsey_cop)
![Number of Downloads](https://img.shields.io/gem/dt/ramsey_cop)

Inspired by https://blog.percy.io/share-rubocop-rules-across-all-of-your-repos-f3281fbd71f8

Ramsey shared style configs.

## Why

https://www.sandimetz.com/blog/2017/6/1/why-we-argue-style

## Installation

Add this line to your application's Gemfile:

```ruby
group :test, :development do
  gem "ramsey_cop"
end
```

And then run:

```bash
$ bundle install
```

If you're in a Rails app, you can now run:
```bash
$ rails generate ramsey_cop
```

If you're not in a Rails app, you will need to create a `.rubocop.yml` with the following directives:
 - Note: This will work locally, but will not work with CodeClimate. If you are using CodeClimate, see the documentation linked at the bottom of this page.
```yaml
inherit_gem:
  ramsey_cop:
    - default.yml
```

Now, run:

```bash
$ bundle exec rubocop
```

You do not need to include rubocop directly in your application's dependencies. RamseyCop will include a specific version of `rubocop` that is shared across all projects.

## Documentation

* [Introducing RamseyCop to an existing repository](/documentation/existing-repositories.md)
* [RamseyCop linting in Vim with ALE](/documentation/vim-tips.md)
* [Integrating RamseyCop with CodeClimate](/documentation/codeclimate-setup.md)

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ramsey_cop-0.19.0 README.md
ramsey_cop-0.18.0 README.md
ramsey_cop-0.16.0 README.md
ramsey_cop-0.15.0 README.md