standardrb / standard

Ruby's bikeshed-proof linter and formatter 🚲
Other
2.68k stars 208 forks source link

Infinite loop detected in /Users/dorianmariefr/src/pipelines/a.rb and caused by Layout/ArrayAlignment, Layout/AssignmentIndentation #517

Open dorianmariecom opened 1 year ago

dorianmariecom commented 1 year ago

Hi,

I found an error in standardrb with this code:

config.cache_store =
    :redis_cache_store,
    {url: ENV.fetch("REDIS_URL", "redis://localhost:6379")}

standardrb v1.22.1

koic commented 1 year ago

This is a RuboCop's bug. I've opened https://github.com/rubocop/rubocop/pull/11537 to solve the error.

zhengpd commented 4 months ago

@koic Infinite loop error with following code:

cask "squirrel" do
  uninstall pkgutil: [
    "com.googlecode.rimeime.Squirrel.pkg", # Package name of older versions (< 0.10.0)
    "im.rime.inputmethod.Squirrel"
            ],
    delete: "/Library/Input Methods/Squirrel.app"
end
koic commented 4 months ago

@zhengpd Thanks for the feedback. I've opened https://github.com/rubocop/rubocop/pull/12877 to solve the infinite loop error.