New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rubocop-rspec-extra

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rubocop-rspec-extra

  • 0.2.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Rubocop::Rspec::Extra

GitHub top language GitHub Gem Version Ruby Style Guide CI Maintainability

A RuboCop extension focused on enforcing RSpec. A place where no one is officially employed, but where useful cops can gather.

Installation

Just install the rubocop-rspec-extra gem

gem install rubocop-rspec-extra

or if you use bundler put this in your Gemfile

gem 'rubocop-rspec-extra', require: false

Usage

You need to tell RuboCop to load the RSpec Extra extension. There are two ways to do this:

RuboCop configuration file

Put this into your .rubocop.yml.

require: rubocop-rspec-extra

Alternatively, use the following array notation when specifying multiple extensions.

require:
  - rubocop-rspec
  - rubocop-rspec-extra

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

Command line

rubocop --require rubocop-rspec-extra

Rake task

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

The Cops

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

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

RSpec/Extra/RestrictBlockTag:
  Exclude:
    - spec/my_poorly_named_spec_file.rb

Contributing

Checkout the contribution guidelines.

License

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

FAQs

Package last updated on 29 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc