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 activejob mvc rubygems rack crash-reporting ruby-gem

Last synced: about 7 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: 4 days ago

Total Commits: 1,757
Total Committers: 174
Avg Commits per committer: 10.098
Development Distribution Score (DDS): 0.789

Commits in past year: 94
Committers in past year: 18
Avg Commits per committer in past year: 5.222
Development Distribution Score (DDS) in past year: 0.67

Name Email Commits
Benjamin Quorning b****n@q****t 371
ydah 1****h 295
Phil Pirozhkov p****a@g****m 227
John Backus j****s@g****m 203
Maxim Krizhanovsky m****m@t****m 50
Maxim Krizhanovsky d****r@g****m 49
Nils Gemeinhardt g****t@n****e 49
Daniel Gollahon d****l@b****m 44
Ryo Nakamura r****a@g****m 36
Tomasz Pajor t****k@p****m 23
Gareth Jones j****8@g****m 22
Maxim Krizhanovski m****i@t****m 20
Dave Corson-Knowles d****s@g****m 16
Andrew Konchin a****n@g****m 16
Koichi ITO k****o@g****m 15
Andy Waite a****8 14
Ian MacLeod i****n@n****t 14
Masataka Pocke Kuwabara k****a@p****e 12
Tejas Bubane t****e@g****m 12
DmitryTsepelev d****v@g****m 10
Earlopain 1****n 10
Lovro Bikic l****c@i****r 8
Yasuhiro Sugawara y****u@s****p 7
John Fragoulis f****s@s****r 6
Daniel Vandersluis d****s@g****m 6
Robert Speicher r****r@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 144 more...

Committer domains:


Issue and Pull Request metadata

Last synced: 4 days ago

Total issues: 190
Total pull requests: 623
Average time to close issues: 8 months
Average time to close pull requests: 24 days
Total issue authors: 118
Total pull request authors: 56
Average comments per issue: 3.68
Average comments per pull request: 2.17
Merged pull request: 484
Bot issues: 0
Bot pull requests: 17

Past year issues: 29
Past year pull requests: 154
Past year average time to close issues: about 2 months
Past year average time to close pull requests: 6 days
Past year issue authors: 26
Past year pull request authors: 18
Past year average comments per issue: 1.83
Past year average comments per pull request: 1.82
Past year merged pull request: 98
Past year bot issues: 0
Past year bot pull requests: 10

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)
  • bkuhlmann (3)
  • AlexWayfer (2)
  • jrmhaig (2)
  • p-datadog (2)
  • fatkodima (2)
  • Darhazer (2)
  • marocchino (2)
  • thisismydesign (2)
  • Tietew (2)

Top Pull Request Authors

  • ydah (236)
  • bquorning (138)
  • corsonknowles (39)
  • G-Rath (28)
  • Earlopain (25)
  • github-actions[bot] (15)
  • pirj (14)
  • r7kamura (14)
  • lovro-bikic (13)
  • dvandersluis (10)
  • koic (10)
  • sriedel (4)
  • naveg (4)
  • cbliard (4)
  • yasu551 (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.8.0 (published 28 days ago)
  • Last Synced: 2025-12-08T00:03:05.450Z (2 days ago)
  • Versions: 138
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 247,596,417 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.8.0 (published 28 days ago)
  • Last Synced: 2025-12-07T04:01:27.495Z (3 days ago)
  • Versions: 138
  • Dependent Packages: 2,513
  • Dependent Repositories: 32,153
  • Downloads: 247,561,662 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.8.0+incompatible (published 28 days ago)
  • Last Synced: 2025-12-06T23:03:16.880Z (3 days ago)
  • Versions: 133
  • 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/danger.yml actions
  • actions/checkout v4 composite
  • ruby/setup-ruby v1 composite

Score: 33.53316891810021