lazebny/ramda-ruby

View on GitHub
lib/ramda/list.rb

Summary

Maintainability
B
4 hrs
Test Coverage

Showing 3 of 3 total issues

File list.rb has 323 lines of code (exceeds 250 allowed). Consider refactoring.
Open

require_relative 'internal/curried_method'
require_relative 'internal/dispatchable'
require_relative 'internal/transducers'
 
module Ramda
Severity: Minor
Found in lib/ramda/list.rb - About 3 hrs to fix

    Identical blocks of code found in 2 locations. Consider refactoring.
    Open

    xs.reduce(acc) do |loc_acc, x|
    res = f.call(loc_acc, x)
    break res.value if res.is_a?(::Ramda::Internal::Transducers::Transducer) && res.reduced
    res
    Severity: Minor
    Found in lib/ramda/list.rb and 1 other location - About 15 mins to fix
    lib/ramda/list.rb on lines 763..766

    Identical blocks of code found in 2 locations. Consider refactoring.
    Open

    xs.reduce(acc) do |loc_acc, x|
    res = f.call(loc_acc, x)
    break res.value if res.is_a?(::Ramda::Internal::Transducers::Transducer) && res.reduced
    res
    Severity: Minor
    Found in lib/ramda/list.rb and 1 other location - About 15 mins to fix
    lib/ramda/list.rb on lines 541..544

    There are no issues that match your filters.

    Category
    Status