rubocop-fourshark 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: a8b84b9e99c1ff660e70c0dc9b6d600361f175fc7ea47be4c27ceb3ed46c879c
4
- data.tar.gz: b80b447aff3ef40874166bef818eba3d18caff427b39e095c0ad15099804fc88
3
+ metadata.gz: 323977d65563d11bb6f0323e33f617a6ebf3d0d168e4d81db5872e20844bdc3b
4
+ data.tar.gz: f98eeb1ae9869d48547843ba15352f3efb071874a36417c6d09d322f07ef46c3
5
5
  SHA512:
6
- metadata.gz: abdb30af6129f55a4c37b4f788dbee1528e28129642bcdaaaddc6164d4187d6fb4b0d8177b27b0b523c5749482951af32ebcbd54963651d8c4eb16bb73b4ab19
7
- data.tar.gz: eb6678c1b97f140ef14c222e047b3dbf9c6342281b1a01818f176f9000246de2c95c7d919f1fda3e6cb83507367b88697d049effac922cfd5a3c7f521de323b7
6
+ metadata.gz: b227ad96bae89887858523c73f2db4ad3b8990f686ca45a823d11afd9d17e2e01e71ecb5fed2b3b422143f4535be846d43af704cf0f8c0af5dace177141996e2
7
+ data.tar.gz: e7d059b06abbc9f4dad9b81cc76bd2e0499863f4997584ce6d4716b3a56e87b11492b3079df3a82ecbf70af3926a4035981b6c19f8e0f1f75bd23d1aa79cd3db
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## [0.4.0] - 2026-06-29
2
+
3
+ ### Added
4
+
5
+ - `Layout/MultilineMethodCallIndentation` configured to `indented` — multiline method-call chains indent continuation calls one step from the receiver instead of aligning with the first call
6
+
1
7
  ## [0.3.0] - 2026-06-19
2
8
 
3
9
  ### Added
data/config/default.yml CHANGED
@@ -8,6 +8,12 @@ Layout/MultilineStatementSpacing:
8
8
  Enabled: true
9
9
  VersionAdded: '0.2.0'
10
10
 
11
+ # Stock cop configured (not a 4Shark cop): enforce the `indented` style for
12
+ # multiline method-call chains — continuation calls are indented one step from
13
+ # the receiver instead of aligning with the first call.
14
+ Layout/MultilineMethodCallIndentation:
15
+ EnforcedStyle: indented
16
+
11
17
  Style/DisallowSafeNavigation:
12
18
  Description: 'Do not use safe navigation (`&.`). Use explicit conditionals instead.'
13
19
  Enabled: true
@@ -159,9 +159,9 @@ module RuboCop
159
159
  return '' if name.nil?
160
160
 
161
161
  name.gsub('::', '/')
162
- .gsub(/([A-Z\d]+)([A-Z][a-z])/, '\1_\2')
163
- .gsub(/([a-z\d])([A-Z])/, '\1_\2')
164
- .downcase
162
+ .gsub(/([A-Z\d]+)([A-Z][a-z])/, '\1_\2')
163
+ .gsub(/([a-z\d])([A-Z])/, '\1_\2')
164
+ .downcase
165
165
  end
166
166
  end
167
167
  end
@@ -129,9 +129,9 @@ module RuboCop
129
129
  # "UserAccount" → "user_account"; "Plan::Statement" → "plan/statement"
130
130
  def camel_to_snake(name)
131
131
  name.gsub('::', '/')
132
- .gsub(/([A-Z\d]+)([A-Z][a-z])/, '\1_\2')
133
- .gsub(/([a-z\d])([A-Z])/, '\1_\2')
134
- .downcase
132
+ .gsub(/([A-Z\d]+)([A-Z][a-z])/, '\1_\2')
133
+ .gsub(/([a-z\d])([A-Z])/, '\1_\2')
134
+ .downcase
135
135
  end
136
136
  end
137
137
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RuboCop
4
4
  module Fourshark
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-fourshark
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
  - Paulo Ribeiro