ruby-concurrency/thread_safe

View on GitHub
lib/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} = ThreadSafe::Util::AtomicReference.new"}
          initialize_copy_setup = attr_names.zip(atomic_ref_setup).map do |attr_name, ref_setup|
Severity: Minor
Found in lib/thread_safe/util/volatile.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status