{"id":14658235,"url":"https://github.com/rubocop/rubocop-rspec_rails","last_synced_at":"2025-04-04T10:02:32.762Z","repository":{"id":229685446,"uuid":"767543824","full_name":"rubocop/rubocop-rspec_rails","owner":"rubocop","description":"Code style checking for Rails-related RSpec files.","archived":false,"fork":false,"pushed_at":"2025-03-10T08:56:33.000Z","size":1198,"stargazers_count":23,"open_issues_count":11,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T09:07:16.244Z","etag":null,"topics":["lint","rails","rspec","rspec-rails","rubocop","ruby","static-analysis","testing"],"latest_commit_sha":null,"homepage":"https://docs.rubocop.org/rubocop-rspec_rails","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},"funding":{"github":"bbatsov","patreon":"bbatsov","open_collective":"rubocop","tidelift":"rubygems/rubocop","custom":"https://www.paypal.me/bbatsov"}},"created_at":"2024-03-05T13:40:02.000Z","updated_at":"2025-03-26T21:03:04.000Z","dependencies_parsed_at":"2024-05-20T10:45:34.058Z","dependency_job_id":"d9338918-23ec-4c20-8a52-9e99e387ce55","html_url":"https://github.com/rubocop/rubocop-rspec_rails","commit_stats":{"total_commits":1090,"total_committers":147,"mean_commits":7.414965986394558,"dds":0.7908256880733945,"last_synced_commit":"41a3bd4b9a275a71b120655bae60b3e1f50b430d"},"previous_names":["rubocop/rubocop-rspec_rails"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubocop%2Frubocop-rspec_rails","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubocop%2Frubocop-rspec_rails/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubocop%2Frubocop-rspec_rails/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubocop%2Frubocop-rspec_rails/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rubocop","download_url":"https://codeload.github.com/rubocop/rubocop-rspec_rails/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247157275,"owners_count":20893220,"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","rails","rspec","rspec-rails","rubocop","ruby","static-analysis","testing"],"created_at":"2024-09-11T18:00:55.971Z","updated_at":"2025-04-04T10:02:32.706Z","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":["Ruby"],"sub_categories":[],"readme":"# RuboCop RSpec Rails\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_rails.svg)](https://rubygems.org/gems/rubocop-rspec_rails)\n![CI](https://github.com/rubocop/rubocop-rspec_rails/workflows/CI/badge.svg)\n\n[RSpec Rails](https://rspec.info/)-specific analysis for your projects, as an extension to\n[RuboCop](https://github.com/rubocop/rubocop).\n\n## Installation\n\n**This gem implicitly depends on the `rubocop-rspec` gem, so you should install it first.**\nJust install the `rubocop-rspec` and `rubocop-rspec_rails` gem\n\n```bash\ngem install rubocop-rspec rubocop-rspec_rails\n```\n\nor if you use bundler put this in your `Gemfile`\n\n```ruby\ngem 'rubocop-rspec', require: false\ngem 'rubocop-rspec_rails', require: false\n```\n\n## Usage\n\nYou need to tell RuboCop to load the RSpec Rails 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_rails\n```\n\nAlternatively, use the following array notation when specifying multiple extensions.\n\n```yaml\nplugins:\n  - rubocop-rspec\n  - rubocop-rspec_rails\n```\n\nNow you can run `rubocop` and it will automatically load the RuboCop RSpec Rails\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_rails\n```\n\n### Rake task\n\n```ruby\nRuboCop::RakeTask.new do |task|\n  task.plugins \u003c\u003c 'rubocop-rspec_rails'\nend\n```\n\n## Documentation\n\nYou can read more about RuboCop RSpec Rails in its [official manual](https://docs.rubocop.org/rubocop-rspec_rails).\n\n## The Cops\n\nAll cops are located under\n[`lib/rubocop/cop/rspec_rails`](lib/rubocop/cop/rspec_rails), and contain\nexamples/documentation.\n\nIn your `.rubocop.yml`, you may treat the RSpec Rails cops just like any other\ncop. For example:\n\n```yaml\nRSpecRails/AvoidSetupHook:\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_rails` 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_rails","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubocop%2Frubocop-rspec_rails","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubocop%2Frubocop-rspec_rails/lists"}