Skip to content

charitywater/cw-style

 
 

Repository files navigation

cw-style

charity: water shared code style configs for RuboCop. Forked from https://github.com/percy/percy-style.

Installation

Add this line to your application's Gemfile:

group :test, :development do
  gem 'cw-style'
end

Or, for a Ruby library, add this to your gemspec:

spec.add_development_dependency 'cw-style'

And then run:

$ bundle install

Usage

Create a .rubocop.yml with the following directives:

inherit_gem:
  cw-style:
    - default.yml

Now, run:

$ bundle exec rubocop

You do not need to include rubocop directly in your application's dependencies. Cw-style will include a specific version of rubocop and rubocop-rspec that is shared across all projects.

Gem Versioning

  • The gem version needs to be bumped along with any changes to the code.
  • The gemfury-hosted gem is automatically updated when changes to this repo are merged.
  • Apps that include this gem as a dependency need to be updated to use the latest version of the gem.
    • When making changes to this repo, be sure to update the gem version in all apps that use this gem by running bundle update cw-style and commiting the Gemfile.lock changes.

About

charity: water shared style configs.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%