ruby-concurrency/concurrent-ruby

View on GitHub
lib/concurrent-ruby/concurrent/thread_safe/util/volatile.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method attr_volatile has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        def attr_volatile(*attr_names)
          return if attr_names.empty?
          include(Module.new do
            atomic_ref_setup = attr_names.map {|attr_name| "@__#{attr_name} = Concurrent::AtomicReference.new"}
            initialize_copy_setup = attr_names.zip(atomic_ref_setup).map do |attr_name, ref_setup|
Severity: Minor
Found in lib/concurrent-ruby/concurrent/thread_safe/util/volatile.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status