sharp_style_rubocop 0.1.2 → 0.1.3

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: 331e11ff5cfa1a0d2a9014cc3e4a76c8d36dcddf9c70011bc65153ea2abd66fc
4
+ data.tar.gz: 1596218f4ff1c1c71f464ae125c1633f542c355ae7eb2a553b263a6ddace1e72
5
5
  SHA512:
6
- metadata.gz: 5fbff938af9697f3faa234adc1529c31e0dc4800bfde7bcda08469ff011a9ad10d4afbfc41207e6c61cc1ac53f66fdebee6c0adb1a1ce4c8b2808bb51031010f
7
- data.tar.gz: ae37752084b65413ba056b80807b368474a941f1610d0afe58165dcb9df1c95630941c390f7eba29b16274a71368bdb594c99c5164372f6b35dfa4f2ef9e12f7
6
+ metadata.gz: 03e6d091a2bae3680440f64336b4ff1240f542a9a15108b521ef9c99bb9debfb997e3b1ddb38ab50a782cb2b4634b3ec3bcd41a9c1fb4491f02c86a93219b3de
7
+ data.tar.gz: 5a7a67274a079711acd64fb52566e97c99a2c068b57808d1e180b1da894b4265a83ce07645b239427d440acc30c53b14aad0c66b384b3aec2ccc2f099dd9db0c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.1.3] - 2026-10-29
4
+
5
+ - Exclude `db/migrate/**/*`, `db/schema.rb` and `db/*_schema.rb` from `Style/MethodCallWithArgsParentheses` since Rails generates them without parentheses.
6
+ - Allow `send_data`, `send_file`, `flunk`, and `skip` without parentheses in `Style/MethodCallWithArgsParentheses`.
7
+ - Remove `describe` from the RSpec `AllowedMethods` in `Style/MethodCallWithArgsParentheses`.
8
+ - Add RSpec, RSpec::Matchers, Rails, ActiveSupport, and Rails middleware receivers to `Style/MethodCallWithArgsParentheses` `AllowedReceivers`.
9
+
3
10
  ## [0.1.2] - 2026-10-29
4
11
 
5
12
  - Enable `Layout/FirstMethodArgumentLineBreak`, `Layout/FirstMethodParameterLineBreak`, `Layout/MultilineMethodArgumentLineBreaks`, and `Layout/MultilineMethodParameterLineBreaks` for readability.
data/config/default.yml CHANGED
@@ -267,6 +267,11 @@ Style/Lambda:
267
267
  # These are keyword-like methods and DSLs called with a receiver or in a def.
268
268
  Style/MethodCallWithArgsParentheses:
269
269
  Enabled: true
270
+ # Rails migrations and schema.rb are generated without parentheses
271
+ Exclude:
272
+ - 'db/migrate/**/*'
273
+ - 'db/schema.rb'
274
+ - 'db/*_schema.rb'
270
275
  AllowedMethods:
271
276
  # Gemspec
272
277
  - add_dependency
@@ -288,9 +293,13 @@ Style/MethodCallWithArgsParentheses:
288
293
  - head
289
294
  - redirect_to
290
295
  - render
296
+ - send_data
297
+ - send_file
298
+ # Minitest
299
+ - flunk
300
+ - skip
291
301
  # RSpec
292
302
  - and
293
- - describe
294
303
  - not_to
295
304
  - or
296
305
  - to
@@ -302,8 +311,16 @@ Style/MethodCallWithArgsParentheses:
302
311
  # AllowedReceivers is only set when the installed RuboCop supports it (rubocop/rubocop#16193)
303
312
  <% if RuboCop::ConfigLoader.default_configuration.for_cop("Style/MethodCallWithArgsParentheses").key?("AllowedReceivers") %>
304
313
  AllowedReceivers:
305
- # RSpec.configure block
314
+ # RSpec
315
+ - RSpec
316
+ - RSpec::Matchers
306
317
  - config
318
+ # Rails
319
+ - ActiveSupport
320
+ - ActiveSupport::Notifications
321
+ - Rails.application.config
322
+ - Rails.application.config.middleware
323
+ - config.middleware
307
324
  <% end %>
308
325
 
309
326
  # 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.3"
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.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - joe-sharp