5fpro / rails-template

1 stars 1 forks source link

Update rubocop 1.57.2 → 1.60.2 (minor) #527

Closed depfu[bot] closed 8 months ago

depfu[bot] commented 9 months ago

Here is everything you need to know about this update. Please take a good look at what changed and the test results before merging this pull request.

What changed?

✳️ rubocop (1.57.2 → 1.60.2) · Repo · Changelog

Release Notes

1.60.2

Bug fixes

  • #12627: Fix a false positive for Layout/RedundantLineBreak when using index access call chained on multiple lines with backslash. (@koic)
  • #12626: Fix a false positive for Style/ArgumentsForwarding when naming a block argument &. (@koic)
  • #12635: Fix a false positive for Style/HashEachMethods when both arguments are unused. (@earlopain)
  • #12636: Fix an error for Style/HashEachMethods when a block with both parameters has no body. (@earlopain)
  • #12638: Fix an Errno::ENOENT error when using server mode. (@koic)
  • #12628: Fix a false positive for Style/ArgumentsForwarding when using block arg forwarding with positional arguments forwarding to within block. (@koic)
  • #12642: Fix false positives for Style/HashEachMethods when using array converter method. (@koic)
  • #12632: Fix an infinite loop error when EnforcedStyle: explicit of Naming/BlockForwarding with Style/ArgumentsForwarding. (@koic)

1.60.1

Bug fixes

  • #12625: Fix an error when server cache dir has read-only file system. (@Strzesia)
  • #12618: Fix false positives for Style/ArgumentsForwarding when using block argument forwarding with other arguments. (@koic)
  • #12614: Fix false positiveis for Style/RedundantParentheses when parentheses in control flow keyword with multiline style argument. (@koic)

Changes

  • #12617: Make Style/CollectionCompact aware of grep_v with nil. (@koic)

1.60.0

Bug fixes

  • #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: Fix a false positive for Style/RedundantLineContinuation when line continuations for multiline leading dot method chain with a blank line. (@koic)
  • #12610: Accept parentheses in argument calls with blocks for Style/MethodCallWithArgsParentheses omit_parentheses style. (@gsamokovarov)
  • #12580: Fix an infinite loop error for Layout/EndAlignment when misaligned in singleton class assignments with EnforcedStyleAlignWith: variable. (@koic)
  • #12548: Fix an infinite loop error for Layout/FirstArgumentIndentation when specifying EnforcedStyle: with_fixed_indentation of Layout/ArrayAlignment. (@koic)
  • #12236: Fix an error for Lint/ShadowedArgument when self assigning to a block argument in for. (@koic)
  • #12569: Fix an error for Style/IdenticalConditionalBranches when using if...else with identical leading lines that assign to self.foo. (@koic)
  • #12437: Fix an infinite loop error for EnforcedStyle: omit_parentheses of Style/MethodCallWithArgsParentheses with Style/SuperWithArgsParentheses. (@koic)
  • #12558: Fix an incorrect autocorrect for Style/MapToHash when using map.to_h without receiver. (@koic)
  • #12179: Let --auto-gen-config generate Exclude when Max is overridden. (@jonas054)
  • #12574: Fix bug for unrecognized style in --auto-gen-config. (@jonas054)
  • #12542: Fix false positive for Lint/MixedRegexpCaptureTypes when using look-ahead matcher. (@marocchino)
  • #12607: Fix a false positive for Style/RedundantParentheses when regexp literal attempts to match against a parenthesized condition. (@koic)
  • #12539: Fix false positives for Lint/LiteralAssignmentInCondition when a collection literal contains non-literal elements. (@koic)
  • #12571: Fix false positives for Naming/BlockForwarding when using explicit block forwarding in block method. (@koic)
  • #12537: Fix false positives for Style/RedundantParentheses when AllowInMultilineConditions: true of Style/ParenthesesAroundCondition. (@koic)
  • #12578: Fix false positives for Style/ArgumentsForwarding when rest arguments forwarding to a method in block. (@koic)
  • #12540: Fix false positives for Style/HashEachMethods when rest block argument of Enumerable#each method is used. (@koic)
  • #12529: Fix false positives for Style/ParenthesesAroundCondition. (@koic)
  • #12556: Fix false positives for Style/RedundantParentheses when parentheses are used around a semantic operator in expressions within assignments. (@koic)
  • #12541: Fix false negative in Style/ArgumentsForwarding when a block is forwarded but other args aren't. (@dvandersluis)
  • #12581: Handle trailing line continuation in Layout/LineContinuationLeadingSpace. (@eugeneius)
  • #12601: Make Style/EachForSimpleLoop accept block with no parameters. (@koic)

Changes

  • #12535: Allow --autocorrect with --display-only-fail-level-offenses. (@naveg)
  • #12572: Follow a Ruby 3.3 warning for Security/Open when open with a literal string starting with a pipe. (@koic)
  • #12453: Make Style/RedundantEach aware of safe navigation operator. (@koic)
  • #12233: Make Style/SlicingWithRange aware of redundant and beginless range. (@koic)
  • #12388: Reject additional 'expanded' EnforcedStyle options when --no-auto-gen-enforced-style is given. (@kpost)
  • #12593: Require Parser 3.3.0.2 or higher. (@koic)

1.59.0

New features

  • #12518: Add new Lint/ItWithoutArgumentsInBlock cop. (@koic)

Bug fixes

  • #12434: Fix a false positive for Lint/LiteralAssignmentInCondition when using interpolated string or xstring literals. (@koic)
  • #12435: Fix a false positive for Lint/SelfAssignment when using attribute assignment with method call with arguments. (@koic)
  • #12444: Fix false positive for Style/HashEachMethods when receiver literal is not a hash literal. (@koic)
  • #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: Fix a false positive for Style/RedundantParentheses when using parenthesized lambda or proc with do...end block. (@koic)
  • #12442: Fix an incorrect autocorrect for Style/CombinableLoops when looping over the same data as previous loop in do...end and {...} blocks. (@koic)
  • #12432: Fix a false positive for Lint/LiteralAssignmentInCondition when using parallel assignment with splat operator in block of guard condition. (@koic)
  • #12441: Fix false positives for Style/HashEachMethods when using destructed block arguments. (@koic)
  • #12436: Fix false positives for Style/RedundantParentheses when a part of range is a parenthesized condition. (@koic)
  • #12429: Fix incorrect autocorrect for Style/MapToHash when using dot method calls for to_h. (@koic)
  • #12488: Make Lint/HashCompareByIdentity aware of safe navigation operator. (@koic)
  • #12489: Make Lint/NextWithoutAccumulator aware of safe navigation operator. (@koic)
  • #12490: Make Lint/NumberConversion aware of safe navigation operator. (@koic)
  • #12491: Make Lint/RedundantWithIndex aware of safe navigation operator. (@koic)
  • #12492: Make Lint/RedundantWithObject aware of safe navigation operator. (@koic)
  • #12493: Make Lint/UnmodifiedReduceAccumulator aware of safe navigation operator. (@koic)
  • #12473: Make Style/ClassCheck aware of safe navigation operator. (@koic)
  • #12445: Make Style/CollectionCompact aware of safe navigation operator. (@koic)
  • #12474: Make Style/ConcatArrayLiterals aware of safe navigation operator. (@koic)
  • #12476: Make Style/DateTime aware of safe navigation operator. (@koic)
  • #12479: Make Style/EachWithObject aware of safe navigation operator. (@koic)
  • #12446: Make Style/HashExcept aware of safe navigation operator. (@koic)
  • #12447: Make Style/MapCompactWithConditionalBlock aware of safe navigation operator. (@koic)
  • #12484: Make Style/Next aware of safe navigation operator. (@koic)
  • #12486: Make Style/RedundantArgument aware of safe navigation operator. (@koic)
  • #12454: Make Style/RedundantFetchBlock aware of safe navigation operator. (@koic)
  • #12495: Make Layout/RedundantLineBreak aware of safe navigation operator. (@koic)
  • #12455: Make Style/RedundantSortBy aware of safe navigation operator. (@koic)
  • #12456: Make Style/RedundantSortBy aware of safe navigation operator. (@koic)
  • #12480: Make Style/ExactRegexpMatch aware of safe navigation operator. (@koic)
  • #12457: Make Style/Sample aware of safe navigation operator. (@koic)
  • #12458: Make Style/SelectByRegexp cops aware of safe navigation operator. (@koic)
  • #12494: Make Layout/SingleLineBlockChain aware of safe navigation operator. (@koic)
  • #12461: Make Style/StringChars aware of safe navigation operator. (@koic)
  • #12468: Make Style/Strip aware of safe navigation operator. (@koic)
  • #12469: Make Style/UnpackFirst aware of safe navigation operator. (@koic)

Changes

  • #12522: Make Style/MethodCallWithoutArgsParentheses allow the parenthesized it method in a block. (@koic)
  • #12523: Make Style/RedundantSelf allow the self.it method in a block. (@koic)

1.58.0

New features

Bug fixes

  • #12372: Fix a false negative for Lint/Debugger when used within method arguments a begin...end block. (@koic)
  • #12378: Fix a false negative for Style/Semicolon when a semicolon at the beginning of a lambda block. (@koic)
  • #12146: Fix a false positive for Lint/FloatComparison when comparing against zero. (@earlopain)
  • #12404: Fix a false positive for Layout/RescueEnsureAlignment when aligned rescue in do-end numbered block in a method. (@koic)
  • #12374: Fix a false positive for Layout/SpaceBeforeSemicolon when a space between an opening lambda brace and a semicolon. (@koic)
  • #12326: Fix an error for Style/RedundantDoubleSplatHashBraces when method call for parenthesized no hash double double splat. (@koic)
  • #12361: Fix an incorrect autocorrect for Naming/BlockForwarding and Style/ArgumentsForwarding when autocorrection conflicts for anonymous arguments. (@koic)
  • #12324: Fix an error for Layout/RescueEnsureAlignment when using rescue in do...end block assigned to object attribute. (@koic)
  • #12322: Fix an error for Style/CombinableLoops when looping over the same data for the third consecutive time or more. (@koic)
  • #12366: Fix a false negative for Layout/ExtraSpacing when a file has exactly two comments. (@eugeneius)
  • #12373: Fix a false negative for Lint/SymbolConversion when using string interpolation. (@earlopain)
  • #12402: Fix false negatives for Style/RedundantLineContinuation when redundant line continuations for a block are used, especially without parentheses around first argument. (@koic)
  • #12311: Fix false negatives for Style/RedundantParentheses when parentheses around logical operator keywords in method definition. (@koic)
  • #12394: Fix false negatives for Style/RedundantReturn when lambda (->) ending with return. (@koic)
  • #12377: Fix false positives for Lint/Void when a collection literal that includes non-literal elements in a method definition. (@koic)
  • #12407: Fix an incorrect autocorrect for Style/MapToHash with Layout/SingleLineBlockChain. (@koic)
  • #12409: Fix an incorrect autocorrect for Lint/SafeNavigationChain when ordinary method chain exists after safe navigation leading dot method call. (@koic)
  • #12363: Fix incorrect rendering of HTML character entities in HTMLFormatter formatter. (@koic)
  • #12424: Make Style/HashEachMethods aware of safe navigation operator. (@koic)
  • #12413: Make Style/InverseMethods aware of safe navigation operator. (@koic)
  • #12408: Make Style/MapToHash aware of safe navigation operator. (@koic)

Changes

  • #12328: Make Style/AutoResourceCleanup aware of Tempfile.open. (@koic)
  • #12412: Enhance Lint/RedundantSafeNavigation to handle conversion methods with defaults. (@fatkodima)
  • #12410: Enhance Lint/SelfAssignment to check attribute assignment and key assignment. (@fatkodima)
  • #12370: Make Style/HashEachMethods aware of unused block value. (@koic)
  • #12380: Make Style/RedundantParentheses aware of lambda or proc. (@koic)
  • #12421: Make Style/SelfAssignment aware of %, ^, <<, and >> operators. (@koic)
  • #12305: Require rubocop-ast version 1.30 or greater. (@sambostock)
  • #12337: Supports EnforcedStyleForRationalLiterals option for Layout/SpaceAroundOperators. (@koic)
  • #12296: Support RedundantRestArgumentNames, RedundantKeywordRestArgumentNames, and RedundantBlockArgumentNames options for Style/ArgumentsForwarding. (@koic)

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

↗️ json (indirect, 2.6.3 → 2.7.1) · Repo · Changelog

Release Notes

2.7.1

What's Changed

Improved

Fixed

Misc

New Contributors

Full Changelog: v2.7.0...v2.7.1

2.7.0

What's Changed

Improved

  • Perf. improvements to Hash#to_json in pure implementation generator. by @vipulnsward in #203
  • Remove unnecessary initialization of create_id in JSON.parse() by @Watson1978 in #454

Added

Fixed

Compatibility changes

  • JRuby requires a minimum of Java 8 by @headius in #516
  • Rename JSON::ParseError to JSON:ParserError by @dalizard in #530
  • Removed code for Ruby 1.8 by @hsbt in #540
  • alias_method is private on Ruby 2.3 and 2.4 by @hsbt in #541
  • remove_method of Module is private at Ruby 2.3 and 2.4 by @hsbt in #544
  • [jruby] avoid using deprecated BigDecimal.new by @kares in #546
  • Always indent even if empty by @headius in #517

Misc

  • Update CI matrix by @hsbt in #521
  • Add missing changelog entries for 1.8.5 and 1.8.6 by @r7kamura in #520
  • Actions workflow - Add new OS's, Ruby 3.1, Ruby master, Windows by @MSP-Greg in #491
  • Skip unsupported test on JRuby by @nobu in #532
  • Skip BigDecimal tests when it's missing to load by @hsbt in #533
  • Simplify by @nobu in #531
  • Load extension ('json/ext') consistently in test_ext by @aeroastro in #536
  • Use test-unit-ruby-core gem by @hsbt in #539
  • [CI] Add Windows mswin job by @MSP-Greg in #545
  • Exclude truffleruby-head from Actions by @hsbt in #551
  • tests/ractor_test.rb: make assert_separately available by @lucaskanashiro in #506
  • Added changes for 2.7.0 and restore entries to 2.6.3 and 2.6.2 by @hsbt in #552

New Contributors

Full Changelog: v2.6.3...v2.7.0

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

↗️ parallel (indirect, 1.23.0 → 1.24.0) · Repo

Commits

See the full diff on Github. The new version differs by 5 commits:

↗️ parser (indirect, 3.2.2.4 → 3.3.0.5) · Repo · Changelog

Release Notes

3.3.0.5 (from changelog)

API modifications:

  • Bump 3.2 branch to 3.2.3 (#993) (Koichi ITO)

3.3.0.4 (from changelog)

Features implemented:

  • Register a Ruby 3.4 parser (#991) (Jean byroot Boussier)

3.3.0.3 (from changelog)

Bugs fixed:

  • lexer.rl: accept tabs before closing heredoc delimiter (#990) (Ilya Bylich)

3.3.0.2 (from changelog)

Bugs fixed:

  • Fix an error when using heredoc with non-word delimiters (#987) (Koichi ITO)

3.3.0.1 (from changelog)

Bugs fixed:

  • Supports Ruby 2.0+ runtime (#986) (Koichi ITO)

3.3.0.0 (from changelog)

API modifications:

  • current.rb: mark 3.3 branch as stable (#984) (Ilya Bylich)
  • ruby33.y: extract string_dend (#969) (Ilya Bylich)
  • lexer.rl: treat numparams as locals (#968) (Ilya Bylich)
  • ruby33.y: extract words_sep (#967) (Ilya Bylich)
  • literal.rb: match heredoc identifier from end of line (#965) (Ilya Bylich)
  • ruby33.y: extract {endless_command,endless_arg} rules (#964) (Ilya Bylich)
  • Bump Racc to 1.7.3 (#954) (Koichi ITO)

Features implemented:

  • ruby33.y: reject ambiguous anonymous arguments (#983) (Ilya Bylich)
  • ruby33.y: extract arg_splat rule. (#981) (Ilya Bylich)
  • builder.rb: warn it in a block with no ordinary params. (#980) (Ilya Bylich)
  • builder.rb: extract named captures only from static regexes. (#979) (Ilya Bylich)
  • ruby33.y: accept expr_value in sclass definition. (#978) (Ilya Bylich)
  • ruby33.y: extract p_in_kwarg (#977) (Ilya Bylich)
  • ruby33.y: extract p_assoc and p_in rules (#976) (Ilya Bylich)
  • ruby33.y: reject invalid gvar as symbol (#974) (Ilya Bylich)
  • ruby33.y: properly restore in_defined flag, extract begin_defined rule (#973) (Ilya Bylich)
  • builder.rb: reject multi-char gvar names starting with 0 (#972) (Ilya Bylich)
  • ruby33.y: allow semicolon in parenthesis at the first argument of command call (#971) (Ilya Bylich)
  • ruby33.y: parse qualified const with brace block as a method call (#970) (Ilya Bylich)

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 45 commits:

↗️ regexp_parser (indirect, 2.8.2 → 2.9.0) · Repo · Changelog

Release Notes

2.9.0 (from changelog)

Added

  • all expressions now respond to #negative? / #negated?
    • previously only sets, props, and posix classes did
  • implemented #negative? / #negated? for more applicable expressions
    • \B, \D, \H, \S, \W, (?!...), (?<!...)

Fixed

  • fixed missing support for grapheme cluster break unicode properties
    • e.g. /\p{Grapheme_Cluster_Break=Extend}/

2.8.3 (from changelog)

Fixed

  • fixed scanner errors for insignificant leading zeros in numerical group refs
    • e.g. (a)\k<01>, (a)\g<-01>, (a)?(?(01)b|c)
    • thanks to Markus Schirp for the report

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 11 commits:


Depfu Status

Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.

All Depfu comment commands
@​depfu rebase
Rebases against your default branch and redoes this update
@​depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@​depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@​depfu cancel merge
Cancels automatic merging of this PR
@​depfu close
Closes this PR and deletes the branch
@​depfu reopen
Restores the branch and reopens this PR (if it's closed)
@​depfu pause
Ignores all future updates for this dependency and closes this PR
@​depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@​depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)
depfu[bot] commented 8 months ago

Closed in favor of #531.