Skip to content

cartoway/rubocop-policy

Repository files navigation

RubocopPolicy

Test Deliver

This is Cartoroute's rubocop rules for all its projects.

Installation

Add this line to your application's Gemfile:

  gem 'rubocop-policy', github: 'cartoway/rubocop-policy'

And then execute:

$ bundle install

Create a .rubocop.yml file at root of your project and add the following lines in it

inherit_gem:
  rubocop-policy:
    - rubocop-default.yml

Pour les utilisateurs de Sublime, aller dans Preferences > Package Settings > Sublime Linter > Settings

{
    "linters": {
        "rubocop": {
            "use_bundle_exec": true,
            "env": {
                "PATH": "~/.rbenv/shims:$PATH"
            },
        }
    }
}

Ajouter aussi le chemin exact du bundler. exemple : ~/.rbenv/shims/bundle

{
    paths": {
	    "linux": ["~/npm_folder/bin", "~/.rbenv/shims", "~/.rbenv/shims/bundle"],
	    "osx": [],
	    "windows": []
	},
}

License

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors