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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9522330e63c14fdd73354334b2d9dfefd06d49df980caf688fe2bd4275334670
4
- data.tar.gz: f6b7dec706d52314d6da24f9dc511e3d212e7ec1a3577d2c8ae4714798ad5105
3
+ metadata.gz: c2bb5aca470bcf626ad570091a65dd7b15b73a223bebc1ea8d7c3933a90e982e
4
+ data.tar.gz: fead2fa875f2e2fd0364a1aeaa68de54eeb9ab8d49b2d194c500e59565779585
5
5
  SHA512:
6
- metadata.gz: a69a975b93152147a509dabe4b55762126a018e9d08bd06e6b4710da937aaabe4ba81b76bb439ae1f70c07dbf7d785078e2b6262061bdbfe518a03705c5778d7
7
- data.tar.gz: 1d07834409a49eae53ff01740770b7b6f16d742eb03adaf2fc94593529aa5abbe2c85762b171d7501b663b8e177a48861428be8ce2c7a975c69803a1be39e19a
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
- # This cop conflicts with the built-in Style/ClassAndModuleChildren.
94
+ ```yaml
90
95
  Style/ClassAndModuleChildren:
91
- Enabled: false
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
@@ -3,7 +3,7 @@
3
3
  module RuboCop
4
4
  module Style
5
5
  module CompactNesting
6
- VERSION = '0.1.0'
6
+ VERSION = '0.1.1'
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-style-compact_nesting
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ramon Rodrigues