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.
- Host: GitHub
- URL: https://github.com/rubocop/rubocop-rspec
- Owner: rubocop
- License: mit
- Created: 2014-01-26T22:31:26.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2025-12-03T13:17:12.000Z (7 days ago)
- Last Synced: 2025-12-04T08:59:51.111Z (6 days ago)
- Topics: lint, rspec, rubocop, ruby, static-analysis, testing
- Language: Ruby
- Homepage: https://docs.rubocop.org/rubocop-rspec
- Size: 4.01 MB
- Stars: 837
- Watchers: 18
- Forks: 284
- Open Issues: 117
- Releases: 135
-
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
- Create event: 60
- Release event: 5
- Issues event: 59
- Watch event: 37
- Delete event: 52
- Issue comment event: 323
- Push event: 172
- Pull request event: 191
- Pull request review event: 396
- Pull request review comment event: 299
- Fork event: 12
Last Year
- Create event: 50
- Release event: 4
- Issues event: 51
- Watch event: 31
- Delete event: 41
- Issue comment event: 247
- Push event: 129
- Pull request review comment event: 239
- Pull request review event: 313
- Pull request event: 156
- Fork event: 11
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 | 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:
- gitlab.com: 3
- toptal.com: 2
- renuo.ch: 2
- gocardless.com: 2
- cimon.io: 1
- leitzen.de: 1
- pobox.com: 1
- marc-andre.ca: 1
- leoarnold.de: 1
- shakenbu.org: 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
- hey.com: 1
- nextcapital.com: 1
- ferrandis.cool: 1
- yahoo.es: 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
- flexe.com: 1
- salsify.com: 1
- optim.co.jp: 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
- 304.ru: 1
- jmorgan.org: 1
- globis.co.jp: 1
- johnstonhaus.us: 1
- bestweb.com.ua: 1
- tobiasmaier.info: 1
- schellingpoint.com: 1
- welther.de: 1
- elliterate.com: 1
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
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
- Total packages: 3
-
Total downloads:
- rubygems: 495,158,079 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: 409
- 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.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
- 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 v4 composite
- ruby/setup-ruby v1 composite
Score: 33.53316891810021