Code style checking for GitHub's Ruby projects
Перейти к файлу
Christian Joudrey 3846c3ba8a
Merge pull request #19 from github/blocks-spacing
Enable Layout/SpaceBeforeBlockBraces and Layout/SpaceInsideBlockBraces cops
2017-12-19 10:31:41 -05:00
config Enable Layout/SpaceBeforeBlockBraces and Layout/SpaceInsideBlockBraces cops 2017-12-01 15:04:56 -05:00
guides Prevent render inline: in views 2017-03-24 11:48:40 -07:00
lib/rubocop/cop Update cops to match rubocop API changes 2017-10-28 13:32:48 -07:00
test Fix render layout with block pass 2017-03-24 11:55:49 -07:00
.gitignore Add Gemfile 2016-12-09 22:41:38 -08:00
.rubocop.yml Use own rules 2016-12-09 22:51:31 -08:00
.travis.yml Add Travis config 2016-12-09 22:53:24 -08:00
Gemfile Add Gemfile 2016-12-09 22:41:38 -08:00
LICENSE Add LICENSE 2016-12-09 22:22:37 -08:00
README.md Document how to enable rails config 2016-12-14 13:28:19 -08:00
Rakefile Add bundler tasks 2017-11-22 12:14:13 -05:00
STYLEGUIDE.md Fix block quote formatting 2017-01-10 11:38:00 -08:00
rubocop-github.gemspec Bump to 0.6.0 2017-11-22 12:13:43 -05:00

README.md

RuboCop GitHub

This repository provides recommended RuboCop configuration and additional Cops for use on GitHub open source and internal Ruby projects.

Installation

Gemfile

gem "rubocop-github"

.rubocop.yml

inherit_gem:
  rubocop-github:
    - config/default.yml
    - config/rails.yml

The Cops

All cops are located under lib/rubocop/cop/github, and contain examples/documentation.