-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate accessibility rubocop rule NoPositiveTabindex
from dotcom to erblint-github
#107
Migrate accessibility rubocop rule NoPositiveTabindex
from dotcom to erblint-github
#107
Conversation
bb358f2
to
ca3930a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar request as #106 (review) 🙏
…ocop-rules-no-positive-tabindex
@@ -0,0 +1,28 @@ | |||
# frozen_string_literal: true | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be in test/accessibility/
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn’t put the tests inside a subfolder because bundle exec rake
doesn’t find them. It only executes the test on the test folder, no subfolders
require "minitest/autorun" | ||
require "rubocop/cop/github/accessibility/no_positive_tabindex" | ||
|
||
class NoPositiveTabindex < CopTest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be in test/accessibility/
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn’t put the tests inside a subfolder because bundle exec rake
doesn’t find them. It only executes the test on the test folder, no subfolders
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
…ocop-rules-no-positive-tabindex
Context
The motivation of rubocop-github is to open-source our accessibility rubocop rules so non-GitHub people can benefit from them, have a space to provide comprehensive rule documentation, and also allow rules to be shared between Rails projects.
This PR migrates the accessibility rule
NoPositiveTabindex
from dotcom to rubocop-githubRelated Issue