Skip to content
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

Conversation

bolonio
Copy link

@bolonio bolonio commented Jul 28, 2022

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-github

Related Issue

@bolonio bolonio force-pushed the accessibility/issues/1430/migrate-a11y-rubocop-rules-no-positive-tabindex branch from bb358f2 to ca3930a Compare July 28, 2022 14:22
Copy link

@khiga8 khiga8 left a 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) 🙏

@bolonio bolonio requested a review from khiga8 August 1, 2022 09:18
@@ -0,0 +1,28 @@
# frozen_string_literal: true

Copy link

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/?

Copy link
Author

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
Copy link

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/?

Copy link
Author

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

@bolonio bolonio requested a review from khiga8 August 1, 2022 14:19
Copy link

@khiga8 khiga8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@bolonio bolonio merged commit 3e11dc9 into master Aug 1, 2022
@bolonio bolonio deleted the accessibility/issues/1430/migrate-a11y-rubocop-rules-no-positive-tabindex branch August 1, 2022 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants