зеркало из
1
0
Форкнуть 0
This repository provides recommended RuboCop configuration and additional accessibility RuboCop Rails cops for use on open source and internal Rails projects.
Перейти к файлу
Joyce Zhu 87042bdd95
Merge pull request #104 from github/dependabot/bundler/actionview-7.1.5
build(deps-dev): bump actionview from 7.1.4.2 to 7.1.5
2024-11-04 18:59:01 -05:00
.github build(deps): bump ruby/setup-ruby from 1.197.0 to 1.199.0 2024-11-04 15:33:35 +00:00
bin
config
guides
lib
test
.gitignore
.rspec
.rubocop.yml
CODEOWNERS
CONTRIBUTING.md
Gemfile
Gemfile.lock Merge branch 'main' into dependabot/bundler/actionview-7.1.5 2024-11-04 18:58:35 -05:00
LICENSE
README.md
Rakefile
rubocop-rails-accessibility.gemspec

README.md

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

Contributing

If you have any suggestion for how this project could be improved, please read the contributing guidelines.