Scc::Codestyle
Shared Ruby style guide used by the SCC Team.
Installation
Add this line to your application's Gemfile:
group :test, :development do
gem 'scc-codestyle'
endYou do not need to include RuboCop directly in your application's dependencies. Scc::Codestyle will include a specific version of rubocop and rubocop-rspec that is shared across all projects.
Usage
Create a .rubocop.yml with the following directives:
inherit_gem:
scc-codestyle:
- default.ymlNow, run:
$ bundle exec rubocopYou can also automatically generate a .rubocop_todo.yml file to temporarily ignore failing cops until the offenses are removed from your code base. Run:
$ bundle exec rubocop --auto-gen-configAnd add this to .rubocop.yml below the previous block:
inherit_from: .rubocop_todo.ymlDevelopment
Build the docker container with:
$ make buildAnd then enter in the container with:
$ make console