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 ruby-gem
Last synced: about 20 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 (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-11-24T14:52:44.000Z (25 days ago)
- Last Synced: 2025-12-07T09:12:09.434Z (12 days ago)
- Topics: capybara, lint, rubocop, ruby, static-analysis, testing
- Language: Ruby
- Homepage: https://docs.rubocop.org/rubocop-capybara
- Size: 1010 KB
- Stars: 46
- Watchers: 3
- Forks: 11
- Open Issues: 17
- Releases: 7
-
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
- Create event: 9
- Release event: 2
- Issues event: 5
- Watch event: 7
- Delete event: 8
- Issue comment event: 38
- Push event: 28
- Pull request review comment event: 10
- Pull request review event: 16
- Pull request event: 30
- Fork event: 3
Last Year
- Create event: 7
- Release event: 2
- Issues event: 4
- Watch event: 5
- Delete event: 7
- Issue comment event: 35
- Push event: 26
- Pull request review comment event: 10
- Pull request review event: 15
- Pull request event: 26
- Fork event: 3
Committers metadata
Last synced: 1 day ago
Total Commits: 972
Total Committers: 127
Avg Commits per committer: 7.654
Development Distribution Score (DDS): 0.801
Commits in past year: 17
Committers in past year: 8
Avg Commits per committer in past year: 2.125
Development Distribution Score (DDS) in past year: 0.706
| Name | Commits | |
|---|---|---|
| Benjamin Quorning | b****n@q****t | 193 |
| ydah | 1****h | 153 |
| 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
- hey.com: 1
- salsify.com: 1
- skillsmatter.com: 1
- flexe.com: 1
- suse.com: 1
- anthony-robin.fr: 1
- strava.com: 1
- enova.com: 1
- moneyforward.co.jp: 1
- queensu.ca: 1
- peschla.net: 1
- leoarnold.de: 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
- phishme.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
- edgibbs.com: 1
- dana.sh: 1
- me.com: 1
- mainiotech.fi: 1
- johnstonhaus.us: 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: 3 days ago
Total issues: 28
Total pull requests: 167
Average time to close issues: 4 months
Average time to close pull requests: 13 days
Total issue authors: 13
Total pull request authors: 15
Average comments per issue: 1.64
Average comments per pull request: 0.95
Merged pull request: 144
Bot issues: 0
Bot pull requests: 6
Past year issues: 2
Past year pull requests: 28
Past year average time to close issues: about 2 months
Past year average time to close pull requests: 4 days
Past year issue authors: 2
Past year pull request authors: 10
Past year average comments per issue: 1.0
Past year average comments per pull request: 1.07
Past year merged pull request: 20
Past year bot issues: 0
Past year bot pull requests: 3
Top Issue Authors
- ydah (9)
- boris-petrov (5)
- jcoyne (2)
- tagliala (2)
- ydakuka (2)
- fdr (1)
- mockdeep (1)
- phil-workato (1)
- FunnyHector (1)
- Tietew (1)
- tricknotes (1)
- hatsu38 (1)
- rebeccafae (1)
Top Pull Request Authors
- ydah (127)
- bquorning (8)
- Earlopain (6)
- pirj (5)
- github-actions[bot] (4)
- 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: 2
-
Total downloads:
- rubygems: 171,000,629 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: 16
- 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.22.1 (published 9 months ago)
- Last Synced: 2025-12-16T23:02:32.123Z (2 days ago)
- Versions: 8
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 85,521,425 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.22.1 (published 9 months ago)
- Last Synced: 2025-12-16T11:11:24.556Z (3 days ago)
- Versions: 8
- Dependent Packages: 24
- Dependent Repositories: 1,707
- Downloads: 85,479,204 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)
Dependencies
- actions/checkout v3 composite
- codespell-project/actions-codespell master composite
- actions/checkout v3 composite
- karancode/yamllint-github-action master composite
- ydah/mdformat-action main 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
Score: 30.022762707597423