зеркало из
1
0
Форкнуть 0
This repository provides recommended RuboCop configuration and additional accessibility RuboCop Rails cops for use on open source and internal Rails projects.
Перейти к файлу
Lindsey Wild f2358ca71a
Merge pull request #69 from github/dependabot/bundler/actionview-7.1.3.4
build(deps-dev): bump actionview from 7.1.3.3 to 7.1.3.4
2024-06-10 11:58:13 -04:00
.github major: v1.0.0 2024-02-08 15:37:45 +00:00
bin Adapt repo to be a rules set 2022-08-19 16:32:53 +00:00
config Recommend usage of `require: rubocop-rails-accessibility`; rename RuboCop department to "RailsAccessibility" 2022-10-12 11:58:01 -07:00
guides Recommend usage of `require: rubocop-rails-accessibility`; rename RuboCop department to "RailsAccessibility" 2022-10-12 11:58:01 -07:00
lib patch: 1.0.1 2024-02-08 16:21:23 +00:00
test Update the test setup 2023-10-17 15:04:36 -04:00
.gitignore Move gem requirements to gemspec, run rubocop to autocorrect mistakes 2022-08-22 15:49:52 -07:00
.rspec Initial commit 2022-08-16 14:34:50 +02:00
.rubocop.yml Recommend usage of `require: rubocop-rails-accessibility`; rename RuboCop department to "RailsAccessibility" 2022-10-12 11:58:01 -07:00
CODEOWNERS Add codeowners file 2022-09-05 16:11:46 +02:00
CONTRIBUTING.md Adapt repo to be a rules set 2022-08-19 16:32:53 +00:00
Gemfile Move gem requirements to gemspec, run rubocop to autocorrect mistakes 2022-08-22 15:49:52 -07:00
Gemfile.lock build(deps-dev): bump actionview from 7.1.3.3 to 7.1.3.4 2024-06-10 15:11:20 +00:00
LICENSE Adapt repo to be a rules set 2022-08-19 16:32:53 +00:00
README.md Recommend usage of `require: rubocop-rails-accessibility`; rename RuboCop department to "RailsAccessibility" 2022-10-12 11:58:01 -07:00
Rakefile Move gem requirements to gemspec, run rubocop to autocorrect mistakes 2022-08-22 15:49:52 -07:00
rubocop-rails-accessibility.gemspec major: v1.0.0 2024-02-08 15:37:45 +00:00

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.