commit rubygem-rubocop for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-rubocop for openSUSE:Factory checked in at 2024-01-29 22:29:16 Comparing /work/SRC/openSUSE:Factory/rubygem-rubocop (Old) and /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.1815 (New) Package is "rubygem-rubocop" Mon Jan 29 22:29:16 2024 rev:52 rq:1142181 version:1.60.2 Changes: --- /work/SRC/openSUSE:Factory/rubygem-rubocop/rubygem-rubocop.changes 2023-12-14 22:03:23.504610926 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.1815/rubygem-rubocop.changes 2024-01-29 22:29:47.311123597 +0100 @@ -1,0 +2,67 @@ +Thu Jan 25 22:33:54 UTC 2024 - Mykola Krachkovsky + +- updated to version 1.60.2 + + ## 1.60.2 (2024-01-24) + + ### Bug fixes + + * [#12627](https://github.com/rubocop/rubocop/issues/12627): Fix a false positive for `Layout/RedundantLineBreak` when using index access call chained on multiple lines with backslash. ([@koic][]) + * [#12626](https://github.com/rubocop/rubocop/pull/12626): Fix a false positive for `Style/ArgumentsForwarding` when naming a block argument `&`. ([@koic][]) + * [#12635](https://github.com/rubocop/rubocop/pull/12635): Fix a false positive for `Style/HashEachMethods` when both arguments are unused. ([@earlopain][]) + * [#12636](https://github.com/rubocop/rubocop/pull/12636): Fix an error for `Style/HashEachMethods` when a block with both parameters has no body. ([@earlopain][]) + * [#12638](https://github.com/rubocop/rubocop/issues/12638): Fix an `Errno::ENOENT` error when using server mode. ([@koic][]) + * [#12628](https://github.com/rubocop/rubocop/pull/12628): Fix a false positive for `Style/ArgumentsForwarding` when using block arg forwarding with positional arguments forwarding to within block. ([@koic][]) + * [#12642](https://github.com/rubocop/rubocop/pull/12642): Fix false positives for `Style/HashEachMethods` when using array converter method. ([@koic][]) + * [#12632](https://github.com/rubocop/rubocop/issues/12632): Fix an infinite loop error when `EnforcedStyle: explicit` of `Naming/BlockForwarding` with `Style/ArgumentsForwarding`. ([@koic][]) + + ## 1.60.1 (2024-01-17) + + ### Bug fixes + + * [#12625](https://github.com/rubocop/rubocop/pull/12625): Fix an error when server cache dir has read-only file system. ([@Strzesia][]) + * [#12618](https://github.com/rubocop/rubocop/issues/12618): Fix false positives for `Style/ArgumentsForwarding` when using block argument forwarding with other arguments. ([@koic][]) + * [#12614](https://github.com/rubocop/rubocop/issues/12614): Fix false positiveis for `Style/RedundantParentheses` when parentheses in control flow keyword with multiline style argument. ([@koic][]) + + ### Changes + + * [#12617](https://github.com/rubocop/rubocop/issues/12617): Make `Style/CollectionCompact` aware of `grep_v` with nil. ([@koic][]) + + ## 1.60.0 (2024-01-15) + + ### Bug fixes + + * [#12603](https://github.com/rubocop/rubocop/issues/12603): Fix an infinite loop error for `Style/MultilineTernaryOperator` when using a method call as a ternary operator condition with a line break between receiver and method. ([@koic][]) + * [#12549](https://github.com/rubocop/rubocop/issues/12549): Fix a false positive for `Style/RedundantLineContinuation` when line continuations for multiline leading dot method chain with a blank line. ([@koic][]) + * [#12610](https://github.com/rubocop/rubocop/pull/12610): Accept parentheses in argument calls with blocks for `Style/MethodCallWithArgsParentheses` `omit_parentheses` style. ([@gsamokovarov][]) + * [#12580](https://github.com/rubocop/rubocop/pull/12580): Fix an infinite loop error for `Layout/EndAlignment` when misaligned in singleton class assignments with `EnforcedStyleAlignWith: variable`. ([@koic][]) + * [#12548](https://github.com/rubocop/rubocop/issues/12548): Fix an infinite loop error for `Layout/FirstArgumentIndentation` when specifying `EnforcedStyle: with_fixed_indentation` of `Layout/ArrayAlignment`. ([@koic][]) + * [#12236](https://github.com/rubocop/rubocop/issues/12236): Fix an error for `Lint/ShadowedArgument` when self assigning to a block argument in `for`. ([@koic][]) + * [#12569](https://github.com/rubocop/rubocop/issues/12569): Fix an error for `Style/IdenticalConditionalBranches` when using `if`...`else` with identical leading lines that assign to `self.foo`. ([@koic][]) + * [#12437](https://github.com/rubocop/rubocop/issues/12437): Fix an infinite loop error for `EnforcedStyle: omit_parentheses` of `Style/MethodCallWithArgsParentheses` with `Style/SuperWithArgsParentheses`. ([@koic][]) + * [#12558](https://github.com/rubocop/rubocop/issues/12558): Fix an incorrect autocorrect for `Style/MapToHash` when using `map.to_h` without receiver. ([
commit rubygem-rubocop for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-rubocop for openSUSE:Factory checked in at 2023-12-14 22:03:21 Comparing /work/SRC/openSUSE:Factory/rubygem-rubocop (Old) and /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.25432 (New) Package is "rubygem-rubocop" Thu Dec 14 22:03:21 2023 rev:51 rq:1132980 version:1.59.0 Changes: --- /work/SRC/openSUSE:Factory/rubygem-rubocop/rubygem-rubocop.changes 2023-12-06 23:49:16.065534158 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.25432/rubygem-rubocop.changes 2023-12-14 22:03:23.504610926 +0100 @@ -1,0 +2,55 @@ +Tue Dec 12 16:48:05 UTC 2023 - Mykola Krachkovsky + +- updated to version 1.59.0 + + ## 1.59.0 (2023-12-11) + + ### New features + + * [#12518](https://github.com/rubocop/rubocop/pull/12518): Add new `Lint/ItWithoutArgumentsInBlock` cop. ([@koic][]) + + ### Bug fixes + + * [#12434](https://github.com/rubocop/rubocop/issues/12434): Fix a false positive for `Lint/LiteralAssignmentInCondition` when using interpolated string or xstring literals. ([@koic][]) + * [#12435](https://github.com/rubocop/rubocop/issues/12435): Fix a false positive for `Lint/SelfAssignment` when using attribute assignment with method call with arguments. ([@koic][]) + * [#12444](https://github.com/rubocop/rubocop/issues/12444): Fix false positive for `Style/HashEachMethods` when receiver literal is not a hash literal. ([@koic][]) + * [#12524](https://github.com/rubocop/rubocop/issues/12524): Fix a false positive for `Style/MethodCallWithArgsParentheses` when `EnforcedStyle: omit_parentheses` and parens in `when` clause is used to pass an argument. ([@koic][]) + * [#12505](https://github.com/rubocop/rubocop/pull/12505): Fix a false positive for `Style/RedundantParentheses` when using parenthesized `lambda` or `proc` with `do`...`end` block. ([@koic][]) + * [#12442](https://github.com/rubocop/rubocop/issues/12442): Fix an incorrect autocorrect for `Style/CombinableLoops` when looping over the same data as previous loop in `do`...`end` and `{`...`}` blocks. ([@koic][]) + * [#12432](https://github.com/rubocop/rubocop/pull/12432): Fix a false positive for `Lint/LiteralAssignmentInCondition` when using parallel assignment with splat operator in block of guard condition. ([@koic][]) + * [#12441](https://github.com/rubocop/rubocop/issues/12441): Fix false positives for `Style/HashEachMethods` when using destructed block arguments. ([@koic][]) + * [#12436](https://github.com/rubocop/rubocop/issues/12436): Fix false positives for `Style/RedundantParentheses` when a part of range is a parenthesized condition. ([@koic][]) + * [#12429](https://github.com/rubocop/rubocop/issues/12429): Fix incorrect autocorrect for `Style/MapToHash` when using dot method calls for `to_h`. ([@koic][]) + * [#12488](https://github.com/rubocop/rubocop/issues/12488): Make `Lint/HashCompareByIdentity` aware of safe navigation operator. ([@koic][]) + * [#12489](https://github.com/rubocop/rubocop/issues/12489): Make `Lint/NextWithoutAccumulator` aware of safe navigation operator. ([@koic][]) + * [#12490](https://github.com/rubocop/rubocop/issues/12490): Make `Lint/NumberConversion` aware of safe navigation operator. ([@koic][]) + * [#12491](https://github.com/rubocop/rubocop/issues/12491): Make `Lint/RedundantWithIndex` aware of safe navigation operator. ([@koic][]) + * [#12492](https://github.com/rubocop/rubocop/issues/12492): Make `Lint/RedundantWithObject` aware of safe navigation operator. ([@koic][]) + * [#12493](https://github.com/rubocop/rubocop/issues/12493): Make `Lint/UnmodifiedReduceAccumulator` aware of safe navigation operator. ([@koic][]) + * [#12473](https://github.com/rubocop/rubocop/issues/12473): Make `Style/ClassCheck` aware of safe navigation operator. ([@koic][]) + * [#12445](https://github.com/rubocop/rubocop/issues/12445): Make `Style/CollectionCompact` aware of safe navigation operator. ([@koic][]) + * [#12474](https://github.com/rubocop/rubocop/issues/12474): Make `Style/ConcatArrayLiterals` aware of safe navigation operator. ([@koic][]) + * [#12476](https://github.com/rubocop/rubocop/issues/12476): Make `Style/DateTime` aware of safe navigation operator. ([@koic][]) + * [#12479](https://github.com/rubocop/rubocop/issues/12479): Make `Style/EachWithObject` aware of safe navigation operator. ([@koic][]) + * [#12446](https://github.com/rubocop/rubocop/issues/12446): Make `Style/HashExcept` aware of safe navigation operator. ([@koic][]) + * [#12447](https://github.com/rubocop/rubocop/issues/12447): Make `Style/MapCompactWithConditionalBlock` aware of safe navigation operator. ([@koic][]) + * [#12484](https://github.com/rubocop/rubocop/issues/12484): Make `Style/Next` aware of safe navigation ope
commit rubygem-rubocop for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-rubocop for openSUSE:Factory checked in at 2023-12-06 23:48:39 Comparing /work/SRC/openSUSE:Factory/rubygem-rubocop (Old) and /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.25432 (New) Package is "rubygem-rubocop" Wed Dec 6 23:48:39 2023 rev:50 rq:1131291 version:1.58.0 Changes: --- /work/SRC/openSUSE:Factory/rubygem-rubocop/rubygem-rubocop.changes 2023-11-01 22:11:11.558361659 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.25432/rubygem-rubocop.changes 2023-12-06 23:49:16.065534158 +0100 @@ -1,0 +2,49 @@ +Tue Dec 5 12:41:46 UTC 2023 - Mykola Krachkovsky + +- updated to version 1.58.0 + + ## 1.58.0 (2023-12-01) + + ### New features + + * [#12420](https://github.com/rubocop/rubocop/pull/12420): Add new `Lint/LiteralAssignmentInCondition` cop. ([@koic][]) + * [#12353](https://github.com/rubocop/rubocop/issues/12353): Add new `Style/SuperWithArgsParentheses` cop. ([@koic][]) + * [#12406](https://github.com/rubocop/rubocop/issues/12406): Add new `Style/ArrayFirstLast` cop. ([@fatkodima][]) + + ### Bug fixes + + * [#12372](https://github.com/rubocop/rubocop/issues/12372): Fix a false negative for `Lint/Debugger` when used within method arguments a `begin`...`end` block. ([@koic][]) + * [#12378](https://github.com/rubocop/rubocop/pull/12378): Fix a false negative for `Style/Semicolon` when a semicolon at the beginning of a lambda block. ([@koic][]) + * [#12146](https://github.com/rubocop/rubocop/issues/12146): Fix a false positive for `Lint/FloatComparison` when comparing against zero. ([@earlopain][]) + * [#12404](https://github.com/rubocop/rubocop/issues/12404): Fix a false positive for `Layout/RescueEnsureAlignment` when aligned `rescue` in `do`-`end` numbered block in a method. ([@koic][]) + * [#12374](https://github.com/rubocop/rubocop/issues/12374): Fix a false positive for `Layout/SpaceBeforeSemicolon` when a space between an opening lambda brace and a semicolon. ([@koic][]) + * [#12326](https://github.com/rubocop/rubocop/pull/12326): Fix an error for `Style/RedundantDoubleSplatHashBraces` when method call for parenthesized no hash double double splat. ([@koic][]) + * [#12361](https://github.com/rubocop/rubocop/issues/12361): Fix an incorrect autocorrect for `Naming/BlockForwarding` and `Style/ArgumentsForwarding` when autocorrection conflicts for anonymous arguments. ([@koic][]) + * [#12324](https://github.com/rubocop/rubocop/issues/12324): Fix an error for `Layout/RescueEnsureAlignment` when using `rescue` in `do`...`end` block assigned to object attribute. ([@koic][]) + * [#12322](https://github.com/rubocop/rubocop/issues/12322): Fix an error for `Style/CombinableLoops` when looping over the same data for the third consecutive time or more. ([@koic][]) + * [#12366](https://github.com/rubocop/rubocop/pull/12366): Fix a false negative for `Layout/ExtraSpacing` when a file has exactly two comments. ([@eugeneius][]) + * [#12373](https://github.com/rubocop/rubocop/issues/12373): Fix a false negative for `Lint/SymbolConversion` when using string interpolation. ([@earlopain][]) + * [#12402](https://github.com/rubocop/rubocop/issues/12402): Fix false negatives for `Style/RedundantLineContinuation` when redundant line continuations for a block are used, especially without parentheses around first argument. ([@koic][]) + * [#12311](https://github.com/rubocop/rubocop/issues/12311): Fix false negatives for `Style/RedundantParentheses` when parentheses around logical operator keywords in method definition. ([@koic][]) + * [#12394](https://github.com/rubocop/rubocop/issues/12394): Fix false negatives for `Style/RedundantReturn` when `lambda` (`->`) ending with `return`. ([@koic][]) + * [#12377](https://github.com/rubocop/rubocop/issues/12377): Fix false positives for `Lint/Void` when a collection literal that includes non-literal elements in a method definition. ([@koic][]) + * [#12407](https://github.com/rubocop/rubocop/pull/12407): Fix an incorrect autocorrect for `Style/MapToHash` with `Layout/SingleLineBlockChain`. ([@koic][]) + * [#12409](https://github.com/rubocop/rubocop/issues/12409): Fix an incorrect autocorrect for `Lint/SafeNavigationChain` when ordinary method chain exists after safe navigation leading dot method call. ([@koic][]) + * [#12363](https://github.com/rubocop/rubocop/issues/12363): Fix incorrect rendering of HTML character entities in `HTMLFormatter` formatter. ([@koic][]) + * [#12424](https://github.com/rubocop/rubocop/issues/12424): Make `Style/HashEachMethods` aware of safe navigation operator. ([@koic][]) + * [#12413](https://github.com/rubocop/rubocop/issues/12413): Make `Style/InverseMethods` aware of safe navigation operator. ([
commit rubygem-rubocop for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-rubocop for openSUSE:Factory checked in at 2023-11-01 22:10:29 Comparing /work/SRC/openSUSE:Factory/rubygem-rubocop (Old) and /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.17445 (New) Package is "rubygem-rubocop" Wed Nov 1 22:10:29 2023 rev:49 rq:1121572 version:1.57.2 Changes: --- /work/SRC/openSUSE:Factory/rubygem-rubocop/rubygem-rubocop.changes 2023-10-17 20:24:53.499057916 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.17445/rubygem-rubocop.changes 2023-11-01 22:11:11.558361659 +0100 @@ -1,0 +2,25 @@ +Wed Nov 1 07:55:15 UTC 2023 - Mykola Krachkovsky + +- updated to version 1.57.2 + + ## 1.57.2 (2023-10-26) + + ### Bug fixes + + * [#12274](https://github.com/rubocop/rubocop/issues/12274): Fix a false positive for `Lint/Void` when `each`'s receiver is an object of `Enumerator` to which `filter` has been applied. ([@koic][]) + * [#12291](https://github.com/rubocop/rubocop/issues/12291): Fix a false positive for `Metrics/ClassLength` when a class with a singleton class definition. ([@koic][]) + * [#12293](https://github.com/rubocop/rubocop/issues/12293): Fix a false positive for `Style/RedundantDoubleSplatHashBraces` when using double splat hash braces with `merge` and method chain. ([@koic][]) + * [#12298](https://github.com/rubocop/rubocop/issues/12298): Fix a false positive for `Style/RedundantParentheses` when using a parenthesized hash literal as the first argument in a method call without parentheses. ([@koic][]) + * [#12283](https://github.com/rubocop/rubocop/pull/12283): Fix an error for `Style/SingleLineDoEndBlock` when using single line `do`...`end` with no body. ([@koic][]) + * [#12312](https://github.com/rubocop/rubocop/issues/12312): Fix an incorrect autocorrect for `Style/HashSyntax` when braced hash key and value are the same and it is used in `if`...`else`. ([@koic][]) + * [#12307](https://github.com/rubocop/rubocop/issues/12307): Fix an infinite loop error for `Layout/EndAlignment` when `EnforcedStyleAlignWith: variable` and using a conditional statement in a method argument on the same line and `end` with method call is not aligned. ([@koic][]) + * [#11652](https://github.com/rubocop/rubocop/issues/11652): Make `--auto-gen-config` generate `inherit_from` correctly inside ERB `if`. ([@jonas054][]) + * [#12310](https://github.com/rubocop/rubocop/issues/12310): Drop `base64` gem from runtime dependency. ([@koic][]) + * [#12300](https://github.com/rubocop/rubocop/issues/12300): Fix an error for `Style/IdenticalConditionalBranches` when `if`...`else` with identical leading lines and using index assign. ([@koic][]) + * [#12286](https://github.com/rubocop/rubocop/issues/12286): Fix false positives for `Style/RedundantDoubleSplatHashBraces` when using double splat with a hash literal enclosed in parenthesized ternary operator. ([@koic][]) + * [#12279](https://github.com/rubocop/rubocop/issues/12279): Fix false positives for `Lint/EmptyConditionalBody` when missing 2nd `if` body with a comment. ([@koic][]) + * [#12275](https://github.com/rubocop/rubocop/issues/12275): Fix a false positive for `Style/RedundantDoubleSplatHashBraces` when using double splat within block argument containing a hash literal in an array literal. ([@koic][]) + * [#12284](https://github.com/rubocop/rubocop/issues/12284): Fix false positives for `Style/SingleArgumentDig` when using some anonymous argument syntax. ([@koic][]) + * [#12301](https://github.com/rubocop/rubocop/issues/12301): Make `Style/RedundantFilterChain` aware of safe navigation operator. ([@koic][]) + +--- Old: rubocop-1.57.1.gem New: rubocop-1.57.2.gem Other differences: -- ++ rubygem-rubocop.spec ++ --- /var/tmp/diff_new_pack.oTbSPS/_old 2023-11-01 22:11:12.074380775 +0100 +++ /var/tmp/diff_new_pack.oTbSPS/_new 2023-11-01 22:11:12.074380775 +0100 @@ -24,7 +24,7 @@ # Name: rubygem-rubocop -Version:1.57.1 +Version:1.57.2 Release:0 %define mod_name rubocop %define mod_full_name %{mod_name}-%{version} ++ rubocop-1.57.1.gem -> rubocop-1.57.2.gem ++ Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rubocop/cli/command/auto_generate_config.rb new/lib/rubocop/cli/command/auto_generate_config.rb --- old/lib/rubocop/cli/command/auto_generate_config.rb 2023-10-13 09:36:04.0 +0200 +++ new/lib/rubocop/cli/command/auto_generate_config.rb 2023-10-26 11:45:40.0 +0200 @@ -10,
commit rubygem-rubocop for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-rubocop for openSUSE:Factory checked in at 2023-10-17 20:24:45 Comparing /work/SRC/openSUSE:Factory/rubygem-rubocop (Old) and /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.20540 (New) Package is "rubygem-rubocop" Tue Oct 17 20:24:45 2023 rev:48 rq:1118191 version:1.57.1 Changes: --- /work/SRC/openSUSE:Factory/rubygem-rubocop/rubygem-rubocop.changes 2023-10-12 23:43:00.566852924 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.20540/rubygem-rubocop.changes 2023-10-17 20:24:53.499057916 +0200 @@ -1,0 +2,16 @@ +Fri Oct 13 18:48:13 UTC 2023 - Mykola Krachkovsky + +- updated to version 1.57.1 + + ## 1.57.1 (2023-10-13) + + ### Bug fixes + + * [#12271](https://github.com/rubocop/rubocop/issues/12271): Fix a false positive for `Lint/RedundantSafeNavigation` when using snake case constant receiver. ([@koic][]) + * [#12265](https://github.com/rubocop/rubocop/issues/12265): Fix an error for `Layout/MultilineMethodCallIndentation` when usingarithmetic operation with block inside a grouped expression. ([@koic][]) + * [#12177](https://github.com/rubocop/rubocop/pull/12177): Fix an incorrect autocorrect for `Style/RedundantException`. ([@ydah][]) + * [#12261](https://github.com/rubocop/rubocop/issues/12261): Fix an infinite loop for `Layout/MultilineMethodCallIndentation` when multiline method chain with a block argument and method chain. ([@ydah][]) + * [#12263](https://github.com/rubocop/rubocop/issues/12263): Fix false positives for `Style/RedundantDoubleSplatHashBraces` when method call for no hash braced double splat receiver. ([@koic][]) + * [#12262](https://github.com/rubocop/rubocop/pull/12262): Fix an incorrect autocorrect for `Style/RedundantDoubleSplatHashBraces` when using double splat hash braces with `merge` method call twice. ([@koic][]) + +--- Old: rubocop-1.57.0.gem New: rubocop-1.57.1.gem Other differences: -- ++ rubygem-rubocop.spec ++ --- /var/tmp/diff_new_pack.IsOXq4/_old 2023-10-17 20:24:54.403089563 +0200 +++ /var/tmp/diff_new_pack.IsOXq4/_new 2023-10-17 20:24:54.407089703 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-rubocop -Version:1.57.0 +Version:1.57.1 Release:0 %define mod_name rubocop %define mod_full_name %{mod_name}-%{version} ++ rubocop-1.57.0.gem -> rubocop-1.57.1.gem ++ Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rubocop/cop/layout/multiline_method_call_indentation.rb new/lib/rubocop/cop/layout/multiline_method_call_indentation.rb --- old/lib/rubocop/cop/layout/multiline_method_call_indentation.rb 2023-10-11 12:49:43.0 +0200 +++ new/lib/rubocop/cop/layout/multiline_method_call_indentation.rb 2023-10-13 09:36:04.0 +0200 @@ -182,7 +182,7 @@ return unless rhs.source.start_with?('.', '&.') node = semantic_alignment_node(node) - return unless node&.loc&.selector + return unless node&.loc&.selector && node.loc.dot node.loc.dot.join(node.loc.selector) end @@ -227,7 +227,11 @@ return unless (block_node = node.each_descendant(:block, :numblock).first) return unless block_node.multiline? && block_node.parent.call_type? - block_node.parent + if node.receiver.call_type? +node.receiver + else +block_node.parent + end end def first_call_has_a_dot(node) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rubocop/cop/lint/redundant_safe_navigation.rb new/lib/rubocop/cop/lint/redundant_safe_navigation.rb --- old/lib/rubocop/cop/lint/redundant_safe_navigation.rb 2023-10-11 12:49:43.0 +0200 +++ new/lib/rubocop/cop/lint/redundant_safe_navigation.rb 2023-10-13 09:36:04.0 +0200 @@ -4,8 +4,8 @@ module Cop module Lint # Checks for redundant safe navigation calls. - # Use cases where a constant is `nil` are rare and an offense is detected - # when the receiver is a constant. + # Use cases where a constant, named in camel case for classes and modules is `nil` are rare, + # and an offense is not detected when the receiver is a snake case constant. # # For all receivers, the `instance_of?`, `kind_of?`, `is_a?`, `eql?`, `respond_to?`, # and `equal?` methods are checked by default. @@ -26,7 +26,7 @@ # # @example # # ba
commit rubygem-rubocop for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-rubocop for openSUSE:Factory checked in at 2023-10-12 23:41:38 Comparing /work/SRC/openSUSE:Factory/rubygem-rubocop (Old) and /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.1807 (New) Package is "rubygem-rubocop" Thu Oct 12 23:41:38 2023 rev:47 rq:1117131 version:1.57.0 Changes: --- /work/SRC/openSUSE:Factory/rubygem-rubocop/rubygem-rubocop.changes 2023-10-10 21:00:56.727486209 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.1807/rubygem-rubocop.changes 2023-10-12 23:43:00.566852924 +0200 @@ -1,0 +2,54 @@ +Wed Oct 11 19:32:07 UTC 2023 - Mykola Krachkovsky + +- updated to version 1.57.0 + + ## 1.57.0 (2023-10-11) + + ### New features + + * [#12227](https://github.com/rubocop/rubocop/pull/12227): Add new `Style/SingleLineDoEndBlock` cop. ([@koic][]) + * [#12246](https://github.com/rubocop/rubocop/pull/12246): Make `Lint/RedundantSafeNavigation` aware of constant receiver. ([@koic][]) + * [#12257](https://github.com/rubocop/rubocop/issues/12257): Make `Style/RedundantDoubleSplatHashBraces` aware of `merge` methods. ([@koic][]) + + ### Bug fixes + + * [#12244](https://github.com/rubocop/rubocop/issues/12244): Fix a false negative for `Lint/Debugger` when using debugger method inside block. ([@koic][]) + * [#12231](https://github.com/rubocop/rubocop/issues/12231): Fix a false negative for `Metrics/ModuleLength` when defining a singleton class in a module. ([@koic][]) + * [#12249](https://github.com/rubocop/rubocop/issues/12249): Fix a false positive `Style/IdenticalConditionalBranches` when `if`..`else` with identical leading lines and assign to condition value. ([@koic][]) + * [#12253](https://github.com/rubocop/rubocop/pull/12253): Fix `Lint/LiteralInInterpolation` to accept an empty string literal interpolated in words literal. ([@knu][]) + * [#12198](https://github.com/rubocop/rubocop/issues/12198): Fix an error for flip-flop with beginless or endless ranges. ([@koic][]) + * [#12259](https://github.com/rubocop/rubocop/issues/12259): Fix an error for `Lint/MixedCaseRange` when using nested character class in regexp. ([@koic][]) + * [#12237](https://github.com/rubocop/rubocop/issues/12237): Fix an error for `Style/NestedTernaryOperator` when a ternary operator has a nested ternary operator within an `if`. ([@koic][]) + * [#12228](https://github.com/rubocop/rubocop/pull/12228): Fix false negatives for `Style/MultilineBlockChain` when using multiline block chain with safe navigation operator. ([@koic][]) + * [#12247](https://github.com/rubocop/rubocop/pull/12247): Fix false negatives for `Style/RedundantParentheses` when using logical or comparison expressions with redundant parentheses. ([@koic][]) + * [#12226](https://github.com/rubocop/rubocop/issues/12226): Fix false positives for `Layout/MultilineMethodCallIndentation` when aligning methods in multiline block chain. ([@koic][]) + * [#12076](https://github.com/rubocop/rubocop/issues/12076): Fixed an issue where the top-level cache folder was named differently during two consecutive rubocop runs. ([@K-S-A][]) + + ### Changes + + * [#12235](https://github.com/rubocop/rubocop/pull/12235): Enable auto parallel inspection when config file is specified. ([@aboutNisblee][]) + * [#12234](https://github.com/rubocop/rubocop/pull/12234): Enhance `Style/FormatString`'s autocorrection when using known conversion methods whose return value is not an array. ([@koic][]) + * [#12128](https://github.com/rubocop/rubocop/issues/12128): Make `Style/GuardClause` aware of `define_method`. ([@koic][]) + * [#12126](https://github.com/rubocop/rubocop/pull/12126): Make `Style/RedundantFilterChain` aware of `select.present?` when `ActiveSupportExtensionsEnabled` config is `true`. ([@koic][]) + * [#12250](https://github.com/rubocop/rubocop/pull/12250): Mark `Lint/RedundantRequireStatement` as unsafe autocorrect. ([@koic][]) + * [#12097](https://github.com/rubocop/rubocop/issues/12097): Mark unsafe autocorrect for `Style/ClassEqualityComparison`. ([@koic][]) + * [#12210](https://github.com/rubocop/rubocop/issues/12210): Mark `Style/RedundantFilterChain` as unsafe autocorrect. ([@koic][]) + + ## 1.56.4 (2023-09-28) + + ### Bug fixes + + * [#12221](https://github.com/rubocop/rubocop/issues/12221): Fix a false positive for `Layout/EmptyLineAfterGuardClause` when using `return` before guard condition with heredoc. ([@koic][]) + * [#12213](https://github.com/rubocop/rubocop/issues/12213): Fix a false positive for `Lint/OrderedMagicComments` when comment text `# encoding: ISO-8859-1` is embedded within example code as source code comment. ([@koic][]) + * [#12205](https://github.com/rubocop/rubocop/issues/12205): Fix an error for `Style/
commit rubygem-rubocop for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-rubocop for openSUSE:Factory checked in at 2023-10-10 21:00:03 Comparing /work/SRC/openSUSE:Factory/rubygem-rubocop (Old) and /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.28202 (New) Package is "rubygem-rubocop" Tue Oct 10 21:00:03 2023 rev:46 rq:1116488 version:1.56.3 Changes: --- /work/SRC/openSUSE:Factory/rubygem-rubocop/rubygem-rubocop.changes 2022-12-13 18:57:25.111828070 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.28202/rubygem-rubocop.changes 2023-10-10 21:00:56.727486209 +0200 @@ -1,0 +2,690 @@ +Wed Sep 13 20:01:39 UTC 2023 - Mykola Krachkovsky + +- updated to version 1.56.3 + + ## 1.56.3 (2023-09-11) + + ### Bug fixes + + * [#12151](https://github.com/rubocop/rubocop/issues/12151): Make `Layout/EmptyLineAfterGuardClause` allow `:nocov:` directive after guard clause. ([@koic][]) + * [#12195](https://github.com/rubocop/rubocop/issues/12195): Fix a false negative for `Layout/SpaceAfterNot` when a newline is present after `!`. ([@ymap][]) + * [#12192](https://github.com/rubocop/rubocop/issues/12192): Fix a false positive for `Layout/RedundantLineBreak` when using quoted symbols with a single newline. ([@ymap][]) + * [#12190](https://github.com/rubocop/rubocop/issues/12190): Fix a false positive for `Layout/SpaceAroundOperators` when aligning operators vertically. ([@koic][]) + * [#12171](https://github.com/rubocop/rubocop/issues/12171): Fix a false positive for `Style/ArrayIntersect` when using block argument for `Enumerable#any?`. ([@koic][]) + * [#12172](https://github.com/rubocop/rubocop/issues/12172): Fix a false positive for `Style/EmptyCaseCondition` when using `return`, `break`, `next` or method call before empty case condition. ([@koic][]) + * [#12162](https://github.com/rubocop/rubocop/issues/12162): Fix an error for `Bundler/DuplicatedGroup` when there's a duplicate set of groups and the `group` value contains a splat. ([@koic][]) + * [#12182](https://github.com/rubocop/rubocop/issues/12182): Fix an error for `Lint/UselessAssignment` when variables are assigned using chained assignment and remain unreferenced. ([@koic][]) + * [#12181](https://github.com/rubocop/rubocop/issues/12181): Fix an incorrect autocorrect for `Lint/UselessAssignment` when variables are assigned with sequential assignment using the comma operator and unreferenced. ([@koic][]) + * [#12187](https://github.com/rubocop/rubocop/issues/12187): Fix an incorrect autocorrect for `Style/SoleNestedConditional` when comment is in an empty nested `if` body. ([@ymap][]) + * [#12183](https://github.com/rubocop/rubocop/pull/12183): Fix an incorrect autocorrect for `Style/MultilineTernaryOperator` when returning a multiline ternary operator expression with safe navigation method call. ([@koic][]) + * [#12168](https://github.com/rubocop/rubocop/issues/12168): Fix bug in `Style/ArgumentsForwarding` when there are repeated send nodes. ([@owst][]) + * [#12185](https://github.com/rubocop/rubocop/pull/12185): Set target version for `Layout/HeredocIndentation`. ([@tagliala][]) + +--- +Sat Sep 2 09:38:31 UTC 2023 - Mykola Krachkovsky + +- updated to version 1.56.2 + + ## 1.56.2 (2023-08-29) + + ### Bug fixes + + * [#12138](https://github.com/rubocop/rubocop/issues/12138): Fix a false positive for `Layout/LineContinuationLeadingSpace` when a backslash is part of a multiline string literal. ([@ymap][]) + * [#12155](https://github.com/rubocop/rubocop/pull/12155): Fix false positive for `Layout/RedundantLineBreak` when using a modified singleton method definition. ([@koic][]) + * [#12143](https://github.com/rubocop/rubocop/issues/12143): Fix a false positive for `Lint/ToEnumArguments` when using anonymous keyword arguments forwarding. ([@koic][]) + * [#12148](https://github.com/rubocop/rubocop/pull/12148): Fix an incorrect autocorrect for `Lint/NonAtomicFileOperation` when using `FileUtils.remove_dir`, `FileUtils.remove_entry`, or `FileUtils.remove_entry_secure`. ([@koic][]) + * [#12141](https://github.com/rubocop/rubocop/issues/12141): Fix false positive for `Style/ArgumentsForwarding` when method def includes additional kwargs. ([@owst][]) + * [#12154](https://github.com/rubocop/rubocop/issues/12154): Fix incorrect `diagnosticProvider` value of LSP. ([@koic][]) + + ## 1.56.1 (2023-08-21) + + ### Bug fixes + + * [#12136](https://github.com/rubocop/rubocop/pull/12136): Fix a false negative for `Layout/LeadingCommentSpace` when using `#+` or `#-` as they are not RDoc comments. ([@koic][]) + * [#12113](https://github.com/rubocop/rubocop/issues/12113): Fix a false positive for `Bundler/DuplicatedGroup` when groups are duplica
commit rubygem-rubocop for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-rubocop for openSUSE:Factory checked in at 2022-12-13 18:56:57 Comparing /work/SRC/openSUSE:Factory/rubygem-rubocop (Old) and /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.1835 (New) Package is "rubygem-rubocop" Tue Dec 13 18:56:57 2022 rev:45 rq:1042658 version:1.39.0 Changes: --- /work/SRC/openSUSE:Factory/rubygem-rubocop/rubygem-rubocop.changes 2022-10-30 18:29:16.958529196 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.1835/rubygem-rubocop.changes 2022-12-13 18:57:25.111828070 +0100 @@ -1,0 +2,6 @@ +Wed Dec 7 11:33:19 UTC 2022 - Stephan Kulow + +updated to version 1.39.0 + no changelog found + +--- Old: rubocop-1.37.1.gem New: rubocop-1.39.0.gem Other differences: -- ++ rubygem-rubocop.spec ++ --- /var/tmp/diff_new_pack.dbHxbn/_old 2022-12-13 18:57:25.859832062 +0100 +++ /var/tmp/diff_new_pack.dbHxbn/_new 2022-12-13 18:57:25.863832083 +0100 @@ -24,7 +24,7 @@ # Name: rubygem-rubocop -Version:1.37.1 +Version:1.39.0 Release:0 %define mod_name rubocop %define mod_full_name %{mod_name}-%{version} ++ rubocop-1.37.1.gem -> rubocop-1.39.0.gem ++ 1822 lines of diff (skipped)
commit rubygem-rubocop for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-rubocop for openSUSE:Factory checked in at 2022-10-30 18:28:59 Comparing /work/SRC/openSUSE:Factory/rubygem-rubocop (Old) and /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.2275 (New) Package is "rubygem-rubocop" Sun Oct 30 18:28:59 2022 rev:44 rq:1032160 version:1.37.1 Changes: --- /work/SRC/openSUSE:Factory/rubygem-rubocop/rubygem-rubocop.changes 2022-10-12 18:27:05.442006742 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.2275/rubygem-rubocop.changes 2022-10-30 18:29:16.958529196 +0100 @@ -1,0 +2,6 @@ +Fri Oct 28 05:06:33 UTC 2022 - Stephan Kulow + +updated to version 1.37.1 + no changelog found + +--- Old: rubocop-1.36.0.gem New: rubocop-1.37.1.gem Other differences: -- ++ rubygem-rubocop.spec ++ --- /var/tmp/diff_new_pack.OjMIKM/_old 2022-10-30 18:29:18.386536913 +0100 +++ /var/tmp/diff_new_pack.OjMIKM/_new 2022-10-30 18:29:18.394536956 +0100 @@ -24,7 +24,7 @@ # Name: rubygem-rubocop -Version:1.36.0 +Version:1.37.1 Release:0 %define mod_name rubocop %define mod_full_name %{mod_name}-%{version} ++ rubocop-1.36.0.gem -> rubocop-1.37.1.gem ++ 2359 lines of diff (skipped)
commit rubygem-rubocop for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-rubocop for openSUSE:Factory checked in at 2022-10-12 18:25:16 Comparing /work/SRC/openSUSE:Factory/rubygem-rubocop (Old) and /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.2275 (New) Package is "rubygem-rubocop" Wed Oct 12 18:25:16 2022 rev:43 rq:1010069 version:1.36.0 Changes: --- /work/SRC/openSUSE:Factory/rubygem-rubocop/rubygem-rubocop.changes 2022-08-27 11:50:15.533864832 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.2275/rubygem-rubocop.changes 2022-10-12 18:27:05.442006742 +0200 @@ -1,0 +2,6 @@ +Mon Oct 10 13:19:53 UTC 2022 - Stephan Kulow + +updated to version 1.36.0 + no changelog found + +--- Old: rubocop-1.35.1.gem New: rubocop-1.36.0.gem Other differences: -- ++ rubygem-rubocop.spec ++ --- /var/tmp/diff_new_pack.7NNSEc/_old 2022-10-12 18:27:05.850007641 +0200 +++ /var/tmp/diff_new_pack.7NNSEc/_new 2022-10-12 18:27:05.854007649 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-rubocop -Version:1.35.1 +Version:1.36.0 Release:0 %define mod_name rubocop %define mod_full_name %{mod_name}-%{version} ++ rubocop-1.35.1.gem -> rubocop-1.36.0.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.md new/README.md --- old/README.md 2022-08-22 07:47:33.0 +0200 +++ new/README.md 2022-09-01 09:58:49.0 +0200 @@ -53,7 +53,7 @@ in your `Gemfile`: ```rb -gem 'rubocop', '~> 1.35', require: false +gem 'rubocop', '~> 1.36', require: false ``` See [our versioning policy](https://docs.rubocop.org/rubocop/versioning.html) for further details. Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/config/default.yml new/config/default.yml --- old/config/default.yml 2022-08-22 07:47:33.0 +0200 +++ new/config/default.yml 2022-09-01 09:58:49.0 +0200 @@ -2794,6 +2794,7 @@ AllowNamesEndingInNumbers: true # Allowed names that will not register an offense AllowedNames: +- as - at - by - db @@ -2948,6 +2949,7 @@ - inline - group AllowModifiersOnSymbols: true + SafeAutoCorrect: false Style/AccessorGrouping: Description: 'Checks for grouping of accessors in `class` and `module` bodies.' @@ -3186,6 +3188,15 @@ # # good # String === "string" AllowOnConstant: false + # If `AllowOnSelfClass` option is enabled, the cop will ignore violations when the receiver of + # the case equality operator is `self.class`. + # + # # bad + # some_class === object + # + # # good + # self.class === object + AllowOnSelfClass: false Style/CaseLikeIf: Description: 'Identifies places where `if-elsif` constructions can be replaced with `case-when`.' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rubocop/cop/layout/block_alignment.rb new/lib/rubocop/cop/layout/block_alignment.rb --- old/lib/rubocop/cop/layout/block_alignment.rb 2022-08-22 07:47:33.0 +0200 +++ new/lib/rubocop/cop/layout/block_alignment.rb 2022-09-01 09:58:49.0 +0200 @@ -22,23 +22,24 @@ # # bad # # foo.bar - # .each do - #baz - # end + # .each do + # baz + # end # # # good # - # variable = lambda do |i| - # i + # foo.bar + # .each do + # baz # end # # @example EnforcedStyleAlignWith: start_of_block # # bad # # foo.bar - # .each do - #baz - # end + # .each do + # baz + # end # # # good # @@ -51,16 +52,17 @@ # # bad # # foo.bar - # .each do - #baz - # end + # .each do + # baz + # end # # # good # # foo.bar # .each do - #baz + # baz # end + # class BlockAlignment < Base include ConfigurableEnforcedStyle include RangeHelp diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rubocop/cop/layout/indentation_width.rb new/lib/rubocop/cop/layout/indentation_width.rb --- old/lib/rubocop/cop/layout/indentation_width.rb 2022-08-22 07:47:33.0 +0200 +++ new/lib
commit rubygem-rubocop for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-rubocop for openSUSE:Factory checked in at 2022-08-27 11:50:11 Comparing /work/SRC/openSUSE:Factory/rubygem-rubocop (Old) and /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.2083 (New) Package is "rubygem-rubocop" Sat Aug 27 11:50:11 2022 rev:42 rq:999450 version:1.35.1 Changes: --- /work/SRC/openSUSE:Factory/rubygem-rubocop/rubygem-rubocop.changes 2022-08-09 15:27:07.417414534 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.2083/rubygem-rubocop.changes 2022-08-27 11:50:15.533864832 +0200 @@ -1,0 +2,71 @@ +Fri Aug 26 16:42:04 UTC 2022 - Manuel Schnitzer + +- updated to version 1.35.0 + + ## 1.35.1 (2022-08-22) + + ### Bug fixes + + * [#10926](https://github.com/rubocop/rubocop/issues/10926): Make `Style/SafeNavigation` aware of a redundant nil check. ([@koic][]) + * [#10944](https://github.com/rubocop/rubocop/issues/10944): Fix an incorrect autocorrect for `Lint/LiteralInInterpolation` when using `"#{nil}"`. ([@koic][]) + * [#10921](https://github.com/rubocop/rubocop/issues/10921): Fix an error when ERB pre-processing of the configuration file. ([@koic][]) + * [#10936](https://github.com/rubocop/rubocop/issues/10936): Fix an error for `Lint/NonAtomicFileOperation` when using `FileTest.exist?` as a condition for `elsif`. ([@koic][]) + * [#10920](https://github.com/rubocop/rubocop/issues/10920): Fix an incorrect autocorrect for `Style/SoleNestedConditional` when using nested conditional and branch contains a comment. ([@koic][]) + * [#10939](https://github.com/rubocop/rubocop/issues/10939): Fix an error for `Style/Next` when line break before condition. ([@koic][]) + + ## 1.35.0 (2022-08-12) + + ### New features + + * [#9364](https://github.com/rubocop/rubocop/pull/9364): Add `Style/MagicCommentFormat` cop. ([@dvandersluis][], [@mattbearman][]) + * [#10776](https://github.com/rubocop/rubocop/pull/10776): New option (`consistent`) for `EnforcedShorthandSyntax` in `Style/HashSyntax` to avoid mixing shorthand and non-shorthand hash keys in ruby 3.1. ([@h-lame][]) + + ### Bug fixes + + * [#10899](https://github.com/rubocop/rubocop/issues/10899): Fix an error for `Lint/ShadowingOuterLocalVariable` when the same variable name as a block variable is used in return value assignment of `if`. ([@koic][]) + * [#10916](https://github.com/rubocop/rubocop/pull/10916): Fix an error when .rubocop.yml is empty. ([@koic][]) + * [#10915](https://github.com/rubocop/rubocop/pull/10915): Fix numblock support to `Layout/BlockAlignment`, `Layout/BlockEndNewline`, `Layout/EmptyLinesAroundAccessModifier`, `Layout/EmptyLinesAroundBlockBody`, `Layout/IndentationWidth`, `Layout/LineLength`, `Layout/MultilineBlockLayout`, `Layout/SpaceBeforeBlockBraces`, `Lint/NextWithoutAccumulator`, `Lint/NonDeterministicRequireOrder`, `Lint/RedundantWithIndex`, `Lint/RedundantWithObject`, `Lint/UnreachableLoop`, `Lint/UselessAccessModifier`, `Lint/Void`, `Metrics/AbcSize`, `Metrics/CyclomaticComplexity`, `Style/CollectionMethods`, `Style/CombinableLoops`, `Style/EachWithObject`, `Style/For`, `Style/HashEachMethods`, `Style/InverseMethods`, `Style/MethodCalledOnDoEndBlock`, `Style/MultilineBlockChain`, `Style/Next`, `Style/ObjectThen`, `Style/Proc`, `Style/RedundantBegin`, `Style/RedundantSelf`, `Style/RedundantSortBy` and `Style/TopLevelMethodDefinition`. ([@gsamokovarov][]) + * [#10895](https://github.com/rubocop/rubocop/issues/10895): Fix incorrect autocomplete in `Style/RedundantParentheses` when a heredoc is used in an array. ([@dvandersluis][]) + * [#10909](https://github.com/rubocop/rubocop/pull/10909): Fix loading behavior on running without `bundle exec`. ([@r7kamura][]) + * [#10913](https://github.com/rubocop/rubocop/issues/10913): Make `Style/ArgumentsForwarding` aware of anonymous block argument. ([@koic][]) + * [#10911](https://github.com/rubocop/rubocop/pull/10911): Fix Style/ClassMethodsDefinitions for non-self receivers. ([@sambostock][]) + + ### Changes + + * [#10915](https://github.com/rubocop/rubocop/pull/10915): Depend on rubocop-ast 1.20.1 for numblocks support in #macro?. ([@gsamokovarov][]) + + ## 1.34.1 (2022-08-09) + + ### Bug fixes + + * [#10893](https://github.com/rubocop/rubocop/issues/10893): Fix an error when running `rubocop` without `bundle exec`. ([@koic][]) + + ## 1.34.0 (2022-08-09) + + ### New features + + * [#10170](https://github.com/rubocop/rubocop/pull/10170): Add new `InternalAffairs/SingleLineComparison` cop. ([@dvandersluis][]) + + ### Bug fixes + + * [#10552](https://github.com/rubocop/rubocop/issues/10552): Require RuboCop AST 1.20.0+ to fix a false positive for `Lint/OutOfRangeRegexpRef` when using fixed-encoding regopt. ([@koic][]) + * [#10512](http
commit rubygem-rubocop for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-rubocop for openSUSE:Factory checked in at 2022-08-09 15:26:51 Comparing /work/SRC/openSUSE:Factory/rubygem-rubocop (Old) and /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.1521 (New) Package is "rubygem-rubocop" Tue Aug 9 15:26:51 2022 rev:41 rq:993518 version:1.33.0 Changes: --- /work/SRC/openSUSE:Factory/rubygem-rubocop/rubygem-rubocop.changes 2022-07-08 14:03:29.266557050 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.1521/rubygem-rubocop.changes 2022-08-09 15:27:07.417414534 +0200 @@ -1,0 +2,6 @@ +Thu Aug 4 13:26:35 UTC 2022 - Stephan Kulow + +updated to version 1.33.0 + no changelog found + +--- Old: rubocop-1.31.2.gem New: rubocop-1.33.0.gem Other differences: -- ++ rubygem-rubocop.spec ++ --- /var/tmp/diff_new_pack.i5gcFy/_old 2022-08-09 15:27:07.977416134 +0200 +++ /var/tmp/diff_new_pack.i5gcFy/_new 2022-08-09 15:27:07.981416145 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-rubocop -Version:1.31.2 +Version:1.33.0 Release:0 %define mod_name rubocop %define mod_full_name %{mod_name}-%{version} ++ rubocop-1.31.2.gem -> rubocop-1.33.0.gem ++ 3696 lines of diff (skipped)
commit rubygem-rubocop for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-rubocop for openSUSE:Factory checked in at 2022-07-08 14:03:22 Comparing /work/SRC/openSUSE:Factory/rubygem-rubocop (Old) and /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.1523 (New) Package is "rubygem-rubocop" Fri Jul 8 14:03:22 2022 rev:40 rq:987857 version:1.31.2 Changes: --- /work/SRC/openSUSE:Factory/rubygem-rubocop/rubygem-rubocop.changes 2022-07-02 15:34:41.735031560 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.1523/rubygem-rubocop.changes 2022-07-08 14:03:29.266557050 +0200 @@ -1,0 +2,14 @@ +Fri Jul 8 08:45:47 UTC 2022 - Manuel Schnitzer + +- updated to version 1.31.2 + + ### Bug fixes + + * [#10774](https://github.com/rubocop/rubocop/pull/10774): Fix false negatives in `Style/DocumentationMethod` when a public method is defined after a private one. ([@Darhazer][]) + * [#10764](https://github.com/rubocop/rubocop/issues/10764): Fix performance issue for Layout/FirstHashElementIndentation and Layout/FirstArrayElementIndentation. ([@j-miyake][]) + * [#10780](https://github.com/rubocop/rubocop/issues/10780): Fix an error when using `rubocop:auto_correct` deprecated custom rake task. ([@koic][]) + * [#10786](https://github.com/rubocop/rubocop/issues/10786): Fix a false positive for `Lint/NonAtomicFileOperation` when using complex conditional. ([@koic][]) + * [#10785](https://github.com/rubocop/rubocop/pull/10785): Fix a false negative for `Style/RedundantParentheses` when parens around a receiver of a method call with an argument. ([@koic][]) + * [#10026](https://github.com/rubocop/rubocop/issues/10026): Fix merging of array parameters in either parent of default config. ([@jonas054][]) + +--- Old: rubocop-1.31.1.gem New: rubocop-1.31.2.gem Other differences: -- ++ rubygem-rubocop.spec ++ --- /var/tmp/diff_new_pack.RPpRHp/_old 2022-07-08 14:03:29.738557612 +0200 +++ /var/tmp/diff_new_pack.RPpRHp/_new 2022-07-08 14:03:29.742557617 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-rubocop -Version:1.31.1 +Version:1.31.2 Release:0 %define mod_name rubocop %define mod_full_name %{mod_name}-%{version} ++ rubocop-1.31.1.gem -> rubocop-1.31.2.gem ++ Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rubocop/config_loader_resolver.rb new/lib/rubocop/config_loader_resolver.rb --- old/lib/rubocop/config_loader_resolver.rb 2022-06-29 08:54:47.0 +0200 +++ new/lib/rubocop/config_loader_resolver.rb 2022-07-07 10:04:10.0 +0200 @@ -179,7 +179,7 @@ def determine_inherit_mode(hash, key) cop_cfg = hash[key] - local_inherit = cop_cfg.delete('inherit_mode') if cop_cfg.is_a?(Hash) + local_inherit = cop_cfg['inherit_mode'] if cop_cfg.is_a?(Hash) local_inherit || hash['inherit_mode'] || {} end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rubocop/cop/base.rb new/lib/rubocop/cop/base.rb --- old/lib/rubocop/cop/base.rb 2022-06-29 08:54:47.0 +0200 +++ new/lib/rubocop/cop/base.rb 2022-07-07 10:04:10.0 +0200 @@ -48,7 +48,7 @@ InvestigationReport = Struct.new(:cop, :processed_source, :offenses, :corrector) # List of methods names to restrict calls for `on_send` / `on_csend` - RESTRICT_ON_SEND = Set[].freeze + RESTRICT_ON_SEND = Set[].freeze # rubocop:disable InternalAffairs/UselessRestrictOnSend # List of cops that should not try to autocorrect at the same # time as this cop diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rubocop/cop/generator.rb new/lib/rubocop/cop/generator.rb --- old/lib/rubocop/cop/generator.rb2022-06-29 08:54:47.0 +0200 +++ new/lib/rubocop/cop/generator.rb2022-07-07 10:04:10.0 +0200 @@ -62,6 +62,10 @@ # For example MSG = 'Use `#good_method` instead of `#bad_method`.' +# TODO: Don't call `on_send` unless the method name is in this list +# If you don't need `on_send` in the cop you created, remove it. +RESTRICT_ON_SEND = %%i[bad_method].freeze + # @!method bad_method?(node) def_node_matcher :bad_method?, <<~PATTERN (send nil? :bad_method ...) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rubocop/cop/internal_affairs/useless_restrict_on_sen
commit rubygem-rubocop for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-rubocop for openSUSE:Factory checked in at 2022-07-02 15:34:37 Comparing /work/SRC/openSUSE:Factory/rubygem-rubocop (Old) and /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.1548 (New) Package is "rubygem-rubocop" Sat Jul 2 15:34:37 2022 rev:39 rq:986301 version:1.31.1 Changes: --- /work/SRC/openSUSE:Factory/rubygem-rubocop/rubygem-rubocop.changes 2022-06-15 00:32:58.318585788 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.1548/rubygem-rubocop.changes 2022-07-02 15:34:41.735031560 +0200 @@ -1,0 +2,51 @@ +Wed Jun 29 21:05:22 UTC 2022 - Manuel Schnitzer + +- updated to version 1.31.1 + + ### Bug fixes + + * [#10763](https://github.com/rubocop/rubocop/issues/10763): Fix a false positive for `Layout/LineContinuationSpacing` when using continuation keyword `\` after `__END__`. ([@koic][]) + * [#10755](https://github.com/rubocop/rubocop/issues/10755): Fix a false positive for `Lint/LiteralAsCondition` when using a literal in `case-in` condition where the match variable is used in `in` are accepted as a pattern matching. ([@koic][]) + * [#10760](https://github.com/rubocop/rubocop/issues/10760): Fix a false positive for `Lint/NonAtomicFileOperation` when using `FileTest.exist?` with `if` condition that has `else` branch. ([@koic][]) + * [#10745](https://github.com/rubocop/rubocop/issues/10745): Require JSON 2.3 or higher to fix an incompatible JSON API error. ([@koic][]) + * [#10754](https://github.com/rubocop/rubocop/issues/10754): Fix an incorrect autocorrect for `Style/HashExcept` when using a non-literal collection receiver for `include?`. ([@koic][]) + * [#10751](https://github.com/rubocop/rubocop/issues/10751): Fix autocorrect for Layout/FirstHashElementIndentation. ([@j-miyake][]) + * [#10750](https://github.com/rubocop/rubocop/pull/10750): Recover 7x slow running `rubocop`. ([@koic][]) + + ## 1.31.0 (2022-06-27) + + ### New features + + * [#10699](https://github.com/rubocop/rubocop/pull/10699): Add new global `ActiveSupportExtensionsEnabled` option. ([@nobuyo][]) + * [#10245](https://github.com/rubocop/rubocop/pull/10245): Add specification_version and rubygems_version to `Gemspec/DeprecatedAttributeAssignment`. ([@kaitielth][]) + * [#10696](https://github.com/rubocop/rubocop/pull/10696): Add new `Lint/NonAtomicFileOperation` cop. ([@ydah][]) + * [#6420](https://github.com/rubocop/rubocop/issues/6420): Add new `Layout/LineContinuationLeadingSpace` cop. ([@bquorning][]) + * [#6420](https://github.com/rubocop/rubocop/issues/6420): Add new `Layout/LineContinuationSpacing` cop. ([@bquorning][]) + * [#10706](https://github.com/rubocop/rubocop/pull/10706): Integrate rubocop-daemon to add server options. ([@koic][]) + * [#10722](https://github.com/rubocop/rubocop/pull/10722): Add new `Lint/ConstantOverwrittenInRescue` cop. ([@ydah][]) + + ### Bug fixes + + * [#10700](https://github.com/rubocop/rubocop/issues/10700): Update `Style/EmptyMethod` to not correct if the correction would exceed the configuration for `Layout/LineLength`. ([@dvandersluis][]) + * [#10698](https://github.com/rubocop/rubocop/issues/10698): Enhance `Style/HashExcept` to support array inclusion checks. ([@nobuyo][]) + * [#10734](https://github.com/rubocop/rubocop/issues/10734): Handle `ClobberingError` in `Style/NestedTernaryOperator` when there are multiple nested ternaries. ([@dvandersluis][]) + * [#10689](https://github.com/rubocop/rubocop/issues/10689): Fix autocorrect for `Layout/FirstHashElementIndentation` and `Layout/FirstArrayElementIndentation`. ([@j-miyake][]) + * Fix `rubocop -V` not displaying the version information for rubocop-graphql, rubocop-md and rubocop-thread_safety. ([@Darhazer][]) + * [#10711](https://github.com/rubocop/rubocop/issues/10711): Fix an error for `Style/MultilineTernaryOperator` when the false branch is on a separate line. ([@koic][]) + * [#10719](https://github.com/rubocop/rubocop/issues/10719): Fix a false positive for `Lint/ParenthesesAsGroupedExpression` when using safe navigation operator. ([@koic][]) + * [#10736](https://github.com/rubocop/rubocop/pull/10736): Fix Layout/SpaceInsideBlockBraces for blocks with numbered arguments. ([@gsamokovarov][]) + * [#10749](https://github.com/rubocop/rubocop/pull/10749): Fix Style/BlockDelimiters for blocks with numbered arguments. ([@gsamokovarov][]) + * [#10737](https://github.com/rubocop/rubocop/issues/10737): Fix crash in `Style/ConditionalAssignment` with `EnforcedStyle: assign_inside_condition` when op-assigning a variable inside a `resbody`. ([@dvandersluis][]) + * [#7900](https://github.com/rubocop/rubocop/issues/7900): Fix `Style/FormatStringToken` false positive with formatted input and `template`
commit rubygem-rubocop for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-rubocop for openSUSE:Factory checked in at 2022-06-15 00:32:40 Comparing /work/SRC/openSUSE:Factory/rubygem-rubocop (Old) and /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.1548 (New) Package is "rubygem-rubocop" Wed Jun 15 00:32:40 2022 rev:38 rq:982536 version:1.30.1 Changes: --- /work/SRC/openSUSE:Factory/rubygem-rubocop/rubygem-rubocop.changes 2022-05-16 18:11:03.129399115 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.1548/rubygem-rubocop.changes 2022-06-15 00:32:58.318585788 +0200 @@ -1,0 +2,57 @@ +Mon Jun 13 17:11:30 UTC 2022 - Manuel Schnitzer + +- updated to version 1.30.1 + + ## 1.30.1 (2022-06-06) + + ### Bug fixes + + * [#10685](https://github.com/rubocop/rubocop/issues/10685): Fix a false positive for `Style/StringConcatenation` when `Mode: conservative` and first operand is not string literal. ([@koic][]) + * [#10670](https://github.com/rubocop/rubocop/pull/10670): Fix a false positive for `Style/FetchEnvVar` in the body with assignment method. ([@ydah][]) + * [#10671](https://github.com/rubocop/rubocop/issues/10671): Fix an incorrect autocorrect for `EnforcedStyle: with_first_argument` of `Layout/ArgumentAlignment` and `EnforcedColonStyle: separator` of `Layout/HashAlignment`. ([@koic][]) + * [#10676](https://github.com/rubocop/rubocop/pull/10676): Fix `--ignore-unrecognized-cops` option always showing empty warning even if there was no problem. ([@nobuyo][]) + * [#10674](https://github.com/rubocop/rubocop/issues/10674): Fix a false positive for `Naming/AccessorMethodName` with type of the first argument is other than `arg`. ([@ydah][]) + * [#10679](https://github.com/rubocop/rubocop/issues/10679): Fix a false positive for `Style/SafeNavigation` when `TargetRubyVersion: 2.2` or lower. ([@koic][]) + + ### Changes + + * [#10673](https://github.com/rubocop/rubocop/pull/10673): Update auto-gen-config's comment re auto-correct for `SafeAutoCorrect: false`. ([@ydah][]) + + ## 1.30.0 (2022-05-26) + + ### New features + + * [#10065](https://github.com/rubocop/rubocop/issues/10065): Add new `Gemspec/DeprecatedAttributeAssignment` cop. ([@koic][]) + * [#10608](https://github.com/rubocop/rubocop/pull/10608): Add new `Style/MapCompactWithConditionalBlock` cop. ([@nobuyo][]) + * [#10627](https://github.com/rubocop/rubocop/issues/10627): Add command-line option `--ignore-unrecognized-cops` to ignore any unknown cops or departments in .rubocop.yml. ([@nobuyo][]) + * [#10620](https://github.com/rubocop/rubocop/pull/10620): Add Sorbet's `typed` sigil as a magic comment. ([@zachahn][]) + + ### Bug fixes + + * [#10662](https://github.com/rubocop/rubocop/pull/10662): Recover Ruby 2.1 code analysis using `TargetRubyVersion: 2.1`. ([@koic][]) + * [#10396](https://github.com/rubocop/rubocop/issues/10396): Fix autocorrect for `Layout/IndentationWidth` to leave module/class body unchanged to avoid infinite autocorrect loop with `Layout/IndentationConsistency` when body trails after class/module definition. ([@johnny-miyake][]) + * [#10636](https://github.com/rubocop/rubocop/issues/10636): Fix false positive in `Style/RedundantCondition` when the branches call the same method on different receivers. ([@dvandersluis][]) + * [#10651](https://github.com/rubocop/rubocop/issues/10651): Fix autocorrect for `Style/For` when using array with operator methods as collection. ([@nobuyo][]) + * [#10629](https://github.com/rubocop/rubocop/pull/10629): Fix default Ruby version from 2.5 to 2.6. ([@koic][]) + * [#10661](https://github.com/rubocop/rubocop/pull/10661): Fix a false negative for `Style/SymbolProc` when method has no arguments and `AllowMethodsWithArguments: true`. ([@koic][]) + * [#10631](https://github.com/rubocop/rubocop/issues/10631): Fix autocorrect for `Style/RedundantBegin`. ([@johnny-miyake][]) + * [#10652](https://github.com/rubocop/rubocop/issues/10652): Fix a false positive for `Style/FetchEnvVar` in conditions. ([@ydah][]) + * [#10665](https://github.com/rubocop/rubocop/issues/10665): Fix an incorrect autocorrect for `EnforcedStyle: with_first_argument` of `Layout/ArgumentAlignment` and `EnforcedColonStyle: separator` of `Layout/HashAlignment`. ([@koic][]) + * [#10258](https://github.com/rubocop/rubocop/issues/10258): Recover Ruby 2.4 code analysis using `TargetRubyVersion: 2.4`. ([@koic][]) + * [#10668](https://github.com/rubocop/rubocop/pull/10668): Recover Ruby 2.0 code analysis using `TargetRubyVersion: 2.0`. ([@koic][]) + * [#10644](https://github.com/rubocop/rubocop/pull/10644): Recover Ruby 2.2 code analysis using `TargetRubyVersion: 2.2`. ([@koic][]) + * [#10639](https://github.com/rubocop/rubocop/issues/10639): Fix `Style/HashSyntax` to exclu
commit rubygem-rubocop for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-rubocop for openSUSE:Factory checked in at 2022-05-16 18:08:35 Comparing /work/SRC/openSUSE:Factory/rubygem-rubocop (Old) and /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.1538 (New) Package is "rubygem-rubocop" Mon May 16 18:08:35 2022 rev:37 rq:977460 version:1.29.1 Changes: --- /work/SRC/openSUSE:Factory/rubygem-rubocop/rubygem-rubocop.changes 2022-04-30 22:53:00.884262966 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.1538/rubygem-rubocop.changes 2022-05-16 18:11:03.129399115 +0200 @@ -1,0 +2,15 @@ +Mon May 16 07:55:09 UTC 2022 - Manuel Schnitzer + +- updated to version 1.29.1 + + # Bug fixes + + * #10625: Restore the specification to TargetRubyVersion: 2.5. (@koic) + * #10569: Fix a false positive for Style/FetchEnvVar when using the same ENV var as if condition in the body. (@koic) + * #10614: Make Lint/NonDeterministicRequireOrder aware of require_relative. (@koic) + * #10607: Fix autocorrect for Style/RedundantCondition when there are parenthesized method calls in each branch. (@nobuyo) + * #10622: Fix a false positive for Style/RaiseArgs when error type class constructor with keyword arguments and message argument. (@koic) + * #10610: Fix an error for Naming/InclusiveLanguage string with invalid byte sequence in UTF-8. (@ydah) + * #10605: Fix autocorrect for Style/RedundantCondition if argument for method in else branch is hash without braces. (@nobuyo) + +--- Old: rubocop-1.28.2.gem New: rubocop-1.29.1.gem Other differences: -- ++ rubygem-rubocop.spec ++ --- /var/tmp/diff_new_pack.2ncCFx/_old 2022-05-16 18:11:03.657399535 +0200 +++ /var/tmp/diff_new_pack.2ncCFx/_new 2022-05-16 18:11:03.661399538 +0200 @@ -24,12 +24,12 @@ # Name: rubygem-rubocop -Version:1.28.2 +Version:1.29.1 Release:0 %define mod_name rubocop %define mod_full_name %{mod_name}-%{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: %{ruby >= 2.5.0} +BuildRequires: %{ruby >= 2.6.0} BuildRequires: %{rubygem gem2rpm} BuildRequires: ruby-macros >= 5 BuildRequires: update-alternatives ++ rubocop-1.28.2.gem -> rubocop-1.29.1.gem ++ 2457 lines of diff (skipped)
commit rubygem-rubocop for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-rubocop for openSUSE:Factory checked in at 2022-04-30 22:52:47 Comparing /work/SRC/openSUSE:Factory/rubygem-rubocop (Old) and /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.1538 (New) Package is "rubygem-rubocop" Sat Apr 30 22:52:47 2022 rev:36 rq:974074 version:1.28.2 Changes: --- /work/SRC/openSUSE:Factory/rubygem-rubocop/rubygem-rubocop.changes 2022-03-11 11:35:30.558214000 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.1538/rubygem-rubocop.changes 2022-04-30 22:53:00.884262966 +0200 @@ -1,0 +2,6 @@ +Thu Apr 28 05:46:56 UTC 2022 - Stephan Kulow + +updated to version 1.28.2 + no changelog found + +--- Old: rubocop-1.26.0.gem New: rubocop-1.28.2.gem Other differences: -- ++ rubygem-rubocop.spec ++ --- /var/tmp/diff_new_pack.oAYIKV/_old 2022-04-30 22:53:01.384263643 +0200 +++ /var/tmp/diff_new_pack.oAYIKV/_new 2022-04-30 22:53:01.388263648 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-rubocop -Version:1.26.0 +Version:1.28.2 Release:0 %define mod_name rubocop %define mod_full_name %{mod_name}-%{version} ++ rubocop-1.26.0.gem -> rubocop-1.28.2.gem ++ 3029 lines of diff (skipped)
commit rubygem-rubocop for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-rubocop for openSUSE:Factory checked in at 2022-03-10 22:46:05 Comparing /work/SRC/openSUSE:Factory/rubygem-rubocop (Old) and /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.2349 (New) Package is "rubygem-rubocop" Thu Mar 10 22:46:05 2022 rev:35 rq:960905 version:1.26.0 Changes: --- /work/SRC/openSUSE:Factory/rubygem-rubocop/rubygem-rubocop.changes 2022-02-24 18:23:38.702655480 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.2349/rubygem-rubocop.changes 2022-03-11 11:35:30.558214000 +0100 @@ -1,0 +2,29 @@ +Thu Mar 10 16:37:22 UTC 2022 - Manuel Schnitzer + +- updated to version 1.26.0 + + ### New features + + * [#10419](https://github.com/rubocop/rubocop/pull/10419): Add new `Style/NestedFileDirname` cop. ([@koic][]) + * [#10433](https://github.com/rubocop/rubocop/pull/10433): Support `TargetRubyVersion 3.2` (experimental). ([@koic][]) + + ### Bug fixes + + * [#10406](https://github.com/rubocop/rubocop/pull/10406): Fix a false positive for `Lint/InheritException` when inheriting a standard lib exception class that is not a subclass of `StandardError`. ([@koic][]) + * [#10421](https://github.com/rubocop/rubocop/issues/10421): Make `Style/DefWithParentheses` aware of endless method definition. ([@koic][]) + * [#10401](https://github.com/rubocop/rubocop/issues/10401): Fix a false positive for `Style/HashSyntax` when local variable hash key and hash value are the same. ([@koic][]) + * [#10424](https://github.com/rubocop/rubocop/pull/10424): Fix a false positive for `Security/YamlLoad` when using Ruby 3.1+ (Psych 4). ([@koic][]) + * [#10446](https://github.com/rubocop/rubocop/pull/10446): Lint/RedundantDirGlobSort unset SafeAutoCorrect. ([@friendlyantz][]) + * [#10403](https://github.com/rubocop/rubocop/issues/10403): Fix an error for `Style/StringConcatenation` when string concatenation with multiline heredoc text. ([@koic][]) + * [#10432](https://github.com/rubocop/rubocop/pull/10432): Fix an error when using regexp with non-encoding option. ([@koic][]) + * [#10415](https://github.com/rubocop/rubocop/issues/10415): Fix an error for `Lint/UselessTimes` when using `1.times` with method chain. ([@koic][]) + + ### Changes + + * [#10408](https://github.com/rubocop/rubocop/pull/10408): Mark `Lint/InheritException` as unsafe auto-correction. ([@koic][]) + * [#10407](https://github.com/rubocop/rubocop/pull/10407): Change `EnforcedStyle` from `runtime_error` to `standard_error` for `Lint/InheritException`. ([@koic][]) + * [#10414](https://github.com/rubocop/rubocop/pull/10414): Update auto-gen-config's auto-correction comments to be more clear. ([@maxjacobson][]) + * [#10427](https://github.com/rubocop/rubocop/issues/10427): Mark `Style/For` as unsafe auto-correction. ([@issyl0][]) + * [#10410](https://github.com/rubocop/rubocop/issues/10410): Improve help string for `--fail-level` CLI option. ([@tejasbubane][]) + +--- Old: rubocop-1.25.1.gem New: rubocop-1.26.0.gem Other differences: -- ++ rubygem-rubocop.spec ++ --- /var/tmp/diff_new_pack.BqLIFx/_old 2022-03-11 11:35:31.034214558 +0100 +++ /var/tmp/diff_new_pack.BqLIFx/_new 2022-03-11 11:35:31.038214563 +0100 @@ -24,7 +24,7 @@ # Name: rubygem-rubocop -Version:1.25.1 +Version:1.26.0 Release:0 %define mod_name rubocop %define mod_full_name %{mod_name}-%{version} ++ rubocop-1.25.1.gem -> rubocop-1.26.0.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.md new/README.md --- old/README.md 2022-02-03 07:44:29.0 +0100 +++ new/README.md 2022-03-09 17:40:19.0 +0100 @@ -53,7 +53,7 @@ in your `Gemfile`: ```rb -gem 'rubocop', '~> 1.25', require: false +gem 'rubocop', '~> 1.26', require: false ``` See [our versioning policy](https://docs.rubocop.org/rubocop/versioning.html) for further details. Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/config/default.yml new/config/default.yml --- old/config/default.yml 2022-02-03 07:44:29.0 +0100 +++ new/config/default.yml 2022-03-09 17:40:19.0 +0100 @@ -262,7 +262,7 @@ - '**/*.gemspec' Gemspec/RequireMFA: - Description: 'Checks that the gemspec has metadata to require MFA from RubyGems.' + Description: 'Checks that the gemspec has metadata to require Multi-Factor Authentication from RubyGems.' Enabled: pending VersionAdded: '1.23' Refere
commit rubygem-rubocop for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-rubocop for openSUSE:Factory checked in at 2022-02-24 18:20:23 Comparing /work/SRC/openSUSE:Factory/rubygem-rubocop (Old) and /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.1958 (New) Package is "rubygem-rubocop" Thu Feb 24 18:20:23 2022 rev:34 rq:956129 version:1.25.1 Changes: --- /work/SRC/openSUSE:Factory/rubygem-rubocop/rubygem-rubocop.changes 2022-02-02 22:45:02.654055377 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.1958/rubygem-rubocop.changes 2022-02-24 18:23:38.702655480 +0100 @@ -1,0 +2,6 @@ +Tue Feb 15 07:41:35 UTC 2022 - Stephan Kulow + +updated to version 1.25.1 + no changelog found + +--- Old: rubocop-1.25.0.gem New: rubocop-1.25.1.gem Other differences: -- ++ rubygem-rubocop.spec ++ --- /var/tmp/diff_new_pack.UiIzhf/_old 2022-02-24 18:23:39.654655232 +0100 +++ /var/tmp/diff_new_pack.UiIzhf/_new 2022-02-24 18:23:39.55230 +0100 @@ -24,7 +24,7 @@ # Name: rubygem-rubocop -Version:1.25.0 +Version:1.25.1 Release:0 %define mod_name rubocop %define mod_full_name %{mod_name}-%{version} ++ rubocop-1.25.0.gem -> rubocop-1.25.1.gem ++ Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/config/default.yml new/config/default.yml --- old/config/default.yml 2022-01-18 08:45:16.0 +0100 +++ new/config/default.yml 2022-02-03 07:44:29.0 +0100 @@ -430,13 +430,13 @@ - prepend - extend ExpectedOrder: - - module_inclusion - - constants - - public_class_methods - - initializer - - public_methods - - protected_methods - - private_methods +- module_inclusion +- constants +- public_class_methods +- initializer +- public_methods +- protected_methods +- private_methods Layout/ClosingHeredocIndentation: Description: 'Checks the indentation of here document closings.' @@ -1900,7 +1900,7 @@ VersionAdded: '0.52' Lint/NextWithoutAccumulator: - Description: >- + Description: >- Do not omit the accumulator when calling `next` in a `reduce`/`inject` block. Enabled: true @@ -3153,7 +3153,7 @@ StyleGuide: '#def-self-class-methods' Enabled: false VersionAdded: '0.89' - EnforcedStyle: def_self + EnforcedStyle: def_self SupportedStyles: - def_self - self_class @@ -3815,8 +3815,8 @@ :>: :<= # `ActiveSupport` defines some common inverse methods. They are listed below, # and not enabled by default. -#:present?: :blank?, -#:include?: :exclude? +# :present?: :blank?, +# :include?: :exclude? # `InverseBlocks` are methods that are inverted by inverting the return # of the block that is passed to the method InverseBlocks: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb new/lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb --- old/lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb 2022-01-18 08:45:16.0 +0100 +++ new/lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb 2022-02-03 07:44:29.0 +0100 @@ -81,7 +81,7 @@ locations.each do |loc| line = loc.line -next if line == line_of_def_or_kwbegin +next if line == line_of_def_or_kwbegin || last_rescue_and_end_on_same_line(body) keyword = loc.source # below the keyword @@ -91,6 +91,10 @@ end end +def last_rescue_and_end_on_same_line(body) + body.rescue_type? && body.resbody_branches.last.loc.line == body.parent.loc.end.line +end + def message(location, keyword) format(MSG, location: location, keyword: keyword) end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rubocop/cop/layout/hash_alignment.rb new/lib/rubocop/cop/layout/hash_alignment.rb --- old/lib/rubocop/cop/layout/hash_alignment.rb2022-01-18 08:45:16.0 +0100 +++ new/lib/rubocop/cop/layout/hash_alignment.rb2022-02-03 07:44:29.0 +0100 @@ -222,11 +222,16 @@ node.pairs.any? && node.parent&.call_type? + left_sibling = argument_before_hash(node) parent_loc =
commit rubygem-rubocop for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-rubocop for openSUSE:Factory checked in at 2022-02-02 22:41:36 Comparing /work/SRC/openSUSE:Factory/rubygem-rubocop (Old) and /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.1898 (New) Package is "rubygem-rubocop" Wed Feb 2 22:41:36 2022 rev:33 rq:950651 version:1.25.0 Changes: --- /work/SRC/openSUSE:Factory/rubygem-rubocop/rubygem-rubocop.changes 2021-12-26 13:30:28.706958221 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.1898/rubygem-rubocop.changes 2022-02-02 22:42:34.347060609 +0100 @@ -1,0 +2,6 @@ +Tue Jan 25 07:30:58 UTC 2022 - Stephan Kulow + +updated to version 1.25.0 + no changelog found + +--- Old: rubocop-1.24.0.gem New: rubocop-1.25.0.gem Other differences: -- ++ rubygem-rubocop.spec ++ --- /var/tmp/diff_new_pack.thXcmh/_old 2022-02-02 22:42:34.935056623 +0100 +++ /var/tmp/diff_new_pack.thXcmh/_new 2022-02-02 22:42:34.943056569 +0100 @@ -1,7 +1,7 @@ # # spec file for package rubygem-rubocop # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,7 +24,7 @@ # Name: rubygem-rubocop -Version:1.24.0 +Version:1.25.0 Release:0 %define mod_name rubocop %define mod_full_name %{mod_name}-%{version} ++ rubocop-1.24.0.gem -> rubocop-1.25.0.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/LICENSE.txt new/LICENSE.txt --- old/LICENSE.txt 2021-12-23 12:06:24.0 +0100 +++ new/LICENSE.txt 2022-01-18 08:45:16.0 +0100 @@ -1,4 +1,4 @@ -Copyright (c) 2012-21 Bozhidar Batsov +Copyright (c) 2012-22 Bozhidar Batsov Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.md new/README.md --- old/README.md 2021-12-23 12:06:24.0 +0100 +++ new/README.md 2022-01-18 08:45:16.0 +0100 @@ -9,7 +9,6 @@ [![Actions Status](https://github.com/rubocop/rubocop/workflows/CI/badge.svg?branch=master)](https://github.com/rubocop/rubocop/actions?query=workflow%3ACI) [![Test Coverage](https://api.codeclimate.com/v1/badges/d2d67f728e88ea84ac69/test_coverage)](https://codeclimate.com/github/rubocop/rubocop/test_coverage) [![Maintainability](https://api.codeclimate.com/v1/badges/d2d67f728e88ea84ac69/maintainability)](https://codeclimate.com/github/rubocop/rubocop/maintainability) -[![SemVer](https://api.dependabot.com/badges/compatibility_score?dependency-name=rubocop&package-manager=bundler&version-scheme=semver)](https://dependabot.com/compatibility-score.html?dependency-name=rubocop&package-manager=bundler&version-scheme=semver) [![Discord](https://img.shields.io/badge/chat-on%20discord-7289da.svg?sanitize=true)](https://discord.gg/wJjWvGRDmm) > Role models are important. @@ -54,7 +53,7 @@ in your `Gemfile`: ```rb -gem 'rubocop', '~> 1.24', require: false +gem 'rubocop', '~> 1.25', require: false ``` See [our versioning policy](https://docs.rubocop.org/rubocop/versioning.html) for further details. @@ -245,5 +244,5 @@ ## Copyright -Copyright (c) 2012-2021 Bozhidar Batsov. See [LICENSE.txt](LICENSE.txt) for +Copyright (c) 2012-2022 Bozhidar Batsov. See [LICENSE.txt](LICENSE.txt) for further details. Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/config/default.yml new/config/default.yml --- old/config/default.yml 2021-12-23 12:06:24.0 +0100 +++ new/config/default.yml 2022-01-18 08:45:16.0 +0100 @@ -2489,12 +2489,14 @@ Naming/BlockForwarding: Description: 'Use anonymous block forwarding.' + StyleGuide: '#block-forwarding' Enabled: pending VersionAdded: '1.24' EnforcedStyle: anonymous SupportedStyles: - anonymous - explicit + BlockForwardingName: block Naming/BlockParameterName: Description: >- @@ -3697,6 +3699,8 @@ - always # forces use of explicit hash literal value. - never +# accepts both shorthand and explicit use of hash literal value. +- either # Force hashes that have a symbol value to use hash rockets UseHashRocketsWithSymbolValues: false # Do not suggest { a?: 1 } over { :a? => 1 } in ruby19 style diff -urN '--exclude=CVS' '--exclude=.
commit rubygem-rubocop for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-rubocop for openSUSE:Factory checked in at 2021-12-26 13:30:21 Comparing /work/SRC/openSUSE:Factory/rubygem-rubocop (Old) and /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.2520 (New) Package is "rubygem-rubocop" Sun Dec 26 13:30:21 2021 rev:32 rq:942484 version:1.24.0 Changes: --- /work/SRC/openSUSE:Factory/rubygem-rubocop/rubygem-rubocop.changes 2021-12-22 20:19:11.835878848 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.2520/rubygem-rubocop.changes 2021-12-26 13:30:28.706958221 +0100 @@ -1,0 +2,41 @@ +Sat Dec 25 22:35:32 UTC 2021 - Manuel Schnitzer + +- updated to version 1.24.0 + + ### New features + + * [#10279](https://github.com/rubocop/rubocop/pull/10279): Support Ruby 3.1's anonymous block forwarding syntax. ([@koic][]) + * [#10295](https://github.com/rubocop/rubocop/pull/10295): Support Ruby 3.1's hash value omission syntax for `Layout/HashAlignment`. ([@koic][]) + * [#10303](https://github.com/rubocop/rubocop/issues/10303): Add `AllowedNumbers` option to `Style/NumericLiterals`. ([@koic][]) + * [#10290](https://github.com/rubocop/rubocop/pull/10290): Add new `Naming/BlockForwarding` cop. ([@koic][]) + * [#10289](https://github.com/rubocop/rubocop/pull/10289): Add `EnforcedShorthandSyntax` option to `Style/HashSyntax` cop to support Ruby 3.1's hash value omission syntax by default. ([@koic][]) + * [#10257](https://github.com/rubocop/rubocop/pull/10257): Add new `Style/MapToHash` cop. ([@dvandersluis][]) + * [#10261](https://github.com/rubocop/rubocop/pull/10261): Add new `Style/FileRead` cop. ([@leoarnold][]) + * [#10291](https://github.com/rubocop/rubocop/pull/10291): Support Ruby 3.1's hash value omission syntax for `Layout/SpaceAfterColon`. ([@koic][]) + * [#10260](https://github.com/rubocop/rubocop/pull/10260): Add new `Style/FileWrite` cop. ([@leoarnold][]) + * [#10307](https://github.com/rubocop/rubocop/pull/10307): Support Ruby 2.7's numbered parameter for `Metrics/BlockLength`, `Metrics/ClassLength`, `Metrics/MethodLength`, and `Metrics/ModuleLength` cops. ([@koic][]) + * [#7671](https://github.com/rubocop/rubocop/issues/7671): Add cli option `--show-docs-url` to print out documentation url for given cops. ([@HeroProtagonist][]) + * [#10308](https://github.com/rubocop/rubocop/pull/10308): Make `Style/CollectionCompact` aware of block pass argument. ([@koic][]) + + ### Bug fixes + + * [#10285](https://github.com/rubocop/rubocop/issues/10285): Fix an incorrect autocorrect for `Style/SoleNestedConditional` when using nested `if` within `if foo = bar`. ([@koic][]) + * [#10309](https://github.com/rubocop/rubocop/pull/10309): Fix a false positive for `Bundler/DuplicatedGem` when a gem conditionally duplicated within multi-statement bodies. ([@fatkodima][]) + * [#10300](https://github.com/rubocop/rubocop/issues/10300): Fix an incorrect autocorrect for `Layout/DotPosition` and `Style/RedundantSelf` when auto-correction conflicts. ([@koic][]) + * [#10284](https://github.com/rubocop/rubocop/issues/10284): Fix an incorrect autocorrect for `Style/RedundantRegexpCharacterClass` when regexp containing an unescaped `#`. ([@koic][]) + * [#10265](https://github.com/rubocop/rubocop/issues/10265): Fix `Style/IfInsideElse` to be able to handle `if-then` nested inside an `else` without clobbering. ([@dvandersluis][]) + * [#10297](https://github.com/rubocop/rubocop/issues/10297): Fix a false positive for `Lint/DeprecatedOpenSSLConstant` when building digest using an algorithm string and nested digest constants. ([@koic][]) + * [#10282](https://github.com/rubocop/rubocop/issues/10282): Fix an incorrect autocorrect for `Style/EmptyCaseCondition` when using `when ... then` in `case` in a method call. ([@koic][]) + * [#10273](https://github.com/rubocop/rubocop/issues/10273): Fix a false positive for `InternalAffairs/UndefinedConfig` to suppress a false wrong namespace warning. ([@koic][]) + * [#10305](https://github.com/rubocop/rubocop/issues/10305): Fix an incorrect autocorrect for `Style/HashConversion` when using `Hash[a || b]`. ([@koic][]) + * [#10264](https://github.com/rubocop/rubocop/pull/10264): Fix the following incorrect auto-correct for `Style/MethodCallWithArgsParentheses` with `Layout/SpaceBeforeFirstArg`. ([@koic][]) + * [#10276](https://github.com/rubocop/rubocop/issues/10276): Fix an incorrect autocorrect for `Style/RedundantInterpolation` when using a method call without parentheses in string interpolation. ([@koic][]) + + ### Changes + + * [#10253](https://github.com/rubocop/rubocop/pull/10253): Deprecate `RuboCop::Cop::EnforceSuperclass` module. ([@koic][]) + * [#10248](https://github.com/rubocop/rubocop/pull/10248): Make `Lint/DeprecatedC
commit rubygem-rubocop for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-rubocop for openSUSE:Factory checked in at 2021-12-22 20:18:08 Comparing /work/SRC/openSUSE:Factory/rubygem-rubocop (Old) and /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.2520 (New) Package is "rubygem-rubocop" Wed Dec 22 20:18:08 2021 rev:31 rq:942036 version:1.23.0 Changes: --- /work/SRC/openSUSE:Factory/rubygem-rubocop/rubygem-rubocop.changes 2021-10-11 15:32:33.170934966 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.2520/rubygem-rubocop.changes 2021-12-22 20:19:11.835878848 +0100 @@ -1,0 +2,60 @@ +Wed Dec 22 00:34:16 UTC 2021 - Manuel Schnitzer + +- updated to version 1.23.0 + + ## 1.23.0 (2021-11-15) + + ### New features + + * [#10202](https://github.com/rubocop/rubocop/issues/10202): Add new `Lint/UselessRuby2Keywords` cop. ([@dvandersluis][]) + * [#10217](https://github.com/rubocop/rubocop/pull/10217): Add new `Style/OpenStructUse` cop. ([@mttkay][]) + * [#10243](https://github.com/rubocop/rubocop/pull/10243): Add new `Gemspec/RequireMFA` cop. ([@dvandersluis][]) + + ### Bug fixes + + * [#10203](https://github.com/rubocop/rubocop/issues/10203): Fix `Style/FormatStringToken` to respect `IgnoredMethods` with nested structures. ([@tejasbubane][]) + * [#10242](https://github.com/rubocop/rubocop/pull/10242): Fix `last_column` value for `JSONFormatter`. ([@koic][]) + * [#10229](https://github.com/rubocop/rubocop/pull/10229): Fix a false positive for `Style/StringLiterals` when `EnforcedStyle: double_quotes` and using single quoted string with backslash. ([@koic][]) + * [#10174](https://github.com/rubocop/rubocop/issues/10174): Fix inherit_from_remote should follow remote includes path starting with `./`. ([@hirasawayuki][]) + * [#10234](https://github.com/rubocop/rubocop/pull/10234): Fix an error for `Style/Documentation` when using a cbase class. ([@koic][]) + * [#10227](https://github.com/rubocop/rubocop/issues/10227): Fix a false positive for `Style/ParenthesesAroundCondition` when parentheses in multiple expressions separated by semicolon. ([@koic][]) + * [#10230](https://github.com/rubocop/rubocop/issues/10230): Fix a false positive for `Lint/AmbiguousRange` when a range is composed of all literals except basic literals. ([@koic][]) + + ### Changes + + * [#10221](https://github.com/rubocop/rubocop/issues/10221): Update `Naming::FileName` to recognize `Struct`s as classes that satisfy the `ExpectMatchingDefinition` requirement. ([@dvandersluis][]) + * [#10220](https://github.com/rubocop/rubocop/issues/10220): Update `Naming/FileName` to make `CheckDefinitionPathHierarchy` roots configurable. ([@grosser][]) + * [#10199](https://github.com/rubocop/rubocop/pull/10199): Change `AllowAdjacentOneLineDefs` config parameter of `Layout/EmptyLineBetweenDefs` to `true` by default . ([@koic][]) + * [#10236](https://github.com/rubocop/rubocop/pull/10236): Make `Lint/NumberConversion` aware of `to_r`. ([@koic][]) + + ## 1.22.3 (2021-10-27) + + ### Bug fixes + + * [#10166](https://github.com/rubocop/rubocop/pull/10166): Fix a false positive for `Style/StringLiterals` when using some meta characters (e.g. `'\s'`, `'\z'`) with `EnforcedStyle: double_quotes`. ([@koic][]) + * [#10216](https://github.com/rubocop/rubocop/issues/10216): Fix an incorrect autocorrect for `Style/SelectByRegexp` when using `lvar =~ blockvar` in a block. ([@koic][]) + * [#10207](https://github.com/rubocop/rubocop/pull/10207): Fix false positive in Layout/DotPosition when the selector is on the same line as the closing bracket of the receiver. ([@mvz][]) + + ### Changes + + * [#10209](https://github.com/rubocop/rubocop/pull/10209): Make `Lint/DeprecatedConstants` aware of `Net::HTTPServerException`. ([@koic][]) + + ## 1.22.2 (2021-10-22) + + ### Bug fixes + + * [#10165](https://github.com/rubocop/rubocop/issues/10165): Fix `Layout/DotPosition` false positives when the selector and receiver are on the same line. ([@dvandersluis][]) + * [#10171](https://github.com/rubocop/rubocop/pull/10171): Fix `Style/HashTransformKeys` and `Style/HashTransformValues` incorrect auto-correction when inside block body. ([@franzliedke][]) + * [#10180](https://github.com/rubocop/rubocop/issues/10180): Fix an error for `Style/SelectByRegexp` when using `match?` without a receiver. ([@koic][]) + * [#10193](https://github.com/rubocop/rubocop/pull/10193): Fix an error for `Layout/EmptyLinesAroundExceptionHandlingKeywords` when `begin` and `rescue` are on the same line. ([@koic][]) + * [#10185](https://github.com/rubocop/rubocop/issues/10185): Fix a false positive for `Lint/AmbiguousRange` when using `self` in a range literal. ([@koic][]) + * [#10200](https://github.com/rubocop/rubocop/issues/10200): Fix an
commit rubygem-rubocop for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-rubocop for openSUSE:Factory checked in at 2021-10-11 15:31:35 Comparing /work/SRC/openSUSE:Factory/rubygem-rubocop (Old) and /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.2443 (New) Package is "rubygem-rubocop" Mon Oct 11 15:31:35 2021 rev:30 rq:924371 version:1.22.1 Changes: --- /work/SRC/openSUSE:Factory/rubygem-rubocop/rubygem-rubocop.changes 2021-08-25 20:59:45.085039633 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.2443/rubygem-rubocop.changes 2021-10-11 15:32:33.170934966 +0200 @@ -1,0 +2,95 @@ +Sat Oct 9 09:18:38 UTC 2021 - Manuel Schnitzer + +- updated to version 1.22.1 + + ## 1.22.1 (2021-10-04) + + ### Bug fixes + + * [#10143](https://github.com/rubocop/rubocop/issues/10143): Fix an error for `Lint/RequireRelativeSelfPath` when using a variable as an argument of `require_relative`. ([@koic][]) + * [#10140](https://github.com/rubocop/rubocop/issues/10140): Fix false positive for `Layout/DotPosition` when a heredoc receives a method on the same line as the start sigil in `trailing` style. ([@dvandersluis][]) + * [#10148](https://github.com/rubocop/rubocop/issues/10148): Fix `Style/QuotedSymbols` handling escaped characters incorrectly. ([@dvandersluis][]) + * [#10145](https://github.com/rubocop/rubocop/issues/10145): Update `Style/SelectByRegexp` to ignore cases where the receiver appears to be a hash. ([@dvandersluis][]) + + ## 1.22.0 (2021-09-29) + + ### New features + + * [#8431](https://github.com/rubocop/rubocop/issues/8431): Add `Safety` section to documentation for all cops that are `Safe: false` or `SafeAutoCorrect: false`. ([@dvandersluis][]) + * [#10132](https://github.com/rubocop/rubocop/issues/10132): Reorganize output of `rubocop --help` for better clarity. ([@dvandersluis][]) + * [#10111](https://github.com/rubocop/rubocop/pull/10111): Add new `Style/NumberedParametersLimit` cop. ([@dvandersluis][]) + * [#10025](https://github.com/rubocop/rubocop/pull/10025): Changed cop `SpaceInsideParens` to include a `compact` style. ([@itay-grudev][]) + * [#10084](https://github.com/rubocop/rubocop/issues/10084): Add new `Lint/RequireRelativeSelfPath` cop. ([@koic][]) + * [#8327](https://github.com/rubocop/rubocop/issues/8327): Add new cop `Style/SelectByRegexp`. ([@dvandersluis][]) + * [#10100](https://github.com/rubocop/rubocop/pull/10100): Add new `Style/NumberedParameters` cop. ([@Hugo-Hache][]) + * [#10103](https://github.com/rubocop/rubocop/issues/10103): Add `AllowHttpProtocol` option to `Bundler/InsecureProtocolSource`. ([@koic][]) + * [#10102](https://github.com/rubocop/rubocop/pull/10102): Add new `Security/IoMethods` cop. ([@koic][]) + + ### Bug fixes + + * [#10110](https://github.com/rubocop/rubocop/issues/10110): Update `Layout/DotPosition` to be able to handle heredocs. ([@dvandersluis][]) + * [#10134](https://github.com/rubocop/rubocop/issues/10134): Update `Style/MutableConstant` to not consider multiline uninterpolated strings as unfrozen in ruby 3.0. ([@dvandersluis][]) + * [#10124](https://github.com/rubocop/rubocop/pull/10124): Fix `Layout/RedundantLineBreak` adding extra space within method chains. ([@dvandersluis][]) + * [#10118](https://github.com/rubocop/rubocop/issues/10118): Fix crash with `Style/RedundantSort` when the block doesn't only contain a single `send` node. ([@dvandersluis][]) + * [#10135](https://github.com/rubocop/rubocop/issues/10135): Fix `Style/WordArray` to exclude files in `--auto-gen-config` when `percent` style is given but brackets are required. ([@dvandersluis][]) + * [#10090](https://github.com/rubocop/rubocop/issues/10090): Fix a false negative for `Style/ArgumentsForwarding` when using only kwrest arg. ([@koic][]) + * [#10099](https://github.com/rubocop/rubocop/pull/10099): Update`Style/RedundantFreeze` to stop considering `ENV` values as immutable. ([@byroot][]) + * [#10078](https://github.com/rubocop/rubocop/pull/10078): Fix `Layout/LineLength` reported length when ignoring directive comments. ([@dvandersluis][]) + * [#9934](https://github.com/rubocop/rubocop/issues/9934): Fix configuration loading to not raise an error for an obsolete ruby version that is subsequently overridden. ([@dvandersluis][]) + * [#10136](https://github.com/rubocop/rubocop/issues/10136): Update `Lint/AssignmentInCondition` to not consider assignments within blocks in conditions. ([@dvandersluis][]) + * [#9588](https://github.com/rubocop/rubocop/issues/9588): Fix causing a variable to be shadowed from outside the rescue block in the logic of Naming/RescuedExceptionsVariableName. ([@lilisako][]) + * [#10096](https://github.com/rubocop/rubocop/issues/10096): Fix `Lint/AmbiguousOperatorPrecedence` with `and`/`or`
commit rubygem-rubocop for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-rubocop for openSUSE:Factory checked in at 2021-08-25 20:58:14 Comparing /work/SRC/openSUSE:Factory/rubygem-rubocop (Old) and /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.1899 (New) Package is "rubygem-rubocop" Wed Aug 25 20:58:14 2021 rev:29 rq:914159 version:1.19.1 Changes: --- /work/SRC/openSUSE:Factory/rubygem-rubocop/rubygem-rubocop.changes 2021-07-29 21:33:04.668688770 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.1899/rubygem-rubocop.changes 2021-08-25 20:59:45.085039633 +0200 @@ -1,0 +2,54 @@ +Wed Aug 25 06:07:29 UTC 2021 - Manuel Schnitzer + +- updated to version 1.19.1 + +### Bug fixes + +* [#10017](https://github.com/rubocop/rubocop/pull/10017): Fixan error for `Layout/RescueEnsureAlignment` when using zsuper with block. ([@koic][]) +* [#10011](https://github.com/rubocop/rubocop/issues/10011): Fix a false positive for `Style/RedundantSelfAssignmentBranch` when using instance variable, class variable, and global variable. ([@koic][]) +* [#10010](https://github.com/rubocop/rubocop/issues/10010): Fix a false positive for `Style/DoubleNegation` when `!!` is used at return location and before `rescue` keyword. ([@koic][]) +* [#10014](https://github.com/rubocop/rubocop/issues/10014): Fix `Style/Encoding` to handle more situations properly. ([@dvandersluis][]) +* [#10016](https://github.com/rubocop/rubocop/issues/10016): Fix conflict between `Style/SoleNestedConditional` and `Style/NegatedIf`/`Style/NegatedUnless`. ([@dvandersluis][]) +* [#10024](https://github.com/rubocop/rubocop/issues/10024): Fix an incorrect auto-correct for `Style/RedundantSelfAssignmentBranch` when using multiline `if` / `else` conditional assignment. ([@koic][]) +* [#10004](https://github.com/rubocop/rubocop/issues/10004): Fix a false positive for `Style/RedundantBegin` when using one-liner with semicolon. ([@koic][]) + +## 1.19.0 (2021-08-12) + +### New features + +* [#4182](https://github.com/rubocop/rubocop/issues/4182): Add `Lint/AmbiguousRange` cop to check for ranges with ambiguous boundaries. ([@dvandersluis][]) +* [#1](https://github.com/rubocop/rubocop/pull/1): Parallel static analysis by default. ([@koic][]) +* [#9948](https://github.com/rubocop/rubocop/pull/9948): Support Ruby 2.7's pattern matching for `Style/ConditionalAssignment` cop. ([@koic][]) +* [#](https://github.com/rubocop/rubocop/pull/): Add new `Style/RedundantSelfAssignmentBranch` cop. ([@koic][]) + +### Bug fixes + +* [#9927](https://github.com/rubocop/rubocop/issues/9927): Indent hash values in `Layout/LineEndStringConcatenationIndentation`. ([@jonas054][]) +* [#9959](https://github.com/rubocop/rubocop/issues/9959): Make `Style/IdenticalConditionalBranches` able to handle ternary `if`s. ([@dvandersluis][]) +* [#9946](https://github.com/rubocop/rubocop/issues/9946): Avoid slow regexp matches in `Style/CommentedKeyword`. ([@jonas054][]) +* [#7422](https://github.com/rubocop/rubocop/issues/7422): Treat constant assignment like other assignment in `Layout/SpaceAroundOperators`. ([@dvandersluis][]) +* [#9953](https://github.com/rubocop/rubocop/issues/9953): Fix an infinite loop error and a false auto-correction behavior for `Layout/EndAlignment` when using a conditional statement in a method argument. ([@koic][]) +* [#9958](https://github.com/rubocop/rubocop/issues/9958): Prevent an infinite loop when a detected method has fewer arguments than expected. ([@dvandersluis][]) +* [#9977](https://github.com/rubocop/rubocop/issues/9977): Update `Layout/EmptyLineAfterGuardClause` to not register an offense if there is another expression following the guard clause on the same line. ([@dvandersluis][]) +* [#9980](https://github.com/rubocop/rubocop/issues/9980): Fix a false positive for `Style/IdenticalConditionalBranches` when assigning to a variable used in a condition. ([@koic][]) +* [#9975](https://github.com/rubocop/rubocop/issues/9975): Parentheses are always required for `Style/MethodDefParentheses` when a forwarding argument (`...`) is used. ([@dvandersluis][]) +* [#9984](https://github.com/rubocop/rubocop/pull/9984): Fix false negatives involving heredocs for `Layout/SpaceBeforeComma`, `Layout/SpaceBeforeComment`, `Layout/SpaceBeforeSemicolon` and `Layout/SpaceInsideParens`. ([@dvandersluis][]) +* [#9954](https://github.com/rubocop/rubocop/issues/9954): Fix infinite loop error for `Layout/HashAlignment` when `EnforcedStyle: with_fixed_indentation` is specified for `Layout/ArgumentAlignment`. ([@koic][]) +* [#10002](https://github.com/rubocop/rubocop/issues/10002): Fix an incorrect auto-correct for `Lint/AmbigousRegexpLiteral` when using nested method arguments without parentheses. ([@koic][]) +* [#9952](https:
commit rubygem-rubocop for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-rubocop for openSUSE:Factory checked in at 2021-07-29 21:31:57 Comparing /work/SRC/openSUSE:Factory/rubygem-rubocop (Old) and /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.1899 (New) Package is "rubygem-rubocop" Thu Jul 29 21:31:57 2021 rev:28 rq:909130 version:1.18.4 Changes: --- /work/SRC/openSUSE:Factory/rubygem-rubocop/rubygem-rubocop.changes 2021-07-12 01:25:32.708996709 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.1899/rubygem-rubocop.changes 2021-07-29 21:33:04.668688770 +0200 @@ -1,0 +2,21 @@ +Thu Jul 29 09:42:06 UTC 2021 - Manuel Schnitzer + +- updated to version 1.18.4 + + ### New features + + * [#9930](https://github.com/rubocop/rubocop/pull/9930): Support Ruby 2.7's pattern matching for `Lint/DuplicateBranch` cop. ([@koic][]) + + ### Bug fixes + + * [#9938](https://github.com/rubocop/rubocop/pull/9938): Fix an incorrect auto-correct for `Layout/LineLength` when a heredoc is used as the first element of an array. ([@koic][]) + * [#9940](https://github.com/rubocop/rubocop/issues/9940): Fix an incorrect auto-correct for `Style/HashTransformValues` when value is a hash literal for `_.to_h{...}`. ([@koic][]) + * [#9752](https://github.com/rubocop/rubocop/issues/9752): Improve error message for top level department used in configuration. ([@jonas054][]) + * [#9933](https://github.com/rubocop/rubocop/pull/9933): Fix GitHub Actions formatter when running in non-default directory. ([@ojab][]) + * [#9922](https://github.com/rubocop/rubocop/issues/9922): Make better auto-corrections in `Style/DoubleCopDisableDirective`. ([@jonas054][]) + * [#9848](https://github.com/rubocop/rubocop/issues/9848): Fix handling of comments in `Layout/ClassStructure` auto-correct. ([@jonas054][]) + * [#9926](https://github.com/rubocop/rubocop/pull/9926): Fix an incorrect auto-correct for `Style/SingleLineMethods` when method body is enclosed in parentheses. ([@koic][]) + * [#9928](https://github.com/rubocop/rubocop/issues/9928): Fix an infinite loop error and a false auto-correction behavior for `Layout/EndAlignment` when using operator methods and `EnforcedStyleAlignWith: variable`. ([@koic][]) + * [#9434](https://github.com/rubocop/rubocop/issues/9434): Fix false positive for setter calls in `Layout/FirstArgumentIndentation`. ([@jonas054][]) + +--- Old: rubocop-1.18.3.gem New: rubocop-1.18.4.gem Other differences: -- ++ rubygem-rubocop.spec ++ --- /var/tmp/diff_new_pack.P6sI8m/_old 2021-07-29 21:33:05.052688298 +0200 +++ /var/tmp/diff_new_pack.P6sI8m/_new 2021-07-29 21:33:05.056688292 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-rubocop -Version:1.18.3 +Version:1.18.4 Release:0 %define mod_name rubocop %define mod_full_name %{mod_name}-%{version} ++ rubocop-1.18.3.gem -> rubocop-1.18.4.gem ++ Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rubocop/config_validator.rb new/lib/rubocop/config_validator.rb --- old/lib/rubocop/config_validator.rb 2021-07-06 11:14:54.0 +0200 +++ new/lib/rubocop/config_validator.rb 2021-07-23 08:12:25.0 +0200 @@ -104,12 +104,9 @@ # to do so than to pass the value around to various methods. next if name == 'inherit_mode' -suggestions = NameSimilarity.find_similar_names(name, Cop::Registry.global.map(&:cop_name)) -suggestion = "Did you mean `#{suggestions.join('`, `')}`?" if suggestions.any? - message = <<~MESSAGE.rstrip - unrecognized cop #{name} found in #{smart_loaded_path} - #{suggestion} + unrecognized cop or department #{name} found in #{smart_loaded_path} + #{suggestion(name)} MESSAGE unknown_cops << message @@ -117,6 +114,22 @@ raise ValidationError, unknown_cops.join("\n") if unknown_cops.any? end +def suggestion(name) + registry = Cop::Registry.global + departments = registry.departments.map(&:to_s) + suggestions = NameSimilarity.find_similar_names(name, departments + registry.map(&:cop_name)) + if suggestions.any? +"Did you mean `#{suggestions.join('`, `')}`?" + else +# Department names can contain slashes, e.g. Chef/Correctness, but there's no support for +# the concept of higher level departments in RuboCop. It's a flat structure. So if the user +# tries to configure a "top level department", we hint that it's the bottom level +
commit rubygem-rubocop for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-rubocop for openSUSE:Factory checked in at 2021-07-12 01:25:09 Comparing /work/SRC/openSUSE:Factory/rubygem-rubocop (Old) and /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.2625 (New) Package is "rubygem-rubocop" Mon Jul 12 01:25:09 2021 rev:27 rq:905664 version:1.18.3 Changes: --- /work/SRC/openSUSE:Factory/rubygem-rubocop/rubygem-rubocop.changes 2021-06-25 15:02:15.264218652 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.2625/rubygem-rubocop.changes 2021-07-12 01:25:32.708996709 +0200 @@ -1,0 +2,16 @@ +Sun Jul 11 10:58:44 UTC 2021 - Manuel Schnitzer + +- updated to version 1.18.3 + + ### Bug fixes + + * [#9891](https://github.com/rubocop/rubocop/issues/9891): Fix `--auto-gen-config` bug for `Style/HashSyntax`. ([@jonas054][]) + * [#9905](https://github.com/rubocop/rubocop/issues/9905): Fix false positive for single line concatenation in `Layout/LineEndStringConcatenationIndentation`. ([@jonas054][]) + * [#9907](https://github.com/rubocop/rubocop/issues/9907): Fix an incorrect auto-correct for `Lint/UselessTimes` when using block argument for `1.times`. ([@koic][]) + * [#9869](https://github.com/rubocop/rubocop/issues/9869): Fix reference to file in configuration override warning. ([@jonas054][]) + * [#9902](https://github.com/rubocop/rubocop/issues/9902): Fix an incorrect auto-correct for `Style/BlockDelimiters` when there is a comment after the closing brace. ([@koic][]) + * [#8469](https://github.com/rubocop/rubocop/issues/8469): Add inspection of `class <<` to `Layout/SpaceAroundOperators`. ([@jonas054][]) + * [#9909](https://github.com/rubocop/rubocop/pull/9909): This PR fixes an incorrect auto-correct for `Style/SingleLineMethods` when using `return`, `break`, or `next` for one line method body in Ruby 3.0. ([@koic][]) + * [#9914](https://github.com/rubocop/rubocop/issues/9914): Fix an error for `Layout/HashAlignment` when using aligned hash argument for `proc.()`. ([@koic][]) + +--- Old: rubocop-1.17.0.gem New: rubocop-1.18.3.gem Other differences: -- ++ rubygem-rubocop.spec ++ --- /var/tmp/diff_new_pack.EIlSJI/_old 2021-07-12 01:25:33.104993664 +0200 +++ /var/tmp/diff_new_pack.EIlSJI/_new 2021-07-12 01:25:33.108993633 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-rubocop -Version:1.17.0 +Version:1.18.3 Release:0 %define mod_name rubocop %define mod_full_name %{mod_name}-%{version} ++ rubocop-1.17.0.gem -> rubocop-1.18.3.gem ++ 1968 lines of diff (skipped)
commit rubygem-rubocop for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-rubocop for openSUSE:Factory checked in at 2021-06-25 15:01:32 Comparing /work/SRC/openSUSE:Factory/rubygem-rubocop (Old) and /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.2625 (New) Package is "rubygem-rubocop" Fri Jun 25 15:01:32 2021 rev:26 rq:902272 version:1.17.0 Changes: --- /work/SRC/openSUSE:Factory/rubygem-rubocop/rubygem-rubocop.changes 2021-06-01 10:41:34.789233713 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.2625/rubygem-rubocop.changes 2021-06-25 15:02:15.264218652 +0200 @@ -1,0 +2,6 @@ +Thu Jun 24 17:55:29 UTC 2021 - Stephan Kulow + +updated to version 1.17.0 + no changelog found + +--- Old: rubocop-1.15.0.gem New: rubocop-1.17.0.gem Other differences: -- ++ rubygem-rubocop.spec ++ --- /var/tmp/diff_new_pack.H2zmw3/_old 2021-06-25 15:02:15.692219174 +0200 +++ /var/tmp/diff_new_pack.H2zmw3/_new 2021-06-25 15:02:15.696219179 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-rubocop -Version:1.15.0 +Version:1.17.0 Release:0 %define mod_name rubocop %define mod_full_name %{mod_name}-%{version} ++ rubocop-1.15.0.gem -> rubocop-1.17.0.gem ++ 2124 lines of diff (skipped)
commit rubygem-rubocop for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-rubocop for openSUSE:Factory checked in at 2021-06-01 10:39:58 Comparing /work/SRC/openSUSE:Factory/rubygem-rubocop (Old) and /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.1898 (New) Package is "rubygem-rubocop" Tue Jun 1 10:39:58 2021 rev:25 rq:896521 version:1.15.0 Changes: --- /work/SRC/openSUSE:Factory/rubygem-rubocop/rubygem-rubocop.changes 2021-05-16 23:40:59.177861180 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.1898/rubygem-rubocop.changes 2021-06-01 10:41:34.789233713 +0200 @@ -1,0 +2,29 @@ +Tue Jun 1 03:40:48 UTC 2021 - Manuel Schnitzer + +- updated to version 1.15.0 + + ### New features + + * [#9734](https://github.com/rubocop/rubocop/pull/9734): Add `Style/TopLevelMethodDefinition` cop. ([@tejasbubane][]) + * [#9780](https://github.com/rubocop/rubocop/issues/9780): Support summary report for `JUnitFormatter`. ([@koic][]) + * [#9798](https://github.com/rubocop/rubocop/pull/9798): Make `Layout/ArgumentAlignment` aware of kwargs. ([@koic][]) + + ### Bug fixes + + * [#9749](https://github.com/rubocop/rubocop/issues/9749): Fix autocorrection for `Layout/LineLength` to not move the first argument of an unparenthesized `send` node to the next line, which changes behaviour. ([@dvandersluis][]) + * [#9799](https://github.com/rubocop/rubocop/issues/9799): Fix invalid line splitting by `Layout/LineLength` for `send` nodes with heredoc arguments. ([@dvandersluis][]) + * [#9773](https://github.com/rubocop/rubocop/issues/9773): Fix `Style/EmptyLiteral` to not register offenses for `String.new` when `Style/FrozenStringLiteral` is enabled. ([@dvandersluis][]) + * [#9771](https://github.com/rubocop/rubocop/issues/9771): Change `AllowDSLWriters` to true by default for `Style/TrivialAccessors`. ([@koic][]) + * [#9777](https://github.com/rubocop/rubocop/pull/9777): Fix an incorrect auto-correct for `Style/RedundantBegin` when using multi-line `if` in `begin` block. ([@koic][]) + * [#9791](https://github.com/rubocop/rubocop/pull/9791): Fix a false negative for `Layout/IndentationWidth` when using `ensure` in `do` ... `end` block. ([@koic][]) + * [#9766](https://github.com/rubocop/rubocop/pull/9766): Fix a clobbering error for `Style/ClassAndModuleChildren` cop with compact style. ([@tejasbubane][]) + * [#9767](https://github.com/rubocop/rubocop/issues/9767): Fix `Style/ClassAndModuleChildren` cop to preserve comments. ([@tejasbubane][]) + * [#9792](https://github.com/rubocop/rubocop/issues/9792): Fix false positive for `Lint/Void` cop with ranges. ([@tejasbubane][]) + + ### Changes + + * [#9770](https://github.com/rubocop/rubocop/issues/9770): Update `Lint/EmptyBlock` to handle procs the same way as lambdas. ([@dvandersluis][]) + * [#9776](https://github.com/rubocop/rubocop/pull/9776): Update `Style/NilLambda` to handle procs as well. ([@dvandersluis][]) + * [#9744](https://github.com/rubocop/rubocop/pull/9744): The parallel flag will now be automatically ignored when combined with `--cache false`. Previously, an error was raised and execution stopped. ([@rrosenblum][]) + +--- Old: rubocop-1.14.0.gem New: rubocop-1.15.0.gem Other differences: -- ++ rubygem-rubocop.spec ++ --- /var/tmp/diff_new_pack.F7EXhk/_old 2021-06-01 10:41:35.265234523 +0200 +++ /var/tmp/diff_new_pack.F7EXhk/_new 2021-06-01 10:41:35.265234523 +0200 @@ -16,28 +16,29 @@ # -%define mod_name rubocop -%define mod_full_name %{mod_name}-%{version} # # This file was generated with a gem2rpm.yml and not just plain gem2rpm. # All sections marked as MANUAL, license headers, summaries and descriptions # can be maintained in that file. Please consult this file before editing any # of those fields # + Name: rubygem-rubocop -Version:1.14.0 +Version:1.15.0 Release:0 -Summary:Automatic Ruby code style checking tool -License:MIT -Group: Development/Languages/Ruby -URL:https://github.com/rubocop/rubocop -Source: https://rubygems.org/gems/%{mod_full_name}.gem -Source1:gem2rpm.yml +%define mod_name rubocop +%define mod_full_name %{mod_name}-%{version} +BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: %{ruby >= 2.5.0} BuildRequires: %{rubygem gem2rpm} BuildRequires: ruby-macros >= 5 BuildRequires: update-alternatives -# FIXME: use proper Requires(pre/post/preun/...) +URL:https://github.com/rubocop/rubocop +Source: https://rubygems.org/gems/%{mod_full_name}.gem +Source1:gem2rpm.yml +Summary:Aut
commit rubygem-rubocop for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-rubocop for openSUSE:Factory checked in at 2021-05-16 23:40:25 Comparing /work/SRC/openSUSE:Factory/rubygem-rubocop (Old) and /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.2988 (New) Package is "rubygem-rubocop" Sun May 16 23:40:25 2021 rev:24 rq:890732 version:1.14.0 Changes: --- /work/SRC/openSUSE:Factory/rubygem-rubocop/rubygem-rubocop.changes 2021-04-22 18:04:41.398573211 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.2988/rubygem-rubocop.changes 2021-05-16 23:40:59.177861180 +0200 @@ -1,0 +2,48 @@ +Wed May 5 08:44:30 UTC 2021 - Dan ??erm??k + +- New upstream release 1.14 + +### New features + +* [#7669](https://github.com/rubocop/rubocop/issues/7669): New cop `Bundler/GemVersion` requires or forbids specifying gem versions. +([@timlkelly][]) +* [#9758](https://github.com/rubocop/rubocop/pull/9758): Support `TargetRubyVersion 3.1` (experimental). ([@koic][]) +* [#9377](https://github.com/rubocop/rubocop/issues/9377): Add cop `Layout/SingleLineBlockChain`. ([@jonas054][]) + +### Bug fixes + +* [#9751](https://github.com/rubocop/rubocop/pull/9751): `Style/StringLiteral` doesn't autocorrect global variable interpolation. +([@etiennebarrie][]) +* [#9731](https://github.com/rubocop/rubocop/issues/9731): Fix two autocorrection issues for `Style/NegatedIfElseCondition`. +([@dvandersluis][]) +* [#9740](https://github.com/rubocop/rubocop/pull/9740): Fix an incorrect auto-correct for `Style/SingleLineMethods` when defining setter +method. ([@koic][]) +* [#9757](https://github.com/rubocop/rubocop/pull/9757): Fix a false positive for `Lint/NumberConversion` when `:to_f` is one of multiple +method arguments. ([@koic][]) +* [#9761](https://github.com/rubocop/rubocop/issues/9761): Fix `Style/ClassAndModuleChildren` false negative for `compact` style when a +class/module is partially nested. ([@dvandersluis][]) +* [#9748](https://github.com/rubocop/rubocop/pull/9748): Prevent infinite loops during symlink traversal. ([@Tonkpils][]) +* [#9762](https://github.com/rubocop/rubocop/issues/9762): Update `VariableForce` to be able to handle `case-match` nodes. +([@dvandersluis][]) +* [#9729](https://github.com/rubocop/rubocop/issues/9729): Fix an error for `Style/IfUnlessModifier` when variable assignment is used in +the branch body of if modifier. ([@koic][]) +* [#9750](https://github.com/rubocop/rubocop/issues/9750): Fix an incorrect auto-correct for `Style/SoleNestedConditional` when when using +nested `if` within `unless foo == bar`. ([@koic][]) +* [#9751](https://github.com/rubocop/rubocop/pull/9751): `Style/StringLiteral` autocorrects `'\\'` into `"\\"`. ([@etiennebarrie][]) +* [#9732](https://github.com/rubocop/rubocop/pull/9732): Support deprecated Socket.gethostbyaddr and Socket.gethostbyname. +([@AndreiEres][]) +* [#9713](https://github.com/rubocop/rubocop/issues/9713): Fix autocorrection for block local variables in `Lint/UnusedBlockArgument`. +([@tejasbubane][]) +* [#9746](https://github.com/rubocop/rubocop/pull/9746): Fix a false positive for `Lint/UnreachableLoop` when using conditional `next` in +a loop. ([@koic][]) + +[@timlkelly]: https://github.com/timlkelly +[@koic]: https://github.com/koic +[@jonas054]: https://github.com/jonas054 +[@etiennebarrie]: https://github.com/etiennebarrie +[@dvandersluis]: https://github.com/dvandersluis +[@Tonkpils]: https://github.com/Tonkpils +[@AndreiEres]: https://github.com/AndreiEres +[@tejasbubane]: https://github.com/tejasbubane + +--- Old: rubocop-1.13.0.gem New: rubocop-1.14.0.gem Other differences: -- ++ rubygem-rubocop.spec ++ --- /var/tmp/diff_new_pack.hSrq8F/_old 2021-05-16 23:40:59.653859406 +0200 +++ /var/tmp/diff_new_pack.hSrq8F/_new 2021-05-16 23:40:59.653859406 +0200 @@ -16,29 +16,28 @@ # +%define mod_name rubocop +%define mod_full_name %{mod_name}-%{version} # # This file was generated with a gem2rpm.yml and not just plain gem2rpm. # All sections marked as MANUAL, license headers, summaries and descriptions # can be maintained in that file. Please consult this file before editing any # of those fields # - Name: rubygem-rubocop -Version:1.13.0 +Version:1.14.0 Release:0 -%define mod_name rubocop -%define mod_full_name %{mod_name}-%{version} -BuildRoot: %{_tmppath}/%{name}-%{version}-build +Summary:Automatic Ruby code style checking tool +License:MIT +Group: Development/Languages/Ruby +URL:https://github.com/rubocop/rubocop +Source: https://rubygems.org/gems/%{mod_full_name}.gem +
commit rubygem-rubocop for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-rubocop for openSUSE:Factory checked in at 2021-04-22 18:03:53 Comparing /work/SRC/openSUSE:Factory/rubygem-rubocop (Old) and /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.12324 (New) Package is "rubygem-rubocop" Thu Apr 22 18:03:53 2021 rev:23 rq:887363 version:1.13.0 Changes: --- /work/SRC/openSUSE:Factory/rubygem-rubocop/rubygem-rubocop.changes 2021-04-08 21:32:47.471848331 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.12324/rubygem-rubocop.changes 2021-04-22 18:04:41.398573211 +0200 @@ -1,0 +2,34 @@ +Wed Apr 21 18:16:53 UTC 2021 - Manuel Schnitzer + +- updated to version 1.13.0 + + ### New features + + * [#7977](https://github.com/rubocop/rubocop/issues/7977): Add `Layout/RedundantLineBreak` cop. ([@jonas054][]) + * [#9691](https://github.com/rubocop/rubocop/issues/9691): Add configuration parameter `InspectBlocks` to `Layout/RedundantLineBreak`. ([@jonas054][]) + * [#9684](https://github.com/rubocop/rubocop/issues/9684): Support `IgnoredMethods` option for `Lint/AmbguousBlockAssociation`. ([@gprado][]) + * [#9358](https://github.com/rubocop/rubocop/pull/9358): Support `restrictive_version_specificiers` option in `Bundler/GemComment` cop. ([@RobinDaugherty][]) + + ### Bug fixes + + * [#5576](https://github.com/rubocop/rubocop/issues/5576): Fix problem with inherited `Include` parameters. ([@jonas054][]) + * [#9690](https://github.com/rubocop/rubocop/pull/9690): Fix an incorrect auto-correct for `Style/IfUnlessModifier` when using a method with heredoc argument. ([@koic][]) + * [#9681](https://github.com/rubocop/rubocop/issues/9681): Fix an incorrect auto-correct for `Style/RedundantBegin` when using modifier `if` single statement in `begin` block. ([@koic][]) + * [#9698](https://github.com/rubocop/rubocop/issues/9698): Fix an error for `Style/StructInheritance` when extending instance of `Struct` without `do` ... `end` and class body is empty and single line definition. ([@koic][]) + * [#9700](https://github.com/rubocop/rubocop/issues/9700): Avoid warning about Ruby version mismatch. ([@marcandre][]) + * [#9636](https://github.com/rubocop/rubocop/issues/9636): Resolve symlinks when excluding directories. ([@ob-stripe][]) + * [#9707](https://github.com/rubocop/rubocop/issues/9707): Fix false positive for `Style/MethodCallWithArgsParentheses` with `omit_parentheses` style on an endless `defs` node. ([@dvandersluis][]) + * [#9689](https://github.com/rubocop/rubocop/issues/9689): Treat parens around array items the same for children and deeper descendants. ([@dvandersluis][]) + * [#9676](https://github.com/rubocop/rubocop/issues/9676): Fix an error for `Style/StringChars` when using `split` without parentheses. ([@koic][]) + * [#9712](https://github.com/rubocop/rubocop/pull/9712): Fix an incorrect auto-correct for `Style/HashConversion` when `Hash[]` as a method argument without parentheses. ([@koic][]) + * [#9704](https://github.com/rubocop/rubocop/pull/9704): Fix an incorrect auto-correct for `Style/SingleLineMethods` when single line method call without parentheses. ([@koic][]) + * [#9683](https://github.com/rubocop/rubocop/issues/9683): Fix an incorrect auto-correct for `Style/HashConversion` when using `zip` method without argument in `Hash[]`. ([@koic][]) + * [#9715](https://github.com/rubocop/rubocop/pull/9715): Fix an incorrect auto-correct for `EnforcedStyle: require_parentheses` of `Style/MethodCallWithArgsParentheses` with `Style/RescueModifier`. ([@koic][]) + + ### Changes + + * [#7544](https://github.com/rubocop/rubocop/pull/7544): Add --no-parallel (-P/--parallel can not be combined with --auto-correct). ([@kwerle][]) + * [#9648](https://github.com/rubocop/rubocop/pull/9648): Drop support for Ruby 2.4. ([@koic][]) + * [#9647](https://github.com/rubocop/rubocop/pull/9647): The parallel flag will now be automatically ignored when combined with `--auto-correct`, `--auto-gen-config`, or `-F/--fail-fast`. Previously, an error was raised and execution stopped. ([@rrosenblum][]) + +--- Old: rubocop-1.12.1.gem New: rubocop-1.13.0.gem Other differences: -- ++ rubygem-rubocop.spec ++ --- /var/tmp/diff_new_pack.tfksrO/_old 2021-04-22 18:04:41.874573938 +0200 +++ /var/tmp/diff_new_pack.tfksrO/_new 2021-04-22 18:04:41.878573944 +0200 @@ -16,28 +16,29 @@ # -%define mod_name rubocop -%define mod_full_name %{mod_name}-%{version} # # This file was generated with a gem2rpm.yml and not just plain gem2rpm. # All sections marked as MANUAL, license headers, summaries and descriptions
commit rubygem-rubocop for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-rubocop for openSUSE:Factory checked in at 2021-04-08 21:32:33 Comparing /work/SRC/openSUSE:Factory/rubygem-rubocop (Old) and /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.2401 (New) Package is "rubygem-rubocop" Thu Apr 8 21:32:33 2021 rev:22 rq:883774 version:1.12.1 Changes: --- /work/SRC/openSUSE:Factory/rubygem-rubocop/rubygem-rubocop.changes 2021-01-22 21:50:26.897689466 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.2401/rubygem-rubocop.changes 2021-04-08 21:32:47.471848331 +0200 @@ -1,0 +2,175 @@ +Thu Apr 8 08:19:03 UTC 2021 - Dan ??erm??k + +New upstream release 1.12.1 + +## 1.12.1 (2021-04-04) + +### Bug fixes + +* [#9649](https://github.com/rubocop/rubocop/pull/9649): Fix when highlights contain multibyte characters. ([@osyo-manga][]) +* [#9646](https://github.com/rubocop/rubocop/pull/9646): Fix an incorrect auto-correct for `EnforcedStyle: require_parentheses` of `Style/MethodCallWithArgsParentheses` with `EnforcedStyle: conditionals` of `Style/AndOr`. ([@koic][]) +* [#9608](https://github.com/rubocop/rubocop/issues/9608): Fix a false positive for `Layout/EmptyLineAfterGuardClause` when using guard clause is after `rubocop:enable` comment. ([@koic][]) +* [#9637](https://github.com/rubocop/rubocop/issues/9637): Allow parentheses for forwarded args in `Style/MethodCallWithArgsParentheses`'s `omit_parentheses` style to avoid endless range ambiguity. ([@gsamokovarov][]) +* [#9641](https://github.com/rubocop/rubocop/issues/9641): Fix `Layout/MultilineMethodCallIndentation` triggering on method calls that look like operators. ([@dvandersluis][]) +* [#9638](https://github.com/rubocop/rubocop/pull/9638): Fix an error for `Layout/LineLength` when over limit at right hand side of multiple assignment. ([@koic][]) +* [#9639](https://github.com/rubocop/rubocop/pull/9639): Fix `Style/RedundantBegin` removing comments on assignment statement correction. ([@marcotc][]) +* [#9671](https://github.com/rubocop/rubocop/pull/9671): Fix an incorrect auto-correct for `Lint/AmbiguousOperator` with `Style/MethodCallWithArgsParentheses`. ([@koic][]) +* [#9645](https://github.com/rubocop/rubocop/pull/9645): Fix an incorrect auto-correct for `Style/SingleLineMethods` when using single line class method definition. ([@koic][]) +* [#9644](https://github.com/rubocop/rubocop/pull/9644): Fix an error and an incorrect auto-correct for `Style/MultilineMethodSignature` when line break after opening parenthesis. ([@koic][]) +* [#9672](https://github.com/rubocop/rubocop/issues/9672): Fix an incorrect auto-correct for `Style/HashConversion` when using multi-argument `Hash[]` as a method argument. ([@koic][]) + +## 1.12.0 (2021-03-24) + +### New features + +* [#9615](https://github.com/rubocop/rubocop/pull/9615): Add new `Style/StringChars` cop. ([@koic][]) +* [#9629](https://github.com/rubocop/rubocop/issues/9629): Add `AllowParenthesesInStringInterpolation` configuration to `Style/MethodCallWithArgsParentheses` to allow parenthesized calls in string interpolation. ([@gsamokovarov][]) +* [#9219](https://github.com/rubocop/rubocop/pull/9219): Allow excluding some constants from Style/Documentation. ([@fsateler][]) +* Add `AllowNil` option for `Lint/SuppressedException` to allow/disallow `rescue nil`. ([@corroded][]) + +### Bug fixes + +* [#9560](https://github.com/rubocop/rubocop/pull/9560): Fix an error for `Lint/ClassMethodsDefinitions` when defining class methods with `class << self` with comment only body. ([@koic][]) +* [#9551](https://github.com/rubocop/rubocop/issues/9551): Fix a false positive for `Style/UnlessLogicalOperators` when using `||` operator and invoked method name includes "or" in the conditional branch. ([@koic][]) +* [#9620](https://github.com/rubocop/rubocop/pull/9620): Allow parentheses in operator methods calls for `Style/MethodCallWithArgsParentheses` `EnforcedStyle: omit_parentheses`. ([@gsamokovarov][]) +* [#9622](https://github.com/rubocop/rubocop/issues/9622): Fixed `Style/BisectedAttrAccessor` autocorrection to handle multiple bisected attrs in the same macro. ([@dvandersluis][]) +* [#9606](https://github.com/rubocop/rubocop/issues/9606): Fix an error for `Layout/IndentationConsistency` when using access modifier at the top level. ([@koic][]) +* [#9619](https://github.com/rubocop/rubocop/pull/9619): Fix infinite loop between `Layout/IndentationWidth` and `Layout/RescueEnsureAlignment` autocorrection. ([@dvandersluis][]) +* [#9633](https://github.com/rubocop/rubocop/pull/9633): Fix an incorrect auto-correct for `Lint/NumberConversion` when `to_i` method in symbol form. ([@koic][]) +* [#9616](https://github.com/rubocop/rubocop/pull/9616): Fix an incorrect auto-correct for
commit rubygem-rubocop for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-rubocop for openSUSE:Factory checked in at 2021-01-22 21:50:10 Comparing /work/SRC/openSUSE:Factory/rubygem-rubocop (Old) and /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.28504 (New) Package is "rubygem-rubocop" Fri Jan 22 21:50:10 2021 rev:21 rq:866024 version:1.8.1 Changes: --- /work/SRC/openSUSE:Factory/rubygem-rubocop/rubygem-rubocop.changes 2021-01-04 19:10:18.887446603 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.28504/rubygem-rubocop.changes 2021-01-22 21:50:26.897689466 +0100 @@ -1,0 +2,48 @@ +Wed Jan 20 13:16:40 UTC 2021 - Stephan Kulow + +updated to version 1.8.1 + no changelog found + +--- +Fri Jan 8 08:28:48 UTC 2021 - Dan ??erm??k + +- New upstream release 1.8.0 + +### New features + +* [#9324](https://github.com/rubocop-hq/rubocop/pull/9324): Add new `Lint/DeprecatedConstants` cop. ([@koic][]) +* [#9319](https://github.com/rubocop-hq/rubocop/pull/9319): Support asdf's .tool-versions file. ([@noon-ng][]) +* [#9301](https://github.com/rubocop-hq/rubocop/pull/9301): Add new `Lint/RedundantDirGlobSort` cop. ([@koic][]) +* [#9281](https://github.com/rubocop-hq/rubocop/pull/9281): Add new cop `Style/EndlessMethod`. ([@dvandersluis][]) + +### Bug fixes + +* [#9298](https://github.com/rubocop-hq/rubocop/issues/9298): Fix an incorrect auto-correct for `Lint/RedundantCopDisableDirective` when there is a blank line before inline comment. ([@koic][]) +* [#9233](https://github.com/rubocop-hq/rubocop/issues/9233): Fix `Style/SoleNestedConditional` copying non-relevant comments during auto-correction. ([@Darhazer][]) +* [#9312](https://github.com/rubocop-hq/rubocop/issues/9312): Fix `Layout/FirstHashElementLineBreak` to apply to multi-line hashes with only a single element. ([@muirdm][]) +* [#9316](https://github.com/rubocop-hq/rubocop/issues/9316): Fix `Style/EmptyLiteral` registering wrong offense when using a numbered block for Hash.new, i.e. `Hash.new { _1[_2] = [] }`. ([@agargiulo][]) +* [#9308](https://github.com/rubocop-hq/rubocop/issues/9308): Fix an error for `Layout/EmptyLineBetweenDefs` when using endless class method. ([@koic][]) +* [#9314](https://github.com/rubocop-hq/rubocop/issues/9314): Fix an incorrect auto-correct for `Style/RedundantReturn` when multiple return values have a parenthesized return value. ([@koic][]) +* [#9335](https://github.com/rubocop-hq/rubocop/issues/9335): Fix an incorrect auto-correct for `EnforcedStyle: require_parentheses` of `Style/MethodCallWithArgsParentheses` with `Style/NestedParenthesizedCalls`. ([@koic][]) +* [#9290](https://github.com/rubocop-hq/rubocop/issues/9290): Fix a false positive for `Layout/SpaceBeforeBrackets` when using array literal method argument. ([@koic][]) +* [#9333](https://github.com/rubocop-hq/rubocop/issues/9333): Fix an error for `Style/IfInsideElse` when using a modifier `if` nested inside an `else` after `elsif`. ([@koic][]) +* [#9303](https://github.com/rubocop-hq/rubocop/issues/9303): Fix an incorrect auto-correct for `Style/RaiseArgs` with `EnforcedStyle: compact` when using exception instantiation argument. ([@koic][]) + +### Changes + +* [#9300](https://github.com/rubocop-hq/rubocop/pull/9300): Make `Lint/NonDeterministicRequireOrder` not to register offense when using Ruby 3.0 or higher. ([@koic][]) +* [#9320](https://github.com/rubocop-hq/rubocop/pull/9320): Support unicode-display_width v2. ([@dduugg][]) +* [#9288](https://github.com/rubocop-hq/rubocop/pull/9288): Require Parser 3.0.0.0 or higher. ([@koic][]) +* [#9337](https://github.com/rubocop-hq/rubocop/issues/9337): Add `AllowedIdentifiers` to `Naming/VariableName`. ([@dvandersluis][]) +* [#9295](https://github.com/rubocop-hq/rubocop/pull/9295): Update `Style/SingleLineMethods` to correct to an endless method definition if they are allowed. ([@dvandersluis][]) +* [#9331](https://github.com/rubocop-hq/rubocop/pull/9331): Mark `Style/MutableConstant` as unsafe. ([@koic][]) + +[@koic]: https://github.com/koic +[@noon-ng]: https://github.com/noon-ng +[@dvandersluis]: https://github.com/dvandersluis +[@Darhazer]: https://github.com/Darhazer +[@muirdm]: https://github.com/muirdm +[@agargiulo]: https://github.com/agargiulo +[@dduugg]: https://github.com/dduugg + +--- Old: rubocop-1.7.0.gem New: rubocop-1.8.1.gem Other differences: -- ++ rubygem-rubocop.spec ++ --- /var/tmp/diff_new_pack.cyN7uj/_old 2021-01-22 21:50:27.485690300 +0100 +++ /var/tmp/diff_new_pack.cyN7uj/_new 2021-01-22 21:50:27.493690312 +0100 @@
[opensuse-commit] commit rubygem-rubocop for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-rubocop for openSUSE:Factory checked in at 2020-11-29 12:28:58 Comparing /work/SRC/openSUSE:Factory/rubygem-rubocop (Old) and /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.5913 (New) Package is "rubygem-rubocop" Sun Nov 29 12:28:58 2020 rev:19 rq:851250 version:1.4.2 Changes: --- /work/SRC/openSUSE:Factory/rubygem-rubocop/rubygem-rubocop.changes 2020-11-24 22:09:37.431336763 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.5913/rubygem-rubocop.changes 2020-11-29 12:28:58.886035748 +0100 @@ -1,0 +2,75 @@ +Fri Nov 27 07:05:19 UTC 2020 - Dan Čermák + +- New upstream release 1.4.2 + +### Bug fixes + +* [#9083](https://github.com/rubocop-hq/rubocop/pull/9083): Fix `Style/RedundantArgument` cop raising offense for more than one argument. ([@tejasbubane][]) +* [#9089](https://github.com/rubocop-hq/rubocop/issues/9089): Fix an incorrect auto-correct for `Style/FormatString` when using springf with second argument that uses an operator. ([@koic][]) +* [#7670](https://github.com/rubocop-hq/rubocop/issues/7670): Handle offenses inside heredocs for `-a --disable-uncorrectable`. ([@jonas054][]) +* [#9070](https://github.com/rubocop-hq/rubocop/issues/9070): Fix `Lint/UnmodifiedReduceAccumulator` error when the block does not have enough arguments. ([@dvandersluis][]) + +### Changes + +* [#9091](https://github.com/rubocop-hq/rubocop/pull/9091): Have `Naming/VariableNumber` accept _1, _2, ... ([@marcandre][]) +* [#9087](https://github.com/rubocop-hq/rubocop/pull/9087): Deprecate `EnforceSuperclass` module. ([@koic][]) + +[@tejasbubane]: https://github.com/tejasbubane +[@koic]: https://github.com/koic +[@jonas054]: https://github.com/jonas054 +[@dvandersluis]: https://github.com/dvandersluis +[@marcandre]: https://github.com/marcandre + +- New upstream release 1.4.1 + +### Bug fixes + +* [#9082](https://github.com/rubocop-hq/rubocop/pull/9082): Fix gemspec to include assets directory. ([@javierav][]) + +[@javierav]: https://github.com/javierav + +--- +Mon Nov 23 11:26:33 UTC 2020 - Dan Čermák + +- New upstream release 1.4.0 + + Drop patch: + * 0001-Use-usr-bin-bash-instead-of-env-as-the-shebang.patch +(file no longer in the gem) + +### New features + +* [#7737](https://github.com/rubocop-hq/rubocop/issues/7737): Add new `Style/RedundantArgument` cop. ([@tejasbubane][]) +* [#9064](https://github.com/rubocop-hq/rubocop/issues/9064): Add `EmptyLineBetweenMethodDefs`, `EmptyLineBetweenClassDefs` and `EmptyLineBetweenModuleDefs` config options for `Layout/EmptyLineBetweenDefs` cop. ([@tejasbubane][]) +* [#9043](https://github.com/rubocop-hq/rubocop/pull/9043): Add `--stderr` to write all output to stderr except for the autocorrected source. ([@knu][]) + +### Bug fixes + +* [#9067](https://github.com/rubocop-hq/rubocop/pull/9067): Fix an incorrect auto-correct for `Lint::AmbiguousRegexpLiteral` when passing in a regexp to a method with no receiver. ([@amatsuda][]) +* [#9060](https://github.com/rubocop-hq/rubocop/issues/9060): Fix an error for `Layout/SpaceAroundMethodCallOperator` when using `__ENCODING__`. ([@koic][]) +* [#7338](https://github.com/rubocop-hq/rubocop/issues/7338): Handle assignment with `[]=` in `MultilineMethodCallIndentation`. ([@jonas054][]) + +* [#7726](https://github.com/rubocop-hq/rubocop/issues/7726): Fix `MultilineMethodCallIndentation` indentation inside square brackets. ([@jonas054][]) +* [#8857](https://github.com/rubocop-hq/rubocop/issues/8857): Improve how `Exclude` properties are generated by `--auto-gen-config`. ([@jonas054][]) + +### Changes + +* [#8788](https://github.com/rubocop-hq/rubocop/issues/8788): Change `Style/Documentation` to not trigger offense with only macros. ([@tejasbubane][]) +* [#8993](https://github.com/rubocop-hq/rubocop/issues/8993): Allow `ExcludedMethods` config of `Metrics/MethodLength` cop to contain regex. ([@tejasbubane][]) +* [#9073](https://github.com/rubocop-hq/rubocop/issues/9073): Enable `Layout/LineLength`'s auto-correct by default. ([@bbatsov][]) +* [#9079](https://github.com/rubocop-hq/rubocop/pull/9079): Improve the gemspec to load only the necessary files without the git utility. ([@piotrmurach][]) +* [#9059](https://github.com/rubocop-hq/rubocop/pull/9059): Update `Lint/UnmodifiedReduceAccumulator` to accept blocks which return in the form `accumulator[element]`. ([@dvandersluis][]) +* [#9072](https://github.com/rubocop-hq/rubocop/pull/9072): `Lint/MissingSuper`: exclude `method_missing` and `respond_to_missing?`. ([@marcandre][]) +* [#9074](https://github.com/rubocop-hq/rubocop/pull/9074): Allow specifying a pull request ID when calling `rake changelog:*`. ([@marcandre][]) + +[@tejasbubane]: https://git
[opensuse-commit] commit rubygem-rubocop for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-rubocop for openSUSE:Factory checked in at 2020-11-24 22:09:29 Comparing /work/SRC/openSUSE:Factory/rubygem-rubocop (Old) and /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.5913 (New) Package is "rubygem-rubocop" Tue Nov 24 22:09:29 2020 rev:18 rq:848887 version:1.3.1 Changes: --- /work/SRC/openSUSE:Factory/rubygem-rubocop/rubygem-rubocop.changes 2020-11-05 21:56:15.304004068 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-rubocop.new.5913/rubygem-rubocop.changes 2020-11-24 22:09:37.431336763 +0100 @@ -1,0 +2,54 @@ +Mon Nov 16 14:18:03 UTC 2020 - Dan Čermák + +New upstream release 1.3.1 + +## 1.3.1 (2020-11-16) + +### Bug fixes + +* [#9037](https://github.com/rubocop-hq/rubocop/pull/9037): Fix `required_ruby_version` issue when using `Gem::Requirement`. ([@cetinajero][]) +* [#9039](https://github.com/rubocop-hq/rubocop/pull/9039): Fix stack level too deep error if target directory contains `**`. ([@unasuke][]) +* [#6962](https://github.com/rubocop-hq/rubocop/issues/6962): Limit `Layout/ClassStructure` constant order autocorrect to literal constants. ([@tejasbubane][]) +* [#9032](https://github.com/rubocop-hq/rubocop/issues/9032): Fix an error for `Style/DocumentDynamicEvalDefinition` when using eval-type method with interpolated string that is not heredoc without comment doc. ([@koic][]) +* [#9049](https://github.com/rubocop-hq/rubocop/issues/9049): Have `Lint/ToEnumArguments` accept `__callee__`. ([@marcandre][]) +* [#9050](https://github.com/rubocop-hq/rubocop/issues/9050): Fix a false positive for `Style/NegatedIfElseCondition` when `if` with `!!` condition. ([@koic][]) +* [#9041](https://github.com/rubocop-hq/rubocop/issues/9041): Fix a false positive for `Naming/VariableNumber` when using integer symbols. ([@koic][]) + +### Changes + +* [#9045](https://github.com/rubocop-hq/rubocop/pull/9045): Have `cut_release` handle "config/default" and generate cops doc. ([@marcandre][]) +* [#9036](https://github.com/rubocop-hq/rubocop/pull/9036): Allow `enums` method by default for `Lint/ConstantDefinitionInBlock`. ([@koic][]) +* [#9035](https://github.com/rubocop-hq/rubocop/issues/9035): Only complain about `SafeYAML` if it causes issues. ([@marcandre][]) + +## 1.3.0 (2020-11-12) + +### New features + +* [#8761](https://github.com/rubocop-hq/rubocop/issues/8761): Read `required_ruby_version` from gemspec file if it exists. ([@HeroProtagonist][]) +* [#9001](https://github.com/rubocop-hq/rubocop/pull/9001): Add new `Lint/EmptyClass` cop. ([@fatkodima][]) +* [#9025](https://github.com/rubocop-hq/rubocop/issues/9025): Add `AllowedMethods` option to `Lint/ConstantDefinitionInBlock`. ([@koic][]) +* [#9014](https://github.com/rubocop-hq/rubocop/pull/9014): Support auto-correction for `Style/IfInsideElse`. ([@koic][]) +* [#8483](https://github.com/rubocop-hq/rubocop/pull/8483): Add new `Style/StaticClass` cop. ([@fatkodima][]) +* [#9020](https://github.com/rubocop-hq/rubocop/pull/9020): Add new `Style/NilLambda` cop to check for lambdas that always return nil. ([@dvandersluis][]) +* [#8404](https://github.com/rubocop-hq/rubocop/pull/8404): Add new `Lint/DuplicateBranch` cop. ([@fatkodima][]) + +### Bug fixes + +* [#8499](https://github.com/rubocop-hq/rubocop/issues/8499): Fix `Style/IfUnlessModifier` and `Style/WhileUntilModifier` to prevent an offense if there are both first-line comment and code after `end` block. ([@dsavochkin][]) +* [#8996](https://github.com/rubocop-hq/rubocop/issues/8996): Fix a false positive for `Style/MultipleComparison` when comparing two sides of the disjunction is unrelated. ([@koic][]) +* [#8975](https://github.com/rubocop-hq/rubocop/issues/8975): Fix an infinite loop when autocorrecting `Layout/TrailingWhitespace` + `Lint/LiteralInInterpolation`. ([@fatkodima][]) +* [#8998](https://github.com/rubocop-hq/rubocop/issues/8998): Fix an error for `Style/NegatedIfElseCondition` when using negated condition and `if` branch body is empty. ([@koic][]) +* [#9008](https://github.com/rubocop-hq/rubocop/pull/9008): Mark `Style/InfiniteLoop` as unsafe. ([@marcandre][]) + +### Changes + +* [#8978](https://github.com/rubocop-hq/rubocop/issues/8978): Update `Layout/LineLength` autocorrection to be able to handle method calls with long argument lists. ([@dvandersluis][]) +* [#9015](https://github.com/rubocop-hq/rubocop/issues/9015): Update `Lint/EmptyBlock` to allow for empty lambdas. ([@dvandersluis][]) +* [#9022](https://github.com/rubocop-hq/rubocop/issues/9022): Add `NOTE` to keywords of `Style/CommentAnnotation`. ([@koic][]) +* [#9011](https://github.com/rubocop-hq/rubocop/issues/9011): Mark autocorrection for `Lint/Loop` as unsafe. ([@dvandersluis][]) +* [#9026](https://github.com/rubocop-hq/rubocop/issues/9026): Update `Sty