0.0
A long-lived project that still receives updates
A collection of RuboCop cops to check for vendor integration in Ruby code.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

rubocop-vendor

Gem Version GitHub Actions Badge

Vendor integration analysis for your projects, as an extension to RuboCop.

Installation

Just install the rubocop-vendor gem

gem install rubocop-vendor

or if you use bundler put this in your Gemfile

gem 'rubocop-vendor'

Usage

You need to tell RuboCop to load the Vendor extension. There are three ways to do this:

RuboCop configuration file

Put this into your .rubocop.yml.

require: rubocop-vendor

Now you can run rubocop and it will automatically load the RuboCop Vendor cops together with the standard cops.

Command line

rubocop --require rubocop-vendor

Rake task

RuboCop::RakeTask.new do |task|
  task.requires << 'rubocop-vendor'
end

The Cops

All cops are located under lib/rubocop/cop/vendor, and contain examples/documentation.

In your .rubocop.yml, you may treat the Vendor cops just like any other cop. For example:

Vendor/RollbarLogger:
  Exclude:
    - lib/example.rb

Contributing

Checkout the contribution guidelines.

License

rubocop-vendor is MIT licensed. See the accompanying file for the full text.