rubocop-style-compact_nesting 0.1.0 → 0.1.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/CHANGELOG.md +8 -0
- data/README.md +7 -2
- data/config/default.yml +7 -0
- data/lib/rubocop/style/compact_nesting/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: c2bb5aca470bcf626ad570091a65dd7b15b73a223bebc1ea8d7c3933a90e982e
|
|
4
|
+
data.tar.gz: fead2fa875f2e2fd0364a1aeaa68de54eeb9ab8d49b2d194c500e59565779585
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ac4dd808c610897009c8e1c57da1c4b33c9edae1268976cd2771d2aa39e6e1f6b0b2541c0e5e5bca8ac02866a2ec464adf2aa84d67309b5f9c05e5c91fb6fb86
|
|
7
|
+
data.tar.gz: 12a3dd18c7725d1da21bc74150b9caf2fe572b1a1cb6780228d76afdb71844b6be9b4e3220f79e543f44b6583374527ae5ad00ccb832b93e7327104973c86ae2
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.1.1] - 2026-06-01
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
- Plugin default config now disables `Style/ClassAndModuleChildren`. That
|
|
7
|
+
cop enforces the opposite layout of `Style/CompactModuleNesting`, so the
|
|
8
|
+
two would always disagree. Users who want `Style/ClassAndModuleChildren`
|
|
9
|
+
can re-enable it explicitly in their own `.rubocop.yml`.
|
|
10
|
+
|
|
3
11
|
## [0.1.0] - 2026-06-01
|
|
4
12
|
|
|
5
13
|
### Added
|
data/README.md
CHANGED
|
@@ -85,10 +85,15 @@ gem 'rubocop-style-compact_nesting', require: false
|
|
|
85
85
|
# .rubocop.yml
|
|
86
86
|
plugins:
|
|
87
87
|
- rubocop-style-compact_nesting
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
The plugin disables `Style/ClassAndModuleChildren` by default because that
|
|
91
|
+
cop enforces the opposite layout. If you want it back, re-enable it in
|
|
92
|
+
your own config:
|
|
88
93
|
|
|
89
|
-
|
|
94
|
+
```yaml
|
|
90
95
|
Style/ClassAndModuleChildren:
|
|
91
|
-
Enabled:
|
|
96
|
+
Enabled: true
|
|
92
97
|
```
|
|
93
98
|
|
|
94
99
|
Requires RuboCop `>= 1.72` and Ruby `>= 3.1`.
|
data/config/default.yml
CHANGED
|
@@ -7,3 +7,10 @@ Style/CompactModuleNesting:
|
|
|
7
7
|
VersionAdded: '0.1'
|
|
8
8
|
SafeAutoCorrect: true
|
|
9
9
|
StyleGuide: ~
|
|
10
|
+
|
|
11
|
+
# Style/ClassAndModuleChildren expects the opposite of what
|
|
12
|
+
# Style/CompactModuleNesting enforces. Disable it by default to avoid the
|
|
13
|
+
# two cops fighting over the same code. Users who want it can re-enable
|
|
14
|
+
# it in their own .rubocop.yml.
|
|
15
|
+
Style/ClassAndModuleChildren:
|
|
16
|
+
Enabled: false
|