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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e25900b007681538276c65458f57da20f26ca1017763a40f413e9e6b58bcb764
4
- data.tar.gz: 40e2585bc3b0b48007ef04fd1b364e912c48124916bcbfbc943f6a57bfca39bf
3
+ metadata.gz: 5ad70c0cc559b88f7f31b5a176ccac7397acf0991b31b2e42b99db6d8bb9d43f
4
+ data.tar.gz: 883ca046f4b512c6e51cef778cab5d3a91df7e2f71094c6c03ee19c2316f5fd4
5
5
  SHA512:
6
- metadata.gz: 5fbff938af9697f3faa234adc1529c31e0dc4800bfde7bcda08469ff011a9ad10d4afbfc41207e6c61cc1ac53f66fdebee6c0adb1a1ce4c8b2808bb51031010f
7
- data.tar.gz: ae37752084b65413ba056b80807b368474a941f1610d0afe58165dcb9df1c95630941c390f7eba29b16274a71368bdb594c99c5164372f6b35dfa4f2ef9e12f7
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.configure block
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SharpStyleRubocop
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.4"
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.2
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - joe-sharp