{"id":13878019,"url":"https://github.com/rubocop/rubocop-capybara","last_synced_at":"2025-05-15T18:03:39.615Z","repository":{"id":65142833,"uuid":"578965180","full_name":"rubocop/rubocop-capybara","owner":"rubocop","description":"Code style checking for Capybara files.","archived":false,"fork":false,"pushed_at":"2025-03-12T16:06:09.000Z","size":1001,"stargazers_count":45,"open_issues_count":15,"forks_count":9,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-31T14:16:32.330Z","etag":null,"topics":["capybara","lint","rubocop","ruby","static-analysis","testing"],"latest_commit_sha":null,"homepage":"https://docs.rubocop.org/rubocop-capybara","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":"2022-12-16T10:15:49.000Z","updated_at":"2025-03-20T08:07:32.000Z","dependencies_parsed_at":"2023-02-09T09:30:45.035Z","dependency_job_id":"7cd1e9a7-58b7-462d-b598-f72402275d8c","html_url":"https://github.com/rubocop/rubocop-capybara","commit_stats":{"total_commits":956,"total_committers":125,"mean_commits":7.648,"dds":0.803347280334728,"last_synced_commit":"9acafc089ed43a871cdaf10d7807cb710a71da24"},"previous_names":[],"tags_count":85,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubocop%2Frubocop-capybara","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubocop%2Frubocop-capybara/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubocop%2Frubocop-capybara/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubocop%2Frubocop-capybara/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rubocop","download_url":"https://codeload.github.com/rubocop/rubocop-capybara/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247234921,"owners_count":20905854,"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":["capybara","lint","rubocop","ruby","static-analysis","testing"],"created_at":"2024-08-06T08:01:37.691Z","updated_at":"2025-05-15T18:03:39.609Z","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 Capybara\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-capybara.svg)](https://rubygems.org/gems/rubocop-capybara)\n![CI](https://github.com/rubocop/rubocop-capybara/workflows/CI/badge.svg)\n\n[Capybara](https://teamcapybara.github.io/capybara)-specific analysis for your projects, as an extension to\n[RuboCop](https://github.com/rubocop/rubocop).\n\n## Installation\n\nJust install the `rubocop-capybara` gem\n\n```bash\ngem install rubocop-capybara\n```\n\nor if you use bundler put this in your `Gemfile`\n\n```ruby\ngem 'rubocop-capybara', require: false\n```\n\n## Usage\n\nYou need to tell RuboCop to load the Capybara 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-capybara\n```\n\nAlternatively, use the following array notation when specifying multiple extensions.\n\n```yaml\nplugins:\n  - rubocop-other-extension\n  - rubocop-capybara\n```\n\nNow you can run `rubocop` and it will automatically load the RuboCop Capybara\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-capybara\n```\n\n### Rake task\n\n```ruby\nRuboCop::RakeTask.new do |task|\n  task.plugins \u003c\u003c 'rubocop-capybara'\nend\n```\n\n## Documentation\n\nYou can read more about RuboCop Capybara in its [official manual](https://docs.rubocop.org/rubocop-capybara).\n\n## The Cops\n\nAll cops are located under\n[`lib/rubocop/cop/capybara`](lib/rubocop/cop/capybara), and contain\nexamples/documentation.\n\nIn your `.rubocop.yml`, you may treat the Capybara cops just like any other\ncop. For example:\n\n```yaml\nCapybara/SpecificMatcher:\n  Exclude:\n    - spec/my_spec.rb\n```\n\n## Contributing\n\nCheckout the [contribution guidelines](.github/CONTRIBUTING.md).\n\n## License\n\n`rubocop-capybara` 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-capybara","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubocop%2Frubocop-capybara","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubocop%2Frubocop-capybara/lists"}