Skip to content

fix error caused by Flog 4.9.0 #548

@aseroff

Description

@aseroff

After updating Flog to 4.9, got this stack trace when running RubyCritic:

FrozenError: can't modify frozen Hash: {all: true, continue: true, methods: true} (FrozenError)
/.gem/ruby/3.4.7/gems/flog-4.9.0/lib/flog.rb:239:in 'Flog#initialize'
/.gem/ruby/3.4.7/gems/rubycritic-4.11.0/lib/rubycritic/analysers/helpers/flog.rb:14:in 'RubyCritic::Flog#initialize'
/.gem/ruby/3.4.7/gems/rubycritic-4.11.0/lib/rubycritic/analysers/smells/flog.rb:16:in 'Class#new'
/.gem/ruby/3.4.7/gems/rubycritic-4.11.0/lib/rubycritic/analysers/smells/flog.rb:16:in 'RubyCritic::Analyser::FlogSmells#initialize'

Here's the update, I suspect it has to do with the parser changing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions