Showing 16 of 16 total issues
Similar blocks of code found in 3 locations. Consider refactoring. Open
class Function class Numeric # A class representing a subtraction function class Subtraction < Numeric
- Read upRead up
Similar blocks of code found in 3 locations. Consider refactoring. Open
class Function class Numeric # A class representing a multiplication function class Multiplication < Numeric
- Read upRead up
Similar blocks of code found in 3 locations. Consider refactoring. Open
class Function class Numeric # A class representing an addition function class Addition < Numeric
- Read upRead up
Similar blocks of code found in 2 locations. Consider refactoring. Open
class Function class Numeric # A class representing a unary minus function class UnaryMinus < Numeric
- Read upRead up
Similar blocks of code found in 2 locations. Consider refactoring. Open
class Function class Numeric # A class representing a unary plus function class UnaryPlus < Numeric
- Read upRead up
Method coerce
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def self.coerce(object) if object.kind_of?(Attribute) object elsif equal?(Attribute) Object.coerce(object)
- Read upRead up
Method initialize
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def initialize(_name, options = EMPTY_HASH) super min, max = options.values_at(:minimum_length, :maximum_length) return unless min || max @type = type.new do
- Read upRead up
Similar blocks of code found in 2 locations. Consider refactoring. Open
class Relation module Operation # A class representing a deletion from a relation class Deletion < Relation
- Read upRead up
Similar blocks of code found in 2 locations. Consider refactoring. Open
class Relation module Operation # A class representing an insertion into a relation class Insertion < Relation
- Read upRead up
Similar blocks of code found in 4 locations. Consider refactoring. Open
class Function class Predicate # A predicate representing a greater than test between operands class GreaterThan < Predicate
- Read upRead up
Similar blocks of code found in 3 locations. Consider refactoring. Open
each_count do |array, relation, count| relation = relation.sort_by { |r| [r.id, r.name] } gc_statistics "last (#{count} tuples)" do relation.last(count).each {}
- Read upRead up
Similar blocks of code found in 3 locations. Consider refactoring. Open
each_count do |array, relation, count| relation = relation.sort_by { |r| [r.id, r.name] } gc_statistics "first (#{count} tuples)" do relation.first(count).each {}
- Read upRead up
Similar blocks of code found in 3 locations. Consider refactoring. Open
each_count do |array, relation, count| relation = relation.sort_by { |r| [r.id, r.name] } gc_statistics "take (#{count} tuples)" do relation.take(count).each {}
- Read upRead up
Similar blocks of code found in 4 locations. Consider refactoring. Open
class Function class Predicate # A predicate representing a less than test between operands class LessThan < Predicate
- Read upRead up
Similar blocks of code found in 4 locations. Consider refactoring. Open
class Function class Predicate # A predicate representing a less than or equal to test between operands class LessThanOrEqualTo < Predicate
- Read upRead up
Similar blocks of code found in 4 locations. Consider refactoring. Open
class Function class Predicate # A predicate representing a greater than or equal to test between operands class GreaterThanOrEqualTo < Predicate
- Read upRead up