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 21 hours ago
JSON representation
Repository metadata
Code style checking for RSpec files.
- Host: GitHub
- URL: https://github.com/rubocop/rubocop-rspec
- Owner: rubocop
- License: mit
- Created: 2014-01-26T22:31:26.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2026-03-15T15:35:14.000Z (about 2 months ago)
- Last Synced: 2026-04-22T14:33:28.675Z (8 days ago)
- Topics: lint, rspec, rubocop, ruby, static-analysis, testing
- Language: Ruby
- Homepage: https://docs.rubocop.org/rubocop-rspec
- Size: 4.15 MB
- Stars: 842
- Watchers: 16
- Forks: 290
- Open Issues: 116
- Releases: 136
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- License: MIT-LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
README.md
RuboCop RSpec
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, userequireinstead ofplugins.
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
- Name: RuboCop Headquarters
- Login: rubocop
- Email:
- Kind: organization
- Description: We're committed to promoting the best Ruby programming practices and helping people write better Ruby applications.
- Website: https://rubocop.org
- Location:
- Twitter:
- Company:
- Icon url: https://avatars.githubusercontent.com/u/10871348?v=4
- Repositories: 28
- Last ynced at: 2024-03-25T19:40:52.798Z
- Profile URL: https://github.com/rubocop
GitHub Events
Total
- Release event: 6
- Delete event: 57
- Pull request event: 201
- Fork event: 13
- Issues event: 63
- Watch event: 38
- Issue comment event: 340
- Push event: 189
- Pull request review event: 410
- Pull request review comment event: 308
- Create event: 64
Last Year
- Release event: 1
- Delete event: 15
- Pull request event: 47
- Fork event: 4
- Issues event: 25
- Watch event: 11
- Issue comment event: 82
- Push event: 58
- Pull request review comment event: 80
- Pull request review event: 100
- Create event: 16
Committers metadata
Last synced: 3 days ago
Total Commits: 1,783
Total Committers: 179
Avg Commits per committer: 9.961
Development Distribution Score (DDS): 0.789
Commits in past year: 63
Committers in past year: 19
Avg Commits per committer in past year: 3.316
Development Distribution Score (DDS) in past year: 0.794
| Name | 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 |
| Dave Corson-Knowles | d****s@g****m | 16 |
| Andrew Konchin | a****n@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 |
| Yauheni Dakuka | y****a@g****m | 11 |
| DmitryTsepelev | d****v@g****m | 10 |
| Earlopain | 1****n | 10 |
| Lovro Bikic | l****c@i****r | 8 |
| Yasuhiro Sugawara | y****u@s****p | 7 |
| Daniel Vandersluis | d****s@g****m | 6 |
| John Fragoulis | f****s@s****r | 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 |
| and 149 more... | ||
Committer domains:
- gitlab.com: 3
- toptal.com: 2
- renuo.ch: 2
- gocardless.com: 2
- leitzen.de: 1
- pobox.com: 1
- marc-andre.ca: 1
- leoarnold.de: 1
- shakenbu.org: 1
- eike.se: 1
- sensortower.com: 1
- peschla.net: 1
- moneyforward.co.jp: 1
- enova.com: 1
- strava.com: 1
- withpersona.com: 1
- civisanalytics.com: 1
- skillsmatter.com: 1
- learnzillion.com: 1
- wwwh.com: 1
- shopkeep.com: 1
- quorning.net: 1
- tradeo.com: 1
- nilsgemeinhardt.de: 1
- blockscore.com: 1
- polishgeeks.com: 1
- nevir.net: 1
- pocke.me: 1
- infinum.hr: 1
- sonicgarden.jp: 1
- skroutz.gr: 1
- queensu.ca: 1
- anthony-robin.fr: 1
- trick-with.net: 1
- batsov.com: 1
- luppri.ch: 1
- trux.info: 1
- phishme.com: 1
- develophp.org: 1
- cimon.io: 1
- hey.com: 1
- ferrandis.cool: 1
- yahoo.es: 1
- fer.hr: 1
- 304.ru: 1
- edgibbs.com: 1
- dana.sh: 1
- me.com: 1
- bmulholland.ca: 1
- mainiotech.fi: 1
- financeit.io: 1
- u2i.com: 1
- hardscrabble.net: 1
- matijs.net: 1
- aboutsource.net: 1
- reitermark.us: 1
- emporatitle.com: 1
- jetbuilt.com: 1
- jaredbeck.com: 1
- out.fund: 1
- elliterate.com: 1
- salsify.com: 1
- optim.co.jp: 1
- didww.com: 1
- google.com: 1
- vinterior.co: 1
- flexe.com: 1
- znuny.com: 1
- quang.be: 1
- centrum.cz: 1
- landscapehub.com: 1
- linnane.io: 1
- jmorgan.org: 1
- globis.co.jp: 1
- higher.lv: 1
- johnstonhaus.us: 1
- bestweb.com.ua: 1
- tobiasmaier.info: 1
- schellingpoint.com: 1
- welther.de: 1
- nextcapital.com: 1
Issue and Pull Request metadata
Last synced: 9 days ago
Total issues: 194
Total pull requests: 638
Average time to close issues: 8 months
Average time to close pull requests: 23 days
Total issue authors: 120
Total pull request authors: 61
Average comments per issue: 3.68
Average comments per pull request: 2.17
Merged pull request: 492
Bot issues: 0
Bot pull requests: 17
Past year issues: 18
Past year pull requests: 55
Past year average time to close issues: 20 days
Past year average time to close pull requests: 6 days
Past year issue authors: 18
Past year pull request authors: 18
Past year average comments per issue: 1.61
Past year average comments per pull request: 1.67
Past year merged pull request: 25
Past year bot issues: 0
Past year bot pull requests: 3
Top Issue Authors
- ydakuka (20)
- bquorning (11)
- pirj (8)
- ydah (6)
- zverok (5)
- ccutrer (4)
- bkuhlmann (3)
- Drowze (3)
- dmke (2)
- backus (2)
- franzliedke (2)
- Tietew (2)
- Earlopain (2)
- AlexWayfer (2)
- Darhazer (2)
Top Pull Request Authors
- ydah (238)
- bquorning (140)
- corsonknowles (39)
- G-Rath (28)
- Earlopain (25)
- r7kamura (15)
- github-actions[bot] (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)
- good first issue (5)
- help wanted (5)
- Discussion (2)
- wontfix (2)
- refactor (2)
- maintenance (1)
- rails (1)
- duplicate (1)
- discussion (1)
Top Pull Request Labels
- github_actions (2)
- dependencies (2)
Package metadata
- Total packages: 4
-
Total downloads:
- rubygems: 537,051,192 total
- Total docker downloads: 1,708,608,018
- Total dependent packages: 2,513 (may contain duplicates)
- Total dependent repositories: 32,153 (may contain duplicates)
- Total versions: 413
- Total maintainers: 3
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 4 months ago)
- Last Synced: 2026-04-28T02:01:10.432Z (3 days ago)
- Versions: 139
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 268,479,505 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 4 months ago)
- Last Synced: 2026-04-28T13:00:49.194Z (2 days ago)
- Versions: 139
- Dependent Packages: 2,513
- Dependent Repositories: 32,153
- Downloads: 268,571,687 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 4 months ago)
- Last Synced: 2026-04-26T11:16:48.215Z (4 days ago)
- Versions: 134
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent packages count: 5.442%
- Average: 5.624%
- Dependent repos count: 5.807%
guix: ruby-rubocop-rspec
Code style checking for RSpec files
- Homepage: https://github.com/rubocop/rubocop-rspec
- Documentation: https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/ruby-xyz.scm#n1713
- Licenses: expat
- Latest release: 2.26.0 (published about 2 months ago)
- Last Synced: 2026-04-27T16:20:10.315Z (3 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
Dependencies
- rack >= 0
- rake >= 0
- rspec ~> 3.11
- rubocop-performance ~> 1.7
- rubocop-rake ~> 0.6
- yard >= 0
- rubocop ~> 1.31
- actions/checkout v3 composite
- codespell-project/actions-codespell master composite
- actions/checkout v3 composite
- karancode/yamllint-github-action master composite
- ydah/mdformat-action main composite
- actions/checkout v3 composite
- ruby/setup-ruby v1 composite
- actions/checkout v5 composite
- ruby/setup-ruby v1 composite
- rubygems/release-gem v1 composite
Score: 33.58451457997826