erblint-github 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5d08f8a3f7dd601469444626fb19413c9e249f7b1a5cc7d2f71416fdb1c05d85
|
|
4
|
+
data.tar.gz: b0e6eda49feea5b68a77c975160ea2a4690e74a7d5d4b44d3b1c2ff400487ab6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6e733cebcb4af6a1e3198b58db3df7fd01b8f0d57379da7c0b02f5c4c8f87f24f56462d7badcc2d4029a7e60508a7bc60c40f8312742093318b5c6013948e0ca
|
|
7
|
+
data.tar.gz: 40868f41b146bc4c534266e270495bbebf08c77208ea9894df13105dab4311ddeb7a238881535337a123ec0b69d1f81fa8155b3f3c81b6181dbfd95066e5d0cb
|
data/README.md
CHANGED
|
@@ -25,6 +25,8 @@ require "erblint-github/linters"
|
|
|
25
25
|
linters:
|
|
26
26
|
GitHub::Accessibility::AvoidBothDisabledAndAriaDisabled:
|
|
27
27
|
enabled: true
|
|
28
|
+
GitHub::Accessibility::AvoidGenericLinkTextCounter:
|
|
29
|
+
enabled: true
|
|
28
30
|
GitHub::Accessibility::IframeHasTitle:
|
|
29
31
|
enabled: true
|
|
30
32
|
GitHub::Accessibility::ImageHasAlt:
|
|
@@ -56,3 +58,12 @@ linters:
|
|
|
56
58
|
bundle install
|
|
57
59
|
bundle exec rake
|
|
58
60
|
```
|
|
61
|
+
|
|
62
|
+
## Recommended extension
|
|
63
|
+
|
|
64
|
+
If you use VS Code, we highly encourage [ERB Linter extension](https://marketplace.visualstudio.com/items?itemName=manuelpuyol.erb-linter) to see immediate feedback in your editor.
|
|
65
|
+
|
|
66
|
+
## Note
|
|
67
|
+
|
|
68
|
+
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,
|
|
69
|
+
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.
|
|
@@ -113,7 +113,7 @@ module ERBLint
|
|
|
113
113
|
private
|
|
114
114
|
|
|
115
115
|
def banned_text?(text)
|
|
116
|
-
BANNED_GENERIC_TEXT.map(&:downcase).include?(text.downcase)
|
|
116
|
+
BANNED_GENERIC_TEXT.map(&:downcase).include?(text.downcase.gsub(/\W+/, " ").strip)
|
|
117
117
|
end
|
|
118
118
|
|
|
119
119
|
def valid_accessible_name?(aria_label, text)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: erblint-github
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- GitHub Open Source
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-06-
|
|
11
|
+
date: 2022-06-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: erb_lint
|