sharp_style_rubocop 0.1.2 → 0.1.4
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 +11 -0
- data/config/default.yml +26 -2
- 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: 5ad70c0cc559b88f7f31b5a176ccac7397acf0991b31b2e42b99db6d8bb9d43f
|
|
4
|
+
data.tar.gz: 883ca046f4b512c6e51cef778cab5d3a91df7e2f71094c6c03ee19c2316f5fd4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9baf6a158e0bbdc3a72ac16446c060b92e76479949cd2c89436ea46989355357e6cdea9a7c3583124d547e576815af2b1da6b717da9535f979c67785b629ca1c
|
|
7
|
+
data.tar.gz: a9e011b9d0c2b21cc23518a8c6dbe898465e6995dcfc4b5de5b323d924645d07b41f824ba028b12eda5e4d5e47bd3bf642a0dd1b5306205d0e521227909e23e9
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
+
## [0.1.4] - 2026-10-30
|
|
4
|
+
|
|
5
|
+
- Exclude `Guardfile` from `Layout/FirstMethodArgumentLineBreak` so the guard plugin can sit on the guard line.
|
|
6
|
+
|
|
7
|
+
## [0.1.3] - 2026-10-29
|
|
8
|
+
|
|
9
|
+
- Exclude `db/migrate/**/*`, `db/schema.rb` and `db/*_schema.rb` from `Style/MethodCallWithArgsParentheses` since Rails generates them without parentheses.
|
|
10
|
+
- Allow `send_data`, `send_file`, `flunk`, and `skip` without parentheses in `Style/MethodCallWithArgsParentheses`.
|
|
11
|
+
- Remove `describe` from the RSpec `AllowedMethods` in `Style/MethodCallWithArgsParentheses`.
|
|
12
|
+
- Add RSpec, RSpec::Matchers, Rails, ActiveSupport, and Rails middleware receivers to `Style/MethodCallWithArgsParentheses` `AllowedReceivers`.
|
|
13
|
+
|
|
3
14
|
## [0.1.2] - 2026-10-29
|
|
4
15
|
|
|
5
16
|
- Enable `Layout/FirstMethodArgumentLineBreak`, `Layout/FirstMethodParameterLineBreak`, `Layout/MultilineMethodArgumentLineBreaks`, and `Layout/MultilineMethodParameterLineBreaks` for readability.
|
data/config/default.yml
CHANGED
|
@@ -79,6 +79,13 @@ Layout/FirstHashElementIndentation:
|
|
|
79
79
|
# Enabled for readability. Counterpart Layout/MultilineMethodArgumentLineBreaks is also needed.
|
|
80
80
|
Layout/FirstMethodArgumentLineBreak:
|
|
81
81
|
Enabled: true
|
|
82
|
+
# This allows the guard plugin to be on the guard line e.g.
|
|
83
|
+
#
|
|
84
|
+
# guard(:rubocop,
|
|
85
|
+
# all_on_start: true
|
|
86
|
+
# all_after_pass: true) do
|
|
87
|
+
Exclude:
|
|
88
|
+
- Guardfile
|
|
82
89
|
|
|
83
90
|
# Enabled for readability. Counterpart Layout/MultilineMethodParameterLineBreaks is also needed.
|
|
84
91
|
Layout/FirstMethodParameterLineBreak:
|
|
@@ -267,6 +274,11 @@ Style/Lambda:
|
|
|
267
274
|
# These are keyword-like methods and DSLs called with a receiver or in a def.
|
|
268
275
|
Style/MethodCallWithArgsParentheses:
|
|
269
276
|
Enabled: true
|
|
277
|
+
# Rails migrations and schema.rb are generated without parentheses
|
|
278
|
+
Exclude:
|
|
279
|
+
- 'db/migrate/**/*'
|
|
280
|
+
- 'db/schema.rb'
|
|
281
|
+
- 'db/*_schema.rb'
|
|
270
282
|
AllowedMethods:
|
|
271
283
|
# Gemspec
|
|
272
284
|
- add_dependency
|
|
@@ -288,9 +300,13 @@ Style/MethodCallWithArgsParentheses:
|
|
|
288
300
|
- head
|
|
289
301
|
- redirect_to
|
|
290
302
|
- render
|
|
303
|
+
- send_data
|
|
304
|
+
- send_file
|
|
305
|
+
# Minitest
|
|
306
|
+
- flunk
|
|
307
|
+
- skip
|
|
291
308
|
# RSpec
|
|
292
309
|
- and
|
|
293
|
-
- describe
|
|
294
310
|
- not_to
|
|
295
311
|
- or
|
|
296
312
|
- to
|
|
@@ -302,8 +318,16 @@ Style/MethodCallWithArgsParentheses:
|
|
|
302
318
|
# AllowedReceivers is only set when the installed RuboCop supports it (rubocop/rubocop#16193)
|
|
303
319
|
<% if RuboCop::ConfigLoader.default_configuration.for_cop("Style/MethodCallWithArgsParentheses").key?("AllowedReceivers") %>
|
|
304
320
|
AllowedReceivers:
|
|
305
|
-
# RSpec
|
|
321
|
+
# RSpec
|
|
322
|
+
- RSpec
|
|
323
|
+
- RSpec::Matchers
|
|
306
324
|
- config
|
|
325
|
+
# Rails
|
|
326
|
+
- ActiveSupport
|
|
327
|
+
- ActiveSupport::Notifications
|
|
328
|
+
- Rails.application.config
|
|
329
|
+
- Rails.application.config.middleware
|
|
330
|
+
- config.middleware
|
|
307
331
|
<% end %>
|
|
308
332
|
|
|
309
333
|
# Rubocop 2.0
|