Sha256: 3ef90a8eb40e0954a45df466c83e96c80c73f53d73828dfe3fab46d53dfe601b
Contents?: true
Size: 1.53 KB
Versions: 3
Compression:
Stored size: 1.53 KB
Contents
# RuboCop GitHub [![Build Status](https://travis-ci.org/github/rubocop-github.svg?branch=master)](https://travis-ci.org/github/rubocop-github) This repository provides recommended RuboCop configuration and additional Cops for use on GitHub open source and internal Ruby projects. ## Usage Rubocop 0.68 removed performance cops and 0.72 removed Rails cops. However, upgrading `rubocop-github` without modification will almost definitely create very many new offenses. The current version of this gem exposes the "legacy" configuration under `config/default.yml` and `config/rails.yml` which should be used *if and only if* the version of rubocop is locked to `< 0.68` in your project (which it should be unless you `bundle update rubocop`). It also exposes an "edge" configuration under `config/default_edge.yml` and `config/rails_edge.yml` so that the changes can be tested without introducing breaking changes. ### Legacy usage **Gemfile** ``` ruby gem "rubocop", "< 0.68" gem "rubocop-github" ``` **.rubocop.yml** ``` yaml inherit_gem: rubocop-github: - config/default.yml - config/rails.yml ``` ### Edge usage **Gemfile** ``` ruby gem "rubocop-github" gem "rubocop-performance", require: false gem "rubocop-rails", require: false ``` **.rubocop.yml** ``` yaml inherit_gem: rubocop-github: - config/default_edge.yml - config/rails_edge.yml ``` ## Testing `bundle install` `bundle exec rake test` ## The Cops All cops are located under [`lib/rubocop/cop/github`](lib/rubocop/cop/github), and contain examples/documentation.
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rubocop-github-0.16.0 | README.md |
rubocop-github-0.15.0 | README.md |
rubocop-github-0.14.0 | README.md |