{"id":13483515,"url":"https://github.com/rubocop/rubocop-rspec","last_synced_at":"2026-01-12T02:38:12.728Z","repository":{"id":13570922,"uuid":"16263354","full_name":"rubocop/rubocop-rspec","owner":"rubocop","description":"Code style checking for RSpec files.","archived":false,"fork":false,"pushed_at":"2025-05-04T14:00:13.000Z","size":4167,"stargazers_count":826,"open_issues_count":115,"forks_count":277,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-05-07T10:40:13.541Z","etag":null,"topics":["lint","rspec","rubocop","ruby","static-analysis","testing"],"latest_commit_sha":null,"homepage":"https://docs.rubocop.org/rubocop-rspec","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rubocop.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"MIT-LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"bbatsov","patreon":"bbatsov","open_collective":"rubocop","tidelift":"rubygems/rubocop","custom":"https://www.paypal.me/bbatsov"}},"created_at":"2014-01-26T22:31:26.000Z","updated_at":"2025-04-28T15:10:32.000Z","dependencies_parsed_at":"2024-02-29T17:30:33.649Z","dependency_job_id":"bccff121-28e8-48ff-839a-006b8e58fbf1","html_url":"https://github.com/rubocop/rubocop-rspec","commit_stats":{"total_commits":1674,"total_committers":169,"mean_commits":9.905325443786982,"dds":0.7951015531660692,"last_synced_commit":"e44a27b7508232b357790a326fe6eef1698f5bca"},"previous_names":["rubocop-hq/rubocop-rspec"],"tags_count":137,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubocop%2Frubocop-rspec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubocop%2Frubocop-rspec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubocop%2Frubocop-rspec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubocop%2Frubocop-rspec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rubocop","download_url":"https://codeload.github.com/rubocop/rubocop-rspec/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253056143,"owners_count":21846697,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["lint","rspec","rubocop","ruby","static-analysis","testing"],"created_at":"2024-07-31T17:01:12.240Z","updated_at":"2026-01-08T00:18:33.168Z","avatar_url":"https://github.com/rubocop.png","language":"Ruby","funding_links":["https://github.com/sponsors/bbatsov","https://patreon.com/bbatsov","https://opencollective.com/rubocop","https://tidelift.com/funding/github/rubygems/rubocop","https://www.paypal.me/bbatsov"],"categories":["Code Formatting","Ruby","Style guides and linters","Code quality"],"sub_categories":[],"readme":"# RuboCop RSpec\n\n[![Join the chat at https://gitter.im/rubocop-rspec/Lobby](https://badges.gitter.im/rubocop-rspec/Lobby.svg)](https://gitter.im/rubocop-rspec/Lobby)\n[![Gem Version](https://badge.fury.io/rb/rubocop-rspec.svg)](https://rubygems.org/gems/rubocop-rspec)\n![CI](https://github.com/rubocop/rubocop-rspec/workflows/CI/badge.svg)\n\n[RSpec](https://rspec.info/)-specific analysis for your projects, as an extension to\n[RuboCop](https://github.com/rubocop/rubocop).\n\n- [Installation](#installation)\n  - [Upgrading to RuboCop RSpec v3.x](#upgrading-to-rubocop-rspec-v3x)\n  - [Upgrading to RuboCop RSpec v2.x](#upgrading-to-rubocop-rspec-v2x)\n- [Usage](#usage)\n- [Documentation](#documentation)\n- [The Cops](#the-cops)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Installation\n\nJust install the `rubocop-rspec` gem\n\n```bash\ngem install rubocop-rspec\n```\n\nor if you use bundler put this in your `Gemfile`\n\n```ruby\ngem 'rubocop-rspec', require: false\n```\n\n### Upgrading to RuboCop RSpec v3.x\n\nRead all the details in our [Upgrade to Version 3.x](https://docs.rubocop.org/rubocop-rspec/3.0/upgrade_to_version_3.html) document.\n\n### Upgrading to RuboCop RSpec v2.x\n\nRead all the details in our [Upgrade to Version 2.x](https://docs.rubocop.org/rubocop-rspec/2.0/upgrade_to_version_2.html) document.\n\n## Usage\n\nYou need to tell RuboCop to load the RSpec extension. There are three\nways to do this:\n\n### RuboCop configuration file\n\nPut this into your `.rubocop.yml`.\n\n```yaml\nplugins: rubocop-rspec\n```\n\nAlternatively, use the following array notation when specifying multiple extensions.\n\n```yaml\nplugins:\n  - rubocop-other-extension\n  - rubocop-rspec\n```\n\nNow you can run `rubocop` and it will automatically load the RuboCop RSpec\ncops together with the standard cops.\n\n\u003e [!NOTE]\n\u003e The plugin system is supported in RuboCop 1.72+. In earlier versions, use `require` instead of `plugins`.\n\n### Command line\n\n```bash\nrubocop --plugin rubocop-rspec\n```\n\n### Rake task\n\n```ruby\nRuboCop::RakeTask.new do |task|\n  task.plugins \u003c\u003c 'rubocop-rspec'\nend\n```\n\n### Code Climate\n\nrubocop-rspec is available on Code Climate as part of the rubocop engine. [Learn More](https://marketing.codeclimate.com/changelog/55a433bbe30ba00852000fac/).\n\n## Documentation\n\nYou can read more about RuboCop RSpec in its [official manual](https://docs.rubocop.org/rubocop-rspec).\n\n## The Cops\n\nAll cops are located under\n[`lib/rubocop/cop/rspec`](lib/rubocop/cop/rspec), and contain\nexamples/documentation.\n\nIn your `.rubocop.yml`, you may treat the RSpec cops just like any other\ncop. For example:\n\n```yaml\nRSpec/SpecFilePathFormat:\n  Exclude:\n    - spec/my_poorly_named_spec_file.rb\n```\n\n## Contributing\n\nCheckout the [contribution guidelines](.github/CONTRIBUTING.md).\n\n## License\n\n`rubocop-rspec` is MIT licensed. [See the accompanying file](MIT-LICENSE.md) for\nthe full text.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubocop%2Frubocop-rspec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubocop%2Frubocop-rspec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubocop%2Frubocop-rspec/lists"}