Project

dpn_cops

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
DpnCops is a Rubocop configuration gem that holds DPN's baseline Ruby style guide.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.11
>= 0
~> 10.0

Runtime

~> 0.37.0
 Project Readme

Gem Version

DpnCops

DpnCops is a Rubocop configuration gem that holds DPN's baseline Ruby style guide. See https://github.com/bbatsov/rubocop for more information about Rubocop.

This style guide adapted from a DLSS style guide.

Installation

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

Add a development_dependency in your gem's gemspec file

  gemspec.add_development_dependency 'dpn_cops'

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

group :development, :test do
  gem 'dpn_cops'
end

Usage

Set up your .rubocop.yml file:

inherit_gem:
  dpn_cops: "config/dpn_baseline.yml"

AllCops:
  TargetRubyVersion: 2.2

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

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