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.
- Host: GitHub
- URL: https://github.com/rubocop/rubocop-rspec
- Owner: rubocop
- License: mit
- Created: 2014-01-26T22:31:26.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2026-02-24T22:49:18.000Z (7 days ago)
- Last Synced: 2026-02-26T19:43:55.413Z (5 days ago)
- Topics: lint, rspec, rubocop, ruby, static-analysis, testing
- Language: Ruby
- Homepage: https://docs.rubocop.org/rubocop-rspec
- Size: 4.12 MB
- Stars: 838
- Watchers: 17
- Forks: 289
- Open Issues: 115
- 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: 55
- Pull request event: 198
- Fork event: 12
- Issues event: 62
- Watch event: 37
- Issue comment event: 335
- Push event: 184
- Pull request review event: 403
- Pull request review comment event: 303
- Create event: 64
Last Year
- Release event: 3
- Delete event: 29
- Pull request event: 105
- Fork event: 8
- Issues event: 45
- Watch event: 20
- Issue comment event: 164
- Push event: 93
- Pull request review comment event: 189
- Pull request review event: 240
- Create event: 34
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 | 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:
- gitlab.com: 3
- renuo.ch: 2
- toptal.com: 2
- gocardless.com: 2
- leitzen.de: 1
- pobox.com: 1
- marc-andre.ca: 1
- leoarnold.de: 1
- eike.se: 1
- shakenbu.org: 1
- sensortower.com: 1
- moneyforward.co.jp: 1
- enova.com: 1
- strava.com: 1
- peschla.net: 1
- withpersona.com: 1
- financeit.io: 1
- hey.com: 1
- salsify.com: 1
- optim.co.jp: 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
- batsov.com: 1
- trick-with.net: 1
- anthony-robin.fr: 1
- luppri.ch: 1
- trux.info: 1
- phishme.com: 1
- develophp.org: 1
- cimon.io: 1
- wwwh.com: 1
- nextcapital.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
- flexe.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
- learnzillion.com: 1
- skillsmatter.com: 1
- civisanalytics.com: 1
- didww.com: 1
- google.com: 1
- vinterior.co: 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
- u2i.com: 1
- johnstonhaus.us: 1
- bestweb.com.ua: 1
- tobiasmaier.info: 1
- schellingpoint.com: 1
- welther.de: 1
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
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
- Total packages: 3
-
Total downloads:
- rubygems: 516,818,350 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: 412
- 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 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
- 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.56462900649203