https://github.com/rubocop/rubocop-capybara
Code style checking for Capybara files.
https://github.com/rubocop/rubocop-capybara
Keywords
capybara lint rubocop ruby static-analysis testing
Keywords from Contributors
rspec static-code-analysis code-formatter activerecord activejob mvc rubygems rack crash-reporting sinatra
Last synced: about 3 hours ago
JSON representation
Repository metadata
Code style checking for Capybara files.
- Host: GitHub
- URL: https://github.com/rubocop/rubocop-capybara
- Owner: rubocop
- License: mit
- Created: 2022-12-16T10:15:49.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2026-05-01T14:52:03.000Z (about 2 months ago)
- Last Synced: 2026-06-09T00:03:02.411Z (7 days ago)
- Topics: capybara, lint, rubocop, ruby, static-analysis, testing
- Language: Ruby
- Homepage: https://docs.rubocop.org/rubocop-capybara
- Size: 1.01 MB
- Stars: 61
- Watchers: 3
- Forks: 12
- Open Issues: 15
- Releases: 8
-
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 Capybara
Capybara-specific analysis for your projects, as an extension to
RuboCop.
Installation
Just install the rubocop-capybara gem
gem install rubocop-capybara
or if you use bundler put this in your Gemfile
gem 'rubocop-capybara', require: false
Usage
You need to tell RuboCop to load the Capybara extension. There are three
ways to do this:
RuboCop configuration file
Put this into your .rubocop.yml.
plugins: rubocop-capybara
Alternatively, use the following array notation when specifying multiple extensions.
plugins:
- rubocop-other-extension
- rubocop-capybara
Now you can run rubocop and it will automatically load the RuboCop Capybara
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-capybara
Rake task
RuboCop::RakeTask.new do |task|
task.plugins << 'rubocop-capybara'
end
Documentation
You can read more about RuboCop Capybara in its official manual.
The Cops
All cops are located under
lib/rubocop/cop/capybara, and contain
examples/documentation.
In your .rubocop.yml, you may treat the Capybara cops just like any other
cop. For example:
Capybara/SpecificMatcher:
Exclude:
- spec/my_spec.rb
Contributing
Checkout the contribution guidelines.
License
rubocop-capybara 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
- Release event: 2
- Delete event: 14
- Pull request event: 33
- Fork event: 3
- Issues event: 8
- Watch event: 11
- Issue comment event: 39
- Push event: 38
- Pull request review comment event: 11
- Pull request review event: 19
- Create event: 15
Last Year
- Delete event: 6
- Pull request event: 4
- Fork event: 1
- Issues event: 4
- Watch event: 6
- Issue comment event: 8
- Push event: 18
- Pull request review comment event: 1
- Pull request review event: 5
- Create event: 6
Committers metadata
Last synced: 4 days ago
Total Commits: 983
Total Committers: 127
Avg Commits per committer: 7.74
Development Distribution Score (DDS): 0.8
Commits in past year: 16
Committers in past year: 4
Avg Commits per committer in past year: 4.0
Development Distribution Score (DDS) in past year: 0.438
| Name | Commits | |
|---|---|---|
| Benjamin Quorning | b****n@q****t | 197 |
| ydah | 1****h | 160 |
| Phil Pirozhkov | p****a@g****m | 132 |
| John Backus | j****s@g****m | 104 |
| Nils Gemeinhardt | g****t@n****e | 43 |
| Maxim Krizhanovsky | m****m@t****m | 35 |
| Maxim Krizhanovsky | d****r@g****m | 28 |
| Tomasz Pajor | t****k@p****m | 20 |
| Ryo Nakamura | r****a@g****m | 19 |
| Maxim Krizhanovski | m****i@t****m | 17 |
| Daniel Gollahon | d****l@b****m | 14 |
| Ian MacLeod | i****n@n****t | 12 |
| Tejas Bubane | t****e@g****m | 11 |
| Andy Waite | a****8 | 9 |
| Koichi ITO | k****o@g****m | 8 |
| Masataka Pocke Kuwabara | k****a@p****e | 8 |
| John Fragoulis | f****s@s****r | 6 |
| Robert Speicher | r****r@g****m | 6 |
| Keiji Yoshimi | w****3@g****m | 4 |
| Gareth Jones | j****8@g****m | 4 |
| Daniel Vandersluis | d****s@g****m | 4 |
| Andrew Bromwich | a****h@g****m | 4 |
| Nick Campbell | n****l@g****m | 3 |
| Bozhidar Batsov | b****r@b****m | 3 |
| Daniel Colson | d****n@g****m | 3 |
| Earlopain | 1****n | 3 |
| Josh Hagins | h****h@g****m | 3 |
| Ulugbek Tuychiev | t****9@g****m | 3 |
| Viacheslav Mefodin | m****v@g****m | 3 |
| dependabot[bot] | 4****] | 3 |
| and 97 more... | ||
Committer domains:
- gitlab.com: 2
- renuo.ch: 2
- toptal.com: 2
- gocardless.com: 2
- skillsmatter.com: 1
- salsify.com: 1
- flexe.com: 1
- hey.com: 1
- mainiotech.fi: 1
- enova.com: 1
- strava.com: 1
- anthony-robin.fr: 1
- moneyforward.co.jp: 1
- leoarnold.de: 1
- peschla.net: 1
- queensu.ca: 1
- hardscrabble.net: 1
- batsov.com: 1
- skroutz.gr: 1
- pocke.me: 1
- nevir.net: 1
- blockscore.com: 1
- polishgeeks.com: 1
- tradeo.com: 1
- nilsgemeinhardt.de: 1
- edgibbs.com: 1
- u2i.com: 1
- jetbuilt.com: 1
- jaredbeck.com: 1
- out.fund: 1
- elliterate.com: 1
- nextcapital.com: 1
- ferrandis.cool: 1
- eike.se: 1
- phishme.com: 1
- dana.sh: 1
- me.com: 1
- johnstonhaus.us: 1
- suse.com: 1
- znuny.com: 1
- quang.be: 1
- centrum.cz: 1
- jmorgan.org: 1
- globis.co.jp: 1
- vinterior.co: 1
- google.com: 1
- civisanalytics.com: 1
- learnzillion.com: 1
- wwwh.com: 1
- quorning.net: 1
Issue and Pull Request metadata
Last synced: 9 days ago
Total issues: 31
Total pull requests: 176
Average time to close issues: 3 months
Average time to close pull requests: 12 days
Total issue authors: 15
Total pull request authors: 15
Average comments per issue: 1.52
Average comments per pull request: 0.95
Merged pull request: 148
Bot issues: 0
Bot pull requests: 7
Past year issues: 3
Past year pull requests: 16
Past year average time to close issues: 8 days
Past year average time to close pull requests: 7 days
Past year issue authors: 3
Past year pull request authors: 6
Past year average comments per issue: 0.33
Past year average comments per pull request: 0.63
Past year merged pull request: 6
Past year bot issues: 0
Past year bot pull requests: 2
Top Issue Authors
- ydah (9)
- boris-petrov (5)
- jcoyne (3)
- tagliala (2)
- ydakuka (2)
- fdr (1)
- mockdeep (1)
- enescakir (1)
- phil-workato (1)
- FunnyHector (1)
- Tietew (1)
- tricknotes (1)
- hatsu38 (1)
- G-Rath (1)
- rebeccafae (1)
Top Pull Request Authors
- ydah (132)
- bquorning (11)
- Earlopain (6)
- pirj (5)
- github-actions[bot] (5)
- dvandersluis (3)
- koic (2)
- boris-petrov (2)
- digitaltom (2)
- dependabot[bot] (2)
- jdufresne (2)
- OskarsEzerins (1)
- maxjacobson (1)
- nzlaura (1)
- JulienItard (1)
Top Issue Labels
- cop (10)
- enhancement (2)
- bug (1)
Top Pull Request Labels
- dependencies (2)
- github_actions (1)
Package metadata
- Total packages: 4
-
Total downloads:
- rubygems: 191,190,558 total
- Total docker downloads: 1,195,391,044
- Total dependent packages: 24 (may contain duplicates)
- Total dependent repositories: 1,707 (may contain duplicates)
- Total versions: 100
- Total maintainers: 4
gem.coop: rubocop-capybara
Code style checking for Capybara test files (RSpec, Cucumber, Minitest). A plugin for the RuboCop code style enforcing & linting tool.
- Homepage: https://github.com/rubocop/rubocop-capybara
- Documentation: http://www.rubydoc.info/gems/rubocop-capybara/
- Licenses: MIT
- Latest release: 2.23.0 (published about 2 months ago)
- Last Synced: 2026-06-14T13:33:28.872Z (1 day ago)
- Versions: 9
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 95,606,077 Total
- Docker Downloads: 597,695,522
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 0.121%
- Docker downloads count: 0.153%
- Downloads: 0.331%
- Maintainers (4)
rubygems.org: rubocop-capybara
Code style checking for Capybara test files (RSpec, Cucumber, Minitest). A plugin for the RuboCop code style enforcing & linting tool.
- Homepage: https://github.com/rubocop/rubocop-capybara
- Documentation: http://www.rubydoc.info/gems/rubocop-capybara/
- Licenses: MIT
- Latest release: 2.23.0 (published about 2 months ago)
- Last Synced: 2026-06-13T02:00:48.262Z (3 days ago)
- Versions: 9
- Dependent Packages: 24
- Dependent Repositories: 1,707
- Downloads: 95,584,481 Total
- Docker Downloads: 597,695,522
-
Rankings:
- Docker downloads count: 0.188%
- Downloads: 0.732%
- Dependent repos count: 0.761%
- Dependent packages count: 1.299%
- Average: 4.378%
- Stargazers count: 9.947%
- Forks count: 13.341%
- Maintainers (4)
proxy.golang.org: github.com/rubocop/rubocop-capybara
- Homepage:
- Documentation: https://pkg.go.dev/github.com/rubocop/rubocop-capybara#section-documentation
- Licenses:
- Latest release: v2.23.0+incompatible (published about 2 months ago)
- Last Synced: 2026-06-13T02:00:49.760Z (3 days ago)
- Versions: 81
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent packages count: 4.811%
- Average: 4.973%
- Dependent repos count: 5.135%
guix: ruby-rubocop-capybara
Capybara plugin for RuboCop
- Homepage: https://github.com/rubocop/rubocop-capybara
- Documentation: https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/ruby-xyz.scm#n1629
- Licenses: mit
- Latest release: 2.21.0 (published 4 months ago)
- Last Synced: 2026-04-27T16:16:53.820Z (about 2 months ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
Dependencies
- actions/checkout v3 composite
- codespell-project/actions-codespell master composite
- actions/checkout v3 composite
- ruby/setup-ruby v1 composite
- bump >= 0
- rack >= 0
- rake >= 0
- rspec ~> 3.11
- rubocop-performance ~> 1.7
- rubocop-rake ~> 0.6
- rubocop-rspec ~> 2.16.0
- yard >= 0
- rubocop ~> 1.41
- actions/checkout v6 composite
- ruby/setup-ruby v1 composite
- actions/checkout v6 composite
- ydah/mdformat-action main composite
- actions/checkout v6 composite
- ruby/setup-ruby v1 composite
- rubygems/release-gem v1 composite
- actions/checkout v6 composite
- karancode/yamllint-github-action master composite
Score: 30.225029287174138