rubocop-on-rbs 1.4.0 → 1.4.2

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: 22a2658fe60905c8ede887f40b3bf114cd42c945194d0a968804b2f30069af9c
4
- data.tar.gz: 3922f3dd22bf0f1b2afd66c0bbf0b8f5449424c3e64dcaa976def99ecdcd47d9
3
+ metadata.gz: 34dde3fda59e719b26f5a39a31b43df6dff8ae433e45693b40c18ccee7844178
4
+ data.tar.gz: 4788f1f4adb88f6b62a3174a9079190f667a81d2c077cbcff7bee093f12319ea
5
5
  SHA512:
6
- metadata.gz: a690a213a8654d2a9dd28822d6b112848348340956fa7e533d727203b28db67ed8233adb997b728e9fca9bd820bc0688ab1f984eb0498b6dfa645a9165b2e575
7
- data.tar.gz: 1ffdd5f0b4305ff3158187a052cb4cd5fcce2ddf3e0629e3847699e7094741c5db66ee9962f9fc252e34d7a7f6f7a514bc32736cd4003e0377911b725b5a4a1a
6
+ metadata.gz: 02a91b40de9312f6b689f8b7b6f180852239a16dcc5753e74f2648b31816ae0473bf48c2872ccc235221014bf207f4a5cdaf418837f63ba32a03110782c5cdbf
7
+ data.tar.gz: d4f3c5f1a195e4ac1a03285d7932841004e951ad3fd3b957d197496c53a0939063c6fceabd6c6773e488ebed22cc7b065611d5e7fb35b1b372794deb21081aba
data/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [1.4.2] - 2025-02-23
4
+
5
+ * [RBS/Style/ClassWithSingleton] Digging into each types by @ksss in https://github.com/ksss/rubocop-on-rbs/pull/84
6
+ * [RBS/Style/InstanceWithInstance] Digging into each types by @ksss in https://github.com/ksss/rubocop-on-rbs/pull/83
7
+
8
+ ## [1.4.1] - 2025-02-23
9
+
10
+ * Default type params allows void by @ksss in https://github.com/ksss/rubocop-on-rbs/pull/82
11
+
12
+ ## [1.4.0] - 2025-02-23
13
+
14
+ * Bundle update by @ksss in https://github.com/ksss/rubocop-on-rbs/pull/71
15
+ * Improve will syntax error by @ksss in https://github.com/ksss/rubocop-on-rbs/pull/73
16
+ * [RBS/Lint/WillSyntaxError] Support Proc self_type by @ksss in https://github.com/ksss/rubocop-on-rbs/pull/74
17
+ * Add RBS/Lint/NewReturnsVoid by @ksss in https://github.com/ksss/rubocop-on-rbs/pull/79
18
+ * Bundle update by @ksss in https://github.com/ksss/rubocop-on-rbs/pull/80
19
+ * Enabled pending cops by @ksss in https://github.com/ksss/rubocop-on-rbs/pull/81
20
+ * Use Ruby 3.4 on CI by @ksss in https://github.com/ksss/rubocop-on-rbs/pull/72
21
+
3
22
  ## [1.3.0] - 2024-12-24
4
23
 
5
24
  * Add RBS/Lint/AmbiguousKeywordArgumentKey by @ksss in https://github.com/ksss/rubocop-on-rbs/pull/51
@@ -55,7 +55,7 @@ module RuboCop
55
55
 
56
56
  if param.respond_to?(:default_type)
57
57
  if dt = param.default_type
58
- void_type_context_validator(dt)
58
+ void_type_context_validator(dt, true)
59
59
  no_self_type_validator(dt)
60
60
  no_classish_type_validator(dt)
61
61
  end
@@ -39,6 +39,10 @@ module RuboCop
39
39
  add_offense(range) do |corrector|
40
40
  corrector.replace(range, 'self')
41
41
  end
42
+ else
43
+ type.each_type do |t|
44
+ check_type(t)
45
+ end
42
46
  end
43
47
  end
44
48
  end
@@ -48,6 +48,10 @@ module RuboCop
48
48
  add_offense(range) do |corrector|
49
49
  corrector.replace(range, 'self')
50
50
  end
51
+ else
52
+ type.each_type do |t|
53
+ check_type(t)
54
+ end
51
55
  end
52
56
  end
53
57
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RuboCop
4
4
  module RBS
5
- VERSION = '1.4.0'
5
+ VERSION = '1.4.2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-on-rbs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ksss