{"id":15240490,"url":"https://github.com/caroodev/rubocop-rspec-focused","last_synced_at":"2025-10-05T03:30:49.409Z","repository":{"id":27453127,"uuid":"30931815","full_name":"CarooDev/rubocop-rspec-focused","owner":"CarooDev","description":"RuboCop extension to find focused specs","archived":true,"fork":false,"pushed_at":"2019-09-04T08:27:32.000Z","size":23,"stargazers_count":13,"open_issues_count":0,"forks_count":5,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-01-16T01:32:05.961Z","etag":null,"topics":["linter","rspec","rubocop","ruby"],"latest_commit_sha":null,"homepage":null,"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/CarooDev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-17T18:50:27.000Z","updated_at":"2023-01-28T17:21:04.000Z","dependencies_parsed_at":"2022-09-07T13:12:00.166Z","dependency_job_id":null,"html_url":"https://github.com/CarooDev/rubocop-rspec-focused","commit_stats":null,"previous_names":["lovewithfood/rubocop-rspec-focused"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarooDev%2Frubocop-rspec-focused","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarooDev%2Frubocop-rspec-focused/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarooDev%2Frubocop-rspec-focused/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CarooDev%2Frubocop-rspec-focused/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CarooDev","download_url":"https://codeload.github.com/CarooDev/rubocop-rspec-focused/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235356202,"owners_count":18976819,"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":["linter","rspec","rubocop","ruby"],"created_at":"2024-09-29T11:05:15.438Z","updated_at":"2025-10-05T03:30:48.612Z","avatar_url":"https://github.com/CarooDev.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rubocop-rspec-focused\n\n[![Build Status](https://travis-ci.org/lovewithfood/rubocop-rspec-focused.svg?branch=master)](https://travis-ci.org/lovewithfood/rubocop-rspec-focused)\n\nRuboCop lint for focused specs.\n\n***WARNING: We are no longer maintaining this gem, and will eventually archive this repo. We recommend you use [rubocop-rspec](https://github.com/rubocop-hq/rubocop-rspec) instead.***\n\nThis gem finds `focus: true` and the following method calls:\n\n  * `focus`\n  * `fexample`\n  * `fit`\n  * `fspecify`\n  * `fcontext`\n  * `fdescribe`\n\n```ruby\n# bad\nfit 'does something' do\n  expect(foo).to be_empty\nend\n\nfdescribe Something do\n  it 'does something' do\n    expect(foo).to be_empty\n  end\nend\n\nspecify 'does something', focus: true do\n  expect(foo).to be_empty\nend\n\nspecify 'does something', :focus do\n  expect(foo).to be_empty\nend\n\n# good\nit 'does something' do\n  expect(foo).to be_empty\nend\n\ndescribe Something do\n  it 'does something' do\n    expect(foo).to be_empty\n  end\nend\n\nspecify 'does something' do\n  expect(foo).to be_empty\nend\n```\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'rubocop-rspec-focused', require: false\n```\n\nAnd then execute:\n\n    $ bundle\n\nAnd add this to your `.rubocop.yml`:\n\n```yml\nrequire:\n  - rubocop/rspec/focused\n\nRSpec/Focused:\n  Enabled: true\n```\n\n## Contributing\n\n1. Fork it ( https://github.com/lovewithfood/rubocop-rspec-focused/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n\n\nFor running the spec files, this project depends on RuboCop's spec helpers.\nThis means that in order to run the specs locally, you need a (shallow) clone\nof the RuboCop repository:\n\n```bash\ngit submodule update --init vendor/rubocop\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaroodev%2Frubocop-rspec-focused","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaroodev%2Frubocop-rspec-focused","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaroodev%2Frubocop-rspec-focused/lists"}