rubocop-kata 0.3.0 → 0.4.0

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: de0b42a4b03480a8a8fff9e89e502eb9be99320bc348157233cd41c7f554cf39
4
- data.tar.gz: 9b61887eb55e6b3adcd66f95e366e81e203b72fd9b6a804ea120b9734051d98a
3
+ metadata.gz: 9226aba3b639a61e0aa92d657538bb69f79352d54c1c81db90a7d3c751b4d207
4
+ data.tar.gz: c817aafced4a83b1204330bbf7054a4af1a578011ad59b748a23d0e2a75a0d5e
5
5
  SHA512:
6
- metadata.gz: 915b4e7e20ed0e9cfca066625c8158e6ac2e2d46f3078c52e86f27c46da8bb2b59c65461ebe7bbbf15627acf793d40408852202a657e84d1f83ee56463deae9c
7
- data.tar.gz: a18141d892a1d2833e9db5a7fd541c885218c8233911f507cce289a0f1705e576278de3c68f40ed17a3b76cf03c3594b8b2e2cb84fd001a2cf766da3258f33e6
6
+ metadata.gz: 0c99d13ee22eb68d9d2052d708048c931b63427fdc8ecd637dd8fc935391daf968506a5bc5c9494e17cf87b0f5f44a274c726233180d2931e518c73576e0f81d
7
+ data.tar.gz: f9d9b2461802ad1e59accd6fa0729875812bf4d140a5e84e8e68fa4dd0eea7ee47d8b2adcdda2304fc53d01675e3395428f97e0ffdb2e0e468d031c528027904
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.4.0] - 2026-08-14
4
+
5
+ - `Naming/MemoizedInstanceVariableName` enforced with
6
+ `EnforcedStyleForLeadingUnderscores: required`: memoization caches are
7
+ named `@_name`, marking lazy state at the read site.
8
+ - `Elegant/GoodVariableName` pattern extended to accept the `@_word`
9
+ memo shape.
10
+
3
11
  ## [0.3.0] - 2026-08-14
4
12
 
5
13
  - Ten new house cops in the Elegant Objects spirit, all on by default:
data/config/default.yml CHANGED
@@ -170,6 +170,15 @@ Style/EndlessMethod:
170
170
  Naming/RescuedExceptionsVariableName:
171
171
  PreferredName: error
172
172
 
173
+ # Memoization caches are marked with a leading underscore (@_name), so lazy
174
+ # state is visible at the read site; Elegant/GoodVariableName learns the
175
+ # same @_word shape.
176
+ Naming/MemoizedInstanceVariableName:
177
+ EnforcedStyleForLeadingUnderscores: required
178
+
179
+ Elegant/GoodVariableName:
180
+ Pattern: '^(_.*|@_[a-z]{1,16}|(@{1,2}|\$)?(the_|test_|fake_)?[a-z]{1,16})$'
181
+
173
182
  Layout/LineLength:
174
183
  Max: 120
175
184
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RuboCop
4
4
  module Kata
5
- VERSION = "0.3.0"
5
+ VERSION = "0.4.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-kata
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Giacomo GK