mirror of
https://github.com/github/rubocop-rails-accessibility
synced 2026-07-21 06:03:45 +00:00
No description
- Ruby 98.7%
- Shell 1.3%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
Bumps the all-dependencies group with 1 update: [ruby/setup-ruby](https://github.com/ruby/setup-ruby). Updates `ruby/setup-ruby` from 1.316.0 to 1.319.0 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/ruby/setup-ruby/releases">ruby/setup-ruby's releases</a>.</em></p> <blockquote> <h2>v1.319.0</h2> <h2>What's Changed</h2> <ul> <li>Add ruby-3.3.12 by <a href="https://github.com/ruby-builder-bot"><code>@ruby-builder-bot</code></a> in <a href="https://redirect.github.com/ruby/setup-ruby/pull/930">ruby/setup-ruby#930</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/ruby/setup-ruby/compare/v1.318.0...v1.319.0">https://github.com/ruby/setup-ruby/compare/v1.318.0...v1.319.0</a></p> <h2>v1.318.0</h2> <h2>What's Changed</h2> <ul> <li>Update CRuby releases on Windows by <a href="https://github.com/ruby-builder-bot"><code>@ruby-builder-bot</code></a> in <a href="https://redirect.github.com/ruby/setup-ruby/pull/929">ruby/setup-ruby#929</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/ruby/setup-ruby/compare/v1.317.0...v1.318.0">https://github.com/ruby/setup-ruby/compare/v1.317.0...v1.318.0</a></p> <h2>v1.317.0</h2> <h2>What's Changed</h2> <ul> <li>Add ruby-4.0.6 by <a href="https://github.com/ruby-builder-bot"><code>@ruby-builder-bot</code></a> in <a href="https://redirect.github.com/ruby/setup-ruby/pull/928">ruby/setup-ruby#928</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/ruby/setup-ruby/compare/v1.316.0...v1.317.0">https://github.com/ruby/setup-ruby/compare/v1.316.0...v1.317.0</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
||
| .github | ||
| bin | ||
| config | ||
| guides | ||
| lib | ||
| test | ||
| .gitignore | ||
| .rspec | ||
| .rubocop.yml | ||
| CODEOWNERS | ||
| CONTRIBUTING.md | ||
| Gemfile | ||
| Gemfile.lock | ||
| LICENSE | ||
| Rakefile | ||
| README.md | ||
| rubocop-rails-accessibility.gemspec | ||
RuboCop Rails Accessibility
This repository provides recommended RuboCop configuration and additional accessibility RuboCop Rails cops for use on open source and internal Rails projects.
Installation
Install the rubocop-rails-accessibility gem
gem install rubocop-rails-accessibility
or if you use bundler put this in your Gemfile
gem 'rubocop-rails-accessibility'
gem "rubocop-performance", require: false
gem "rubocop-rails", require: false
Usage
You need to tell RuboCop to load RuboCop Rails Accessibility.
Put this into your .rubocop.yml.
require:
- rubocop-rails-accessibility
Testing
Install all of the required gems
bundle install
Run the tests
bundle exec rake
The Cops
All cops are located under
lib/rubocop/cop/rails_accessibility, and contain
examples/documentation.
Rules
- RailsAccessibility/ImageHasAlt
- RailsAccessibility/NoPositiveTabindex
- RailsAccessibility/NoRedundantImageAlt
Contributing
If you have any suggestion for how this project could be improved, please read the contributing guidelines.