Sha256: ea97b3a41f3a4076f286d89da43908aa7dbdd96907efce3e1e9587d1ffed1376

Contents?: true

Size: 1.43 KB

Versions: 4

Compression:

Stored size: 1.43 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 [RuboCop](https://github.com/rubocop-hq/rubocop) 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.24.0 README.md
ramsey_cop-0.23.0 README.md
ramsey_cop-0.22.0 README.md
ramsey_cop-0.20.0 README.md