rubocop 1.75.0 → 1.75.1

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: e806cf86ed67dd63a42a7aa49d9d7078fbc9adbf2445ae4ad078746755aab399
4
- data.tar.gz: c987baa5c2b372e4e223f660ee1b703f82c07f9a31a641aa0e53e0b1fb3f85a3
3
+ metadata.gz: a064330786019e0efee6b496e761b05bea0286f0afdcbb4fffad2f07433aef9d
4
+ data.tar.gz: eb1ee00d5fe060ea49203635df3c7457df6f416de93c9801a687386aa02f4768
5
5
  SHA512:
6
- metadata.gz: 8182e7c9d9e1f55ea0c53dfe9c56ff157621384ee399efeea397a2cef82ec83e066c4f7868b498c7dd25cf5072223b6475daeb62fa82520539974f07fbcdbd2e
7
- data.tar.gz: fa8b6cb67554bf5da2121ad5005f9d5dca3840cb5416711f38665ac5859f48ef3a4fb165aef554c5ce46d957dcaa315140e77b193162c59ef6f8924bee9e3516
6
+ metadata.gz: 336c6e38cc6162a00ca4c9780dcc71fb4b03a785af0eb6abb6c30baf2e1c8512af12e921a2036564102290324e418278cb83ceb06d7a1ec44ddf314923275f89
7
+ data.tar.gz: cbe9d5ab5685dbab70de2b281ecc807494631a294273260d87315d6875b753d9c2b60f6d7c14379eaf5b384894a4400c747ef91a57323c418c66a51076b33f06
data/config/default.yml CHANGED
@@ -4423,9 +4423,9 @@ Style/ItAssignment:
4423
4423
  Style/ItBlockParameter:
4424
4424
  Description: 'Checks for blocks with one argument where `it` block parameter can be used.'
4425
4425
  Enabled: pending
4426
- EnforcedStyle: allow_named_parameter
4426
+ EnforcedStyle: only_numbered_parameters
4427
4427
  SupportedStyles:
4428
- - allow_named_parameter
4428
+ - only_numbered_parameters
4429
4429
  - always
4430
4430
  - disallow
4431
4431
  VersionAdded: '1.75'
@@ -7,13 +7,13 @@ module RuboCop
7
7
  #
8
8
  # It provides three `EnforcedStyle` options:
9
9
  #
10
- # 1. `allow_named_parameter` (default) ... Detects only numbered block parameters.
10
+ # 1. `only_numbered_parameters` (default) ... Detects only numbered block parameters.
11
11
  # 2. `always` ... Always uses the `it` block parameter.
12
12
  # 3. `disallow` ... Disallows the `it` block parameter.
13
13
  #
14
- # A single numbered parameter is detected when `allow_named_parameter` or `always`.
14
+ # A single numbered parameter is detected when `only_numbered_parameters` or `always`.
15
15
  #
16
- # @example EnforcedStyle: allow_named_parameter (default)
16
+ # @example EnforcedStyle: only_numbered_parameters (default)
17
17
  # # bad
18
18
  # block { do_something(_1) }
19
19
  #
@@ -3,15 +3,15 @@
3
3
  module RuboCop
4
4
  module Cop
5
5
  module Style
6
- # Checks the args passed to `fail` and `raise`. For exploded
7
- # style (default), it recommends passing the exception class and message
8
- # to `raise`, rather than construct an instance of the error. It will
9
- # still allow passing just a message, or the construction of an error
10
- # with more than one argument.
6
+ # Checks the args passed to `fail` and `raise`.
11
7
  #
12
- # The exploded style works identically, but with the addition that it
13
- # will also suggest constructing error objects when the exception is
14
- # passed multiple arguments.
8
+ # Exploded style (default) enforces passing the exception class and message
9
+ # arguments separately, rather than constructing an instance of the error.
10
+ #
11
+ # Compact style enforces constructing an error instance.
12
+ #
13
+ # Both styles allow passing just a message, or an error instance when there is more
14
+ # than one argument.
15
15
  #
16
16
  # The exploded style has an `AllowedCompactTypes` configuration
17
17
  # option that takes an `Array` of exception name Strings.
@@ -3,7 +3,7 @@
3
3
  module RuboCop
4
4
  # This module holds the RuboCop version information.
5
5
  module Version
6
- STRING = '1.75.0'
6
+ STRING = '1.75.1'
7
7
 
8
8
  MSG = '%<version>s (using %<parser_version>s, ' \
9
9
  'rubocop-ast %<rubocop_ast_version>s, ' \
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.75.0
4
+ version: 1.75.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bozhidar Batsov
@@ -1080,7 +1080,7 @@ licenses:
1080
1080
  - MIT
1081
1081
  metadata:
1082
1082
  homepage_uri: https://rubocop.org/
1083
- changelog_uri: https://github.com/rubocop/rubocop/releases/tag/v1.75.0
1083
+ changelog_uri: https://github.com/rubocop/rubocop/releases/tag/v1.75.1
1084
1084
  source_code_uri: https://github.com/rubocop/rubocop/
1085
1085
  documentation_uri: https://docs.rubocop.org/rubocop/1.75/
1086
1086
  bug_tracker_uri: https://github.com/rubocop/rubocop/issues