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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7cb772a75e7dc2bc7f36f7869efac31d0f9281a196ef237f57e2e2db4f3116c1
4
- data.tar.gz: ddb88dd42e274631a6d289ab56b2c0353e305b37816b9232bd7689578d19ed87
3
+ metadata.gz: c543a94f664746bb807384be228f6e83fcd7046f399f9c478e2c355cf26fa3c8
4
+ data.tar.gz: c37a04f979ad17e79e35b8b6fa9d615cbedebcb1fce9188eb24335e046fa4400
5
5
  SHA512:
6
- metadata.gz: 98b46acd6a78f33f546b6c2aa88e6ff40f7ffe89aaf196d3df0b355a7e2cd2a96d0fdc74c89796764953d47e40b3e89a26dc0008ae55528c3585f48a4d31493d
7
- data.tar.gz: 2571c7dbaef8b3c37cea2a6426b29586c1ad5d3e5d120504ff20c3d4b70cabe8578cbcd50d2f8c677056aabee4520f264eae642be07e610290a4303317031c41
6
+ metadata.gz: 3bb877b34c79e5e3dd5c969b21bb1e756acc8968ae245e7cd1274dc880529647ca83283a0d3ea7576d446df94d37a7565b45082f4a75008e826f1bcc9245f16d
7
+ data.tar.gz: bb23c43c6274d45fd5e9ea5cb9f73947357127fe9aa08c225438d436910357b32ca367fbe843827a3bddf4600159b4945c1bdd248805547a47a42657dd9e9cd2
@@ -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
@@ -62,6 +62,7 @@ module A11y
62
62
  case call
63
63
  in [:command, _, [:args_add_block, args, *]] then args
64
64
  in [:method_add_arg, _, [:arg_paren, [:args_add_block, args, *]]] then args
65
+ in [:method_add_arg, _, [:arg_paren, Array => args]] then args
65
66
  else nil
66
67
  end
67
68
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module A11y
4
4
  module Lint
5
- VERSION = "0.5.0"
5
+ VERSION = "0.5.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: a11y-lint
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Abdullah Hashim