Low commit activity in last 3 years
No release in over a year
A gem to simplify the process of ensuring ruby based Defra projects are using our agreed coding style and standards.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

Defra Ruby Style

Build Status Gem Version Licence

This repository is used to manage the ruby code style we use at DEFRA.

Installation

Add the following to your Gemfile

group :test, :development do
  gem "defra_ruby_style"
end

And then update your dependencies by calling

bundle install

Usage

If your project hasn't got one, create the file .rubocop.yml in its root and add the following:

inherit_gem:
  defra_ruby_style:
    - default.yml

If it has just replace the existing content with this. Now you can run rubocop as usual.

bundle exec rubocop

Contributing to this project

If you have an idea you'd like to contribute please log an issue.

All contributions should be submitted via a pull request.

License

THIS INFORMATION IS LICENSED UNDER THE CONDITIONS OF THE OPEN GOVERNMENT LICENCE found at:

http://www.nationalarchives.gov.uk/doc/open-government-licence/version/3

The following attribution statement MUST be cited in your products and applications when using this information.

Contains public sector information licensed under the Open Government license v3

About the license

The Open Government Licence (OGL) was developed by the Controller of Her Majesty's Stationery Office (HMSO) to enable information providers in the public sector to license the use and re-use of their information under a common open licence.

It is designed to encourage use and re-use of information freely and flexibly, with only a few conditions.