sul-dlss/dlss_cops

Name: dlss_cops

Owner: Stanford University Digital Library

Description: A gem for versioning DLSS's baseline Ruby style guide

Created: 2016-03-09 22:30:35.0

Updated: 2018-04-06 23:58:55.0

Pushed: 2018-04-06 23:58:56.0

Homepage:

Size: 19

Language: Ruby

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

DlssCops

DlssCops is a Rubocop configuration gem that holds DLSS's baseline Ruby style guide. See https://github.com/sul-dlss/DeveloperPlaybook/tree/master/style for more information about the DLSS style. See https://github.com/bbatsov/rubocop for more information about Rubocop.

Installation

We recommend you use the latest version of DlssCops but if needed, you can select a specific version to manage change.

Add a development_dependency in your gem's gemspec file

mspec.add_development_dependency 'dlss_cops'

OR, if it's not a gem, add these lines to your Gemfile:

p :development, :test do
m 'dlss_cops'

Usage

Set up your .rubocop.yml file:

rit_gem:
ss_cops: "config/dlss_baseline.yml"

ops:
rgetRubyVersion: 2.2

Then you can launch rubocop via: bundle exec rubocop <options>

See https://github.com/bbatsov/rubocop#basic-usage for more information.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.