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 +4 -4
- data/CHANGELOG.md +7 -0
- data/config/default.yml +19 -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: 331e11ff5cfa1a0d2a9014cc3e4a76c8d36dcddf9c70011bc65153ea2abd66fc
|
|
4
|
+
data.tar.gz: 1596218f4ff1c1c71f464ae125c1633f542c355ae7eb2a553b263a6ddace1e72
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
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
|