Skip to content

Commit

Permalink
Delete GitHub/Accessibility cops; point to rubocop-rails-accessibility
Browse files Browse the repository at this point in the history
- Accessibility rules used to live in this gem, but
  https://github.com/github/rubocop-rails-accessibility now exists with
  the rules that were here and more. The monolith uses the new gem.
- For projects that haven't moved over yet, signpost in the README (and
  the eventual new gem version release notes, please) that accessibility
  cops have moved.
- Fixes github/code-scanning#7337.
  • Loading branch information
issyl0 authored Oct 10, 2022
1 parent 95d99fd commit 417fc01
Show file tree
Hide file tree
Showing 10 changed files with 2 additions and 256 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ inherit_gem:
rubocop-github:
- config/default.yml
- config/rails.yml
- config/accessibility.yml
```
💭 Looking for `config/accessibility.yml` and the `GitHub/Accessibility` configs? [They have moved](https://github.com/github/rubocop-rails-accessibility) to a new gem.

### Legacy usage

If you are using a rubocop version < 1.0.0, you can use rubocop-github version
Expand Down
15 changes: 0 additions & 15 deletions config/accessibility.yml

This file was deleted.

26 changes: 0 additions & 26 deletions lib/rubocop/cop/github/accessibility/image_has_alt.rb

This file was deleted.

25 changes: 0 additions & 25 deletions lib/rubocop/cop/github/accessibility/link_has_href.rb

This file was deleted.

32 changes: 0 additions & 32 deletions lib/rubocop/cop/github/accessibility/no_positive_tabindex.rb

This file was deleted.

38 changes: 0 additions & 38 deletions lib/rubocop/cop/github/accessibility/no_redundant_image_alt.rb

This file was deleted.

28 changes: 0 additions & 28 deletions test/test_image_has_alt.rb

This file was deleted.

35 changes: 0 additions & 35 deletions test/test_link_has_href.rb

This file was deleted.

28 changes: 0 additions & 28 deletions test/test_no_positive_tabindex.rb

This file was deleted.

28 changes: 0 additions & 28 deletions test/test_no_redundant_image_alt.rb

This file was deleted.

0 comments on commit 417fc01

Please sign in to comment.