Vendor integration analysis for your projects, as an extension to RuboCop.
Just install the rubocop-vendor gem
gem install rubocop-vendoror if you use bundler put this in your Gemfile
gem 'rubocop-vendor'You need to tell RuboCop to load the Vendor extension. There are three ways to do this:
Put this into your .rubocop.yml.
plugins:
- rubocop-vendorNow you can run rubocop and it will automatically load the RuboCop Vendor
cops together with the standard cops.
rubocop --require rubocop-vendorRuboCop::RakeTask.new do |task|
task.requires << 'rubocop-vendor'
endAll 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.rbCheckout the contribution guidelines.
rubocop-vendor is MIT licensed. See the accompanying file for
the full text.