A summary of data about the Ruby ecosystem.

https://github.com/rubocop/rubocop-rspec

Code style checking for RSpec files.
https://github.com/rubocop/rubocop-rspec

Keywords

lint rspec rubocop ruby static-analysis testing

Keywords from Contributors

capybara static-code-analysis code-formatter activerecord mvc activejob rubygems rack crash-reporting ruby-gem

Last synced: about 21 hours ago
JSON representation

Repository metadata

Code style checking for RSpec files.

README.md

RuboCop RSpec

Join the chat at https://gitter.im/rubocop-rspec/Lobby
Gem Version
CI

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 v3.x

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

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.

plugins: rubocop-rspec

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

plugins:
  - rubocop-other-extension
  - rubocop-rspec

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

[!NOTE]
The plugin system is supported in RuboCop 1.72+. In earlier versions, use require instead of plugins.

Command line

rubocop --plugin rubocop-rspec

Rake task

RuboCop::RakeTask.new do |task|
  task.plugins << '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/SpecFilePathFormat:
  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.


Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 1 day ago

Total Commits: 1,772
Total Committers: 178
Avg Commits per committer: 9.955
Development Distribution Score (DDS): 0.788

Commits in past year: 66
Committers in past year: 21
Avg Commits per committer in past year: 3.143
Development Distribution Score (DDS) in past year: 0.758

Name Email Commits
Benjamin Quorning b****n@q****t 376
ydah 1****h 296
Phil Pirozhkov p****a@g****m 227
John Backus j****s@g****m 203
Maxim Krizhanovsky d****r@g****m 52
Maxim Krizhanovsky m****m@t****m 50
Nils Gemeinhardt g****t@n****e 49
Daniel Gollahon d****l@b****m 44
Ryo Nakamura r****a@g****m 37
Tomasz Pajor t****k@p****m 23
Gareth Jones j****8@g****m 22
Maxim Krizhanovski m****i@t****m 20
Andrew Konchin a****n@g****m 16
Dave Corson-Knowles d****s@g****m 16
Koichi ITO k****o@g****m 15
Ian MacLeod i****n@n****t 14
Andy Waite a****8 14
Tejas Bubane t****e@g****m 12
Masataka Pocke Kuwabara k****a@p****e 12
Earlopain 1****n 10
DmitryTsepelev d****v@g****m 10
Lovro Bikic l****c@i****r 8
Yasuhiro Sugawara y****u@s****p 7
Robert Speicher r****r@g****m 6
John Fragoulis f****s@s****r 6
Daniel Vandersluis d****s@g****m 6
Keiji Yoshimi w****3@g****m 5
Andrew Bromwich a****h@g****m 4
Harry Lewis h****s@q****a 4
Josh Hagins h****h@g****m 4
and 148 more...

Committer domains:


Issue and Pull Request metadata

Last synced: 1 day ago

Total issues: 193
Total pull requests: 636
Average time to close issues: 8 months
Average time to close pull requests: 23 days
Total issue authors: 119
Total pull request authors: 60
Average comments per issue: 3.66
Average comments per pull request: 2.16
Merged pull request: 491
Bot issues: 0
Bot pull requests: 17

Past year issues: 23
Past year pull requests: 97
Past year average time to close issues: 2 months
Past year average time to close pull requests: 9 days
Past year issue authors: 22
Past year pull request authors: 20
Past year average comments per issue: 1.48
Past year average comments per pull request: 1.98
Past year merged pull request: 46
Past year bot issues: 0
Past year bot pull requests: 5

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/rubocop/rubocop-rspec

Top Issue Authors

  • ydakuka (20)
  • bquorning (11)
  • pirj (8)
  • ydah (6)
  • zverok (5)
  • ccutrer (4)
  • Drowze (3)
  • bkuhlmann (3)
  • AlexWayfer (2)
  • corsonknowles (2)
  • jrmhaig (2)
  • p-datadog (2)
  • fatkodima (2)
  • Darhazer (2)
  • marocchino (2)

Top Pull Request Authors

  • ydah (238)
  • bquorning (140)
  • corsonknowles (39)
  • G-Rath (28)
  • Earlopain (25)
  • github-actions[bot] (15)
  • r7kamura (15)
  • pirj (14)
  • lovro-bikic (13)
  • dvandersluis (10)
  • koic (10)
  • Darhazer (6)
  • yasu551 (4)
  • cbliard (4)
  • naveg (4)

Top Issue Labels

  • bug (21)
  • cop (19)
  • enhancement (17)
  • help wanted (5)
  • good first issue (5)
  • refactor (2)
  • Discussion (2)
  • wontfix (2)
  • maintenance (1)
  • rails (1)
  • duplicate (1)
  • discussion (1)

Top Pull Request Labels

  • dependencies (2)
  • github_actions (2)

Package metadata

gem.coop: rubocop-rspec

Code style checking for RSpec files. A plugin for the RuboCop code style enforcing & linting tool.

  • Homepage: https://github.com/rubocop/rubocop-rspec
  • Documentation: http://www.rubydoc.info/gems/rubocop-rspec/
  • Licenses: MIT
  • Latest release: 3.9.0 (published about 2 months ago)
  • Last Synced: 2026-03-02T09:02:55.781Z (1 day ago)
  • Versions: 139
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 258,423,883 Total
  • Docker Downloads: 854,304,009
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 0.052%
    • Downloads: 0.1%
    • Docker downloads count: 0.107%
  • Maintainers (3)
rubygems.org: rubocop-rspec

Code style checking for RSpec files. A plugin for the RuboCop code style enforcing & linting tool.

  • Homepage: https://github.com/rubocop/rubocop-rspec
  • Documentation: http://www.rubydoc.info/gems/rubocop-rspec/
  • Licenses: MIT
  • Latest release: 3.9.0 (published about 2 months ago)
  • Last Synced: 2026-03-02T05:02:29.840Z (1 day ago)
  • Versions: 139
  • Dependent Packages: 2,513
  • Dependent Repositories: 32,153
  • Downloads: 258,394,467 Total
  • Docker Downloads: 854,304,009
  • Rankings:
    • Dependent packages count: 0.022%
    • Downloads: 0.113%
    • Docker downloads count: 0.135%
    • Dependent repos count: 0.188%
    • Average: 0.694%
    • Forks count: 1.607%
    • Stargazers count: 2.1%
  • Maintainers (3)
proxy.golang.org: github.com/rubocop/rubocop-rspec

  • Homepage:
  • Documentation: https://pkg.go.dev/github.com/rubocop/rubocop-rspec#section-documentation
  • Licenses: mit
  • Latest release: v3.9.0+incompatible (published about 2 months ago)
  • Last Synced: 2026-02-26T15:02:52.261Z (5 days ago)
  • Versions: 134
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent packages count: 5.442%
    • Average: 5.624%
    • Dependent repos count: 5.807%

Dependencies

Gemfile rubygems
  • rack >= 0
  • rake >= 0
  • rspec ~> 3.11
  • rubocop-performance ~> 1.7
  • rubocop-rake ~> 0.6
  • yard >= 0
rubocop-rspec.gemspec rubygems
  • rubocop ~> 1.31
.github/workflows/codespell.yml actions
  • actions/checkout v3 composite
  • codespell-project/actions-codespell master composite
.github/workflows/linting.yml actions
  • actions/checkout v3 composite
  • karancode/yamllint-github-action master composite
  • ydah/mdformat-action main composite
.github/workflows/main.yml actions
  • actions/checkout v3 composite
  • ruby/setup-ruby v1 composite
.github/workflows/publish.yml actions
  • actions/checkout v5 composite
  • ruby/setup-ruby v1 composite
  • rubygems/release-gem v1 composite

Score: 33.56462900649203