The project is in a healthy, maintained state
RuboCop rules and plugin setup for Joe Sharp's Ruby projects, shared as a gem so every project inherits the same style.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

 Project Readme

SharpStyleRubocop

My RuboCop style, packaged as a gem so every project can share the same rules.

It bundles a RuboCop configuration (config/default.yml) along with the rubocop-performance and rubocop-rspec plugins it uses.

See the following links for information on why I chose many of these changes:

Installation

Add the gem to your Gemfile:

bundle add sharp_style_rubocop --group development

Or install it directly:

gem install sharp_style_rubocop

Usage

Inherit the shared config from your project's .rubocop.yml:

inherit_gem:
  sharp_style_rubocop: config/default.yml

Then run RuboCop as usual:

bundle exec rubocop

Any rule you need to change for a single project can be overridden below the inherit_gem line in that project's .rubocop.yml.

Development

After checking out the repo, run bin/setup to install dependencies. Then run bundle exec rake to run the specs and RuboCop against this gem's own code.

Run bin/console for an interactive prompt.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, bump lib/sharp_style_rubocop/version.rb, add an entry to CHANGELOG.md, and run bundle exec rake release.

Contributing

Bug reports and pull requests are welcome at https://github.com/joe-sharp/sharp_style_rubocop. Contributors are expected to follow the code of conduct.

License

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