No release in over 3 years
Low commit activity in last 3 years
Rubocop with Rootstrap's code style
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 13.0.1
~> 3.9.0
~> 0.17.1

Runtime

>= 0.72, < 2
 Project Readme

RuboCop Rootstrap

This gem provides the recommended RuboCop configuration for Rootstrap projects, for open source and internal Ruby projects.

Usage

For Rails projects

In your gemfile:

gem 'rubocop-rootstrap'
gem 'rubocop-rails', require: false

And in your .rubocop.yml

inherit_gem:
  rubocop-rootstrap:
    - config/rails.yml

For ruby projects

In your gemfile:

gem 'rubocop-rootstrap'

And in your .rubocop.yml

inherit_gem:
  rubocop-rootstrap:
    - config/default.yml

Using the latest Rubocop version

To use the latest version of Rubocop just use the edge config files:

In your .rubocop.yml

inherit_gem:
  rubocop-rootstrap:
    - config/default_edge.yml

Or for Rails apps

inherit_gem:
  rubocop-rootstrap:
    - config/rails_edge.yml

Defining custom exclusions in our project

To define custom exclusions and not override those defined by the gem:

In your .rubocop.yml

inherit_mode:
  merge:
    - Exclude

Writing custom cops

Check Rubocop's documentation https://docs.rubocop.org/rubocop/development.html

Cops must live inside lib/rubocop/cop/rootstrap/ and be required in lib/rubocop/cop/rootstrap.rb.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/rootstrap/rubocop-rootstrap. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the Rubocop::Rootstrap project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

Credits

RuboCop Rootstrap is maintained by Rootstrap with the help of our contributors.