sharp_style_rubocop 0.1.1 → 0.1.2

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: 4862bb4736abcd0db989bb19d539cd4750c5efa348a750fa6f9c3e48f77b7dd5
4
- data.tar.gz: 644cade7de95575d079fd28ea7b7b48dbd6224f11868c838bb70788a8fb0b91c
3
+ metadata.gz: e25900b007681538276c65458f57da20f26ca1017763a40f413e9e6b58bcb764
4
+ data.tar.gz: 40e2585bc3b0b48007ef04fd1b364e912c48124916bcbfbc943f6a57bfca39bf
5
5
  SHA512:
6
- metadata.gz: b17bbdf47994f8000fe020ea4a3d7040537b43d77ee9a105b811ed2216cc36741637bdd788dd71677eee9a187bf071bb7074d321085b63602a6b52f3586ec022
7
- data.tar.gz: 94bd54e6a5c71bad62ae8c5b1ec2108a2838e0741314e8ef2618a6d57c53b997ac146932e74ca823b441a38e3b264ab33fcdc0e309895f679288fc5c0924b63d
6
+ metadata.gz: 5fbff938af9697f3faa234adc1529c31e0dc4800bfde7bcda08469ff011a9ad10d4afbfc41207e6c61cc1ac53f66fdebee6c0adb1a1ce4c8b2808bb51031010f
7
+ data.tar.gz: ae37752084b65413ba056b80807b368474a941f1610d0afe58165dcb9df1c95630941c390f7eba29b16274a71368bdb594c99c5164372f6b35dfa4f2ef9e12f7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.1.2] - 2026-10-29
4
+
5
+ - Enable `Layout/FirstMethodArgumentLineBreak`, `Layout/FirstMethodParameterLineBreak`, `Layout/MultilineMethodArgumentLineBreaks`, and `Layout/MultilineMethodParameterLineBreaks` for readability.
6
+ - Enable `Style/MethodCallWithArgsParentheses`, allowing Kernel keyword-like methods and common Rails, RSpec, Minitest, and gemspec DSL methods.
7
+
3
8
  ## [0.1.1] - 2026-10-28
4
9
 
5
10
  - Set `Layout/ArgumentAlignment` to `with_fixed_indentation` as a Preview default for RuboCop 2.0.
data/config/default.yml CHANGED
@@ -76,6 +76,14 @@ Layout/FirstArrayElementIndentation:
76
76
  Layout/FirstHashElementIndentation:
77
77
  EnforcedStyle: consistent
78
78
 
79
+ # Enabled for readability. Counterpart Layout/MultilineMethodArgumentLineBreaks is also needed.
80
+ Layout/FirstMethodArgumentLineBreak:
81
+ Enabled: true
82
+
83
+ # Enabled for readability. Counterpart Layout/MultilineMethodParameterLineBreaks is also needed.
84
+ Layout/FirstMethodParameterLineBreak:
85
+ Enabled: true
86
+
79
87
  # Key is default for both, but also allow table alignment
80
88
  Layout/HashAlignment:
81
89
  EnforcedHashRocketStyle:
@@ -85,10 +93,18 @@ Layout/HashAlignment:
85
93
  - key
86
94
  - table
87
95
 
96
+ # Enabled for readability. Counterpart Layout/FirstMethodArgumentLineBreak is also needed.
97
+ Layout/MultilineMethodArgumentLineBreaks:
98
+ Enabled: true
99
+
88
100
  # Prevent wasting whitespace
89
101
  Layout/MultilineMethodCallIndentation:
90
102
  EnforcedStyle: indented
91
103
 
104
+ # Enabled for readability. Counterpart Layout/FirstMethodParameterLineBreak is also needed.
105
+ Layout/MultilineMethodParameterLineBreaks:
106
+ Enabled: true
107
+
92
108
  # Prevent wasting whitespace
93
109
  Layout/MultilineOperationIndentation:
94
110
  EnforcedStyle: indented
@@ -246,6 +262,50 @@ Style/IfUnlessModifier:
246
262
  Style/Lambda:
247
263
  Enabled: false
248
264
 
265
+ # Prefer parentheses, IgnoreMacros (default) already allows class-body and
266
+ # block-level DSLs such as attr_*, Gemfile, Rakefile, and RSpec's it/let.
267
+ # These are keyword-like methods and DSLs called with a receiver or in a def.
268
+ Style/MethodCallWithArgsParentheses:
269
+ Enabled: true
270
+ AllowedMethods:
271
+ # Gemspec
272
+ - add_dependency
273
+ # Kernel
274
+ - abort
275
+ - exit
276
+ - fail
277
+ - p
278
+ - pp
279
+ - print
280
+ - puts
281
+ - raise
282
+ - require
283
+ - require_relative
284
+ - throw
285
+ - warn
286
+ - yield
287
+ # Rails controllers
288
+ - head
289
+ - redirect_to
290
+ - render
291
+ # RSpec
292
+ - and
293
+ - describe
294
+ - not_to
295
+ - or
296
+ - to
297
+ - to_not
298
+ AllowedPatterns:
299
+ # Minitest
300
+ - ^(assert|refute)(_|$)
301
+ - ^(must|wont)_
302
+ # AllowedReceivers is only set when the installed RuboCop supports it (rubocop/rubocop#16193)
303
+ <% if RuboCop::ConfigLoader.default_configuration.for_cop("Style/MethodCallWithArgsParentheses").key?("AllowedReceivers") %>
304
+ AllowedReceivers:
305
+ # RSpec.configure block
306
+ - config
307
+ <% end %>
308
+
249
309
  # Rubocop 2.0
250
310
  Style/ModuleFunction:
251
311
  Enabled: false
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SharpStyleRubocop
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sharp_style_rubocop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - joe-sharp