No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
github-actions[bot] 8432edba36
Merge pull request #315 from github/dependabot/github_actions/all-dependencies-87bb627644
build(deps): bump ruby/setup-ruby from 1.316.0 to 1.319.0 in the all-dependencies group
2026-07-20 03:23:17 +00:00
.erb-linters Add test to ensure recommended setup works 2023-06-14 09:25:18 -04:00
.github build(deps): bump ruby/setup-ruby in the all-dependencies group 2026-07-20 03:22:43 +00:00
bin Linting. 2023-07-27 15:05:49 -04:00
config wip 2023-07-20 21:55:48 +00:00
docs Merge pull request #110 from github/kh-except-link-tag 2023-09-28 10:27:49 -04:00
lib Fix rubcoop rule 2025-08-18 11:43:40 -04:00
test Add failing test case 2023-10-19 14:22:08 -04:00
.erb-lint.yml Add test to ensure recommended setup works 2023-06-14 09:25:18 -04:00
.gitignore commit gemfile.lock 2021-12-01 12:34:20 -08:00
.rubocop.yml Update .rubocop.yml 2023-06-02 07:28:19 -04:00
CODEOWNERS Add codeowners file 2022-03-10 14:11:49 -08:00
erblint-github.gemspec build(deps-dev): update rubocop requirement from = 1.88.1 to = 1.88.2 2026-07-13 03:22:53 +00:00
Gemfile add dependencies, linter, test 2021-10-20 10:21:39 -07:00
Gemfile.lock build(deps-dev): update rubocop requirement from = 1.88.1 to = 1.88.2 2026-07-13 03:22:53 +00:00
LICENSE Initial commit 2021-10-19 10:16:21 -07:00
Rakefile Update dev dependencies 2022-06-10 16:48:55 -07:00
README.md Update README.md 2024-07-31 09:37:54 +07:00

erblint-github

Template style checking for GitHub's Ruby projects

Setup

  1. Update your Gemfile and run bundle install
gem "erb_lint", require: false
gem "erblint-github"
  1. Require the lint rules from this library. Currently, the only supported way is to add a new file in .erb-linters/erblint-github.rb with the line:
require "erblint-github/linters"
  1. Update your erb-lint.yml to pull in our recommended configs. This will ensure you are up-to-date with our recommendations.
---
inherit_gem:
  erblint-github:
    - config/accessibility.yml

Rules

Testing

bundle install
bundle exec rake

If you use VS Code, we highly encourage ERB Linter extension to see immediate feedback in your editor.

Note

This repo contains several accessibility-related linting rules to help surface accessibility issues that would otherwise go undetected until a later stage. Please note that due to the limitations of static code analysis, these ERB accessibility checks are NOT enough for ensuring the accessibility of your app. This shouldn't be the only tool you use to catch accessibility issues and should be supplemented with other tools that can check the runtime browser DOM output, as well as processes like accessibility design reviews, manual audits, user testing, etc.