All Projects → rubocop → Rubocop Rspec

rubocop / Rubocop Rspec

Licence: mit
Code style checking for RSpec files

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to Rubocop Rspec

luli
A static analysis and linter tool for Lua
Stars: ✭ 45 (-92.54%)
Mutual labels:  lint, static-analysis
rubocop-linter-action
Rubocop Linter Action: A GitHub Action to run Rubocop against your code!
Stars: ✭ 86 (-85.74%)
Mutual labels:  lint, rubocop
lints
Lint all your JavaScript, CSS, HTML, Markdown and Dockerfiles with a single command
Stars: ✭ 14 (-97.68%)
Mutual labels:  lint, static-analysis
D Scanner
Swiss-army knife for D source code
Stars: ✭ 221 (-63.35%)
Mutual labels:  static-analysis, lint
massa
Keep the quality, good practices and security of Rails projects.
Stars: ✭ 61 (-89.88%)
Mutual labels:  rubocop, rspec
duplex
Duplicate code finder for Elixir
Stars: ✭ 20 (-96.68%)
Mutual labels:  lint, static-analysis
shell-linter
A Github Action for ShellCheck
Stars: ✭ 58 (-90.38%)
Mutual labels:  lint, static-analysis
Mutant
Automated code reviews via mutation testing - semantic code coverage.
Stars: ✭ 1,794 (+197.51%)
Mutual labels:  static-analysis, rspec
pahout
A pair programming partner for writing better PHP. Pahout means PHP mahout 🐘
Stars: ✭ 43 (-92.87%)
Mutual labels:  lint, static-analysis
ruby3-rails6-bootstrap-heroku
An opinionated starter application based on Ruby 3.0, Rails 6.1, Webpack 5, Yarn, and Bootstrap 5, deployable on Heroku
Stars: ✭ 21 (-96.52%)
Mutual labels:  rubocop, rspec
Protoc Gen Lint
A plug-in for Google's Protocol Buffers (protobufs) compiler to lint .proto files for style violations.
Stars: ✭ 221 (-63.35%)
Mutual labels:  static-analysis, lint
Exakat
The Exakat Engine : smart static analysis for PHP
Stars: ✭ 346 (-42.62%)
Mutual labels:  static-analysis, lint
Woke
✊ Detect non-inclusive language in your source code.
Stars: ✭ 190 (-68.49%)
Mutual labels:  static-analysis, lint
lint-checks
A set of opinionated and useful lint checks
Stars: ✭ 61 (-89.88%)
Mutual labels:  lint, static-analysis
Cflint
Static code analysis for CFML (a linter)
Stars: ✭ 156 (-74.13%)
Mutual labels:  static-analysis, lint
mllint
`mllint` is a command-line utility to evaluate the technical quality of Python Machine Learning (ML) projects by means of static analysis of the project's repository.
Stars: ✭ 67 (-88.89%)
Mutual labels:  lint, static-analysis
Njsscan
njsscan is a semantic aware SAST tool that can find insecure code patterns in your Node.js applications.
Stars: ✭ 128 (-78.77%)
Mutual labels:  static-analysis, lint
Nodejsscan
nodejsscan is a static security code scanner for Node.js applications.
Stars: ✭ 1,874 (+210.78%)
Mutual labels:  static-analysis, lint
souls
SOULs 🔥 Build Serverless Apps faster like Rails. Powered by Ruby GraphQL, RBS/Steep, Active Record, RSpec, RuboCop, and Google Cloud.
Stars: ✭ 327 (-45.77%)
Mutual labels:  rubocop, rspec
Reviewdog
🐶 Automated code review tool integrated with any code analysis tools regardless of programming language
Stars: ✭ 4,541 (+653.07%)
Mutual labels:  static-analysis, lint

RuboCop RSpec

Join the chat at https://gitter.im/rubocop-rspec/Lobby Gem Version CircleCI Test Coverage Maintainability

RSpec-specific analysis for your projects, as an extension to RuboCop.

Installation

Just install the rubocop-rspec gem

gem install rubocop-rspec

or if you use bundler put this in your Gemfile

gem 'rubocop-rspec', require: false

Upgrading to RuboCop RSpec v2.x

Read all the details in our Upgrade to Version 2.x document.

Usage

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

RuboCop configuration file

Put this into your .rubocop.yml.

require: rubocop-rspec

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

require:
  - rubocop-other-extension
  - rubocop-rspec

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

Command line

rubocop --require rubocop-rspec

Rake task

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

Code Climate

rubocop-rspec is available on Code Climate as part of the rubocop engine. Learn More.

Documentation

You can read more about RuboCop RSpec in its official manual.

The Cops

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

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

RSpec/FilePath:
  Exclude:
    - spec/my_poorly_named_spec_file.rb

Contributing

Checkout the contribution guidelines.

License

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].