a11y-lint 0.5.0 → 0.5.1
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 +4 -4
- data/.claude/rules/testing.md +16 -0
- data/CHANGELOG.md +6 -0
- data/lib/a11y/lint/rules/link_missing_accessible_name.rb +1 -0
- data/lib/a11y/lint/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c543a94f664746bb807384be228f6e83fcd7046f399f9c478e2c355cf26fa3c8
|
|
4
|
+
data.tar.gz: c37a04f979ad17e79e35b8b6fa9d615cbedebcb1fce9188eb24335e046fa4400
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3bb877b34c79e5e3dd5c969b21bb1e756acc8968ae245e7cd1274dc880529647ca83283a0d3ea7576d446df94d37a7565b45082f4a75008e826f1bcc9245f16d
|
|
7
|
+
data.tar.gz: bb23c43c6274d45fd5e9ea5cb9f73947357127fe9aa08c225438d436910357b32ca367fbe843827a3bddf4600159b4945c1bdd248805547a47a42657dd9e9cd2
|
data/.claude/rules/testing.md
CHANGED
|
@@ -34,3 +34,19 @@ globs: test/**/*.rb
|
|
|
34
34
|
assert_equal("ImgMissingAlt", offense.rule)
|
|
35
35
|
end
|
|
36
36
|
```
|
|
37
|
+
|
|
38
|
+
- Rules that inspect `ruby_code` (e.g. `link_to`, `image_tag` helpers) must include test cases for all three calling styles:
|
|
39
|
+
1. Single-line with parentheses: `= link_to("", "/path", class: "icon")`
|
|
40
|
+
2. Single-line without parentheses: `= link_to "", "/path", class: "icon"`
|
|
41
|
+
3. Multiline with trailing comma:
|
|
42
|
+
```slim
|
|
43
|
+
= link_to(\
|
|
44
|
+
"",
|
|
45
|
+
"/path",
|
|
46
|
+
class: "icon",
|
|
47
|
+
)
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Each style must be tested for both the offense case and the "passes with fix" case.
|
|
51
|
+
|
|
52
|
+
- Every rule must be tested against both the Slim and ERB pipelines.
|
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.5.1] - 2026-03-31
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- `LinkMissingAccessibleName` rule: detect multiline method calls with trailing commas
|
|
15
|
+
|
|
10
16
|
## [0.5.0] - 2026-03-31
|
|
11
17
|
|
|
12
18
|
### Added
|
data/lib/a11y/lint/version.rb
CHANGED