Skip to content

Holds a shared rubocop config file for use on Smile.io Ruby projects.

Notifications You must be signed in to change notification settings

smile-io/smile-rubocop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Smile Rubocop

This gem holds a shared rubocop config for Smile.io Ruby repositories. Installing the gem will also install a version of Rubocop compatible with this config.

Bundler Authentication

This gem is hosted on Github Packages, so you will need to configure bundler to use a github access token in order to install it.

Note: If running bundle config | grep rubygems.pkg.github.com/smile-io returns https://rubygems.pkg.github.com/smile-io/ you've likely already completed this step, and can skip forward to Installation.

  1. Create a Github Personal Access Token (Make sure you set read:packages permission for the token)

  2. Execute:

bundle config https://rubygems.pkg.github.com/smile-io USERNAME:TOKEN

(replacing USERNAME with your github username, and TOKEN with your new access token)

Installation

Add this line to your application's Gemfile:

source "https://rubygems.pkg.github.com/smile-io" do
  gem "smile_rubocop"
end

And then execute:

$ bundle

Usage

To use within your project, create a file named .rubocop.yml in the root of your project, with the following content:

inherit_gem:
  smile_rubocop:
    - default.yml

Development

After checking out the repo, run bin/setup to install dependencies. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then push to the Smile.io Gemfury repo.

About

Holds a shared rubocop config file for use on Smile.io Ruby projects.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Contributors 4

  •  
  •  
  •  
  •