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 +4 -4
- data/CHANGELOG.md +8 -0
- data/config/default.yml +9 -0
- data/lib/rubocop/kata/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: 9226aba3b639a61e0aa92d657538bb69f79352d54c1c81db90a7d3c751b4d207
|
|
4
|
+
data.tar.gz: c817aafced4a83b1204330bbf7054a4af1a578011ad59b748a23d0e2a75a0d5e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
data/lib/rubocop/kata/version.rb
CHANGED