Update rubocop 1.57.2 → 1.58.0 (minor)
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.58.0) · Repo · Changelog
Release Notes
1.58.0
New features
- #12420: Add new
Lint/LiteralAssignmentInCondition
cop. (@koic)- #12353: Add new
Style/SuperWithArgsParentheses
cop. (@koic)- #12406: Add new
Style/ArrayFirstLast
cop. (@fatkodima)Bug fixes
- #12372: Fix a false negative for
Lint/Debugger
when used within method arguments abegin
...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 alignedrescue
indo
-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
andStyle/ArgumentsForwarding
when autocorrection conflicts for anonymous arguments. (@koic)- #12324: Fix an error for
Layout/RescueEnsureAlignment
when usingrescue
indo
...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
whenlambda
(->
) ending withreturn
. (@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
withLayout/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 ofTempfile.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 forLayout/SpaceAroundOperators
. (@koic)- #12296: Support
RedundantRestArgumentNames
,RedundantKeywordRestArgumentNames
, andRedundantBlockArgumentNames
options forStyle/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.0) · Repo · Changelog
Release Notes
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
- Call
super
inincluded
hook by @paracycle in #486- Rename escape_slash in script_safe and also escape E+2028 and E+2029 by @casperisfine in #525
- Add a
strict
option to Generator by @casperisfine in #519Fixed
- Fix homepage url in gemspec by @unasuke in #508
- Fix dead link to Ragel in README by @okuramasafumi in #509
- [DOC] Fix yet another dead link to Ragel by @nobu in #510
- Fix "unexpected token" offset for Infinity by @jhawthorn in #507
- Use ruby_xfree to free buffers by @casperisfine in #518
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
- @unasuke made their first contribution in #508
- @okuramasafumi made their first contribution in #509
- @r7kamura made their first contribution in #520
- @MSP-Greg made their first contribution in #491
- @paracycle made their first contribution in #486
- @dalizard made their first contribution in #530
- @aeroastro made their first contribution in #536
- @jhawthorn made their first contribution in #507
- @lucaskanashiro made their first contribution in #506
- @Watson1978 made their first contribution in #454
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.
↗ ️ racc (indirect, 1.7.1 → 1.7.3) · Repo · Changelog
Release Notes
1.7.3
What's Changed
- Exclude CRuby extension from JRuby gem by @nobu in #244
- Fix for dummy rake/extensiontask.rb at ruby test-bundled-gems by @nobu in #245
- Fix jar file path by @nobu in #246
- Bump by @nobu in #247
- Add
srcs
target to prepare to build by @nobu in #248- Make CI runnable for any push by @yui-knk in #249
- Check
rake build
on CI by @yui-knk in #250- Bump up v1.7.3.pre.1 by @yui-knk in #251
- Fix locations of
expect
param in docs by @yui-knk in #252- 'lib/racc/parser-text.rb' depends on 'lib/racc/info.rb' by @yui-knk in #253
- Bump up v1.7.3 by @yui-knk in #254
Full Changelog: v1.7.2...v1.7.3
1.7.2
What's Changed
- Update parser.rb, fixed typo by @jwillemsen in #224
- Remove leading newline from on_error exception messages. by @zenspider in #226
- Add --frozen to add frozen_string_literals to top of generated files. by @zenspider in #225
- Update development dependency to avoid ruby 2.5 failures by @flavorjones in #228
- dep: pin development dependencies, and enable dependabot for gems by @flavorjones in #229
- Clean embedded pragmas by @nobu in #230
- Embed grammar file name into generated file by @yui-knk in #231
- Bump actions/checkout from 3 to 4 by @dependabot in #232
- Fix a typo by @yui-knk in #234
- Add "Release flow" to README.rdoc by @yui-knk in #235
- Prepare 1.7.2 by @nobu in #236
- Remove install guide by setup.rb by @yui-knk in #237
- Fix tiny typos by @makenowjust in #238
- Remove old checks by @nobu in #240
- Remove MANIFEST which was used by ancient extmk.rb by @nobu in #242
- Extract Racc::VERSION from racc/info.rb at extconf.rb by @nobu in #241
- Use prototype declarations by @nobu in #243
- Bump up v1.7.2 by @yui-knk in #239
New Contributors
- @makenowjust made their first contribution in #238
Full Changelog: v1.7.1...v1.7.2
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by 67 commits:
Merge pull request #254 from yui-knk/v1.7.3
Bump up v1.7.3
Merge pull request #253 from yui-knk/add_dependency
'lib/racc/parser-text.rb' depends on 'lib/racc/info.rb'
Merge pull request #252 from yui-knk/fix_doc_expect_param
Fix locations of `expect` param in docs
Merge pull request #251 from yui-knk/v1.7.3.pre.1
Bump up v1.7.3.pre.1
Merge pull request #250 from yui-knk/test_rake_compile_build
Check `rake build` on CI
Merge pull request #249 from yui-knk/always_run_ci
Merge pull request #248 from nobu/srcs
Make CI runnable for any push
Add `srcs` target to prepare to build
Make reproducible
Merge pull request #247 from nobu/bump
Update test-unit-ruby-core for ruby 2.5
Prepare 1.7.3
Add recipe to update RACC_VERSION in Cparse.java
Merge pull request #246 from nobu/jruby-extdir
Fix jar file path
Merge pull request #245 from nobu/ruby-test
Fix for dummy rake/extensiontask.rb at ruby test-bundled-gems
Merge pull request #244 from nobu/cruby-ext
Exclude CRuby extension from JRuby gem
Merge pull request #239 from yui-knk/v1.7.2
Merge pull request #243 from nobu/protoize
Use prototype declarations
Bump up v1.7.2
Merge pull request #241 from nobu/info_version
Merge pull request #242 from nobu/manifest
[DOC] Update release flow
Remove MANIFEST which was used by ancient extmk.rb
Extract Racc::VERSION from racc/info.rb at extconf.rb
Merge pull request #240 from nobu/old-checks
Remove fallback code
Remove old checks
Rename CI file since it is not only Ubuntu now [ci skip]
Merge pull request #238 from makenowjust/typos
Fix tiny typos
Merge pull request #237 from yui-knk/remove_install_guide_via_setup_rb
Remove install guide by setup.rb
Merge pull request #236 from nobu/bump-up
Start 1.7.2
Update `Gem::Specification#files`
Merge pull request #235 from yui-knk/readme_release-flow
Add "Release flow" to README.rdoc
Merge pull request #234 from yui-knk/fix_typo
Fix a typo
Merge pull request #232 from ruby/dependabot/github_actions/actions/checkout-4
Bump actions/checkout from 3 to 4
Merge pull request #231 from yui-knk/embed_grammar_file_name_into_generated_file
Embed grammar file name into generated file
Merge pull request #230 from nobu/embedded-pragmas
Remove frozen_string_literal pragmas from embedded runtime files
Stop littering platform-independent directory with platform-dependent bianries
Merge pull request #229 from ruby/flavorjones-pin-dev-dependencies
dep: pin development dependencies, and enable dependabot for gems
Merge pull request #228 from ruby/flavorjones-work-around-rake-compiler-ruby-2.5
Update development dependency to avoid ruby 2.5 failures
Merge pull request #225 from zenspider/zenspider/frozen_string_literals
Merge pull request #226 from zenspider/zenspider/newline
Remove NEWS files since they've not been updated in quite some time
Add --frozen to add frozen_string_literals to top of generated files.
Remove leading newline from on_error exception messages.
Merge pull request #224 from jwillemsen/patch-4
Update parser.rb, fixed typo
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)