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 +4 -4
- data/CHANGELOG.md +5 -0
- data/config/default.yml +60 -0
- data/lib/sharp_style_rubocop/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: e25900b007681538276c65458f57da20f26ca1017763a40f413e9e6b58bcb764
|
|
4
|
+
data.tar.gz: 40e2585bc3b0b48007ef04fd1b364e912c48124916bcbfbc943f6a57bfca39bf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|