src/jiji/model/securities/internal/virtual/ordering.rb
Assignment Branch Condition size for modify_order is too high. [17.97/15] Open
Open
def modify_order(internal_id, options = {})
options = Converter.convert_option_to_oanda(options)
order = find_order_by_internal_id(internal_id)
validate_modify_order_request(order, options)
MODIFIABLE_PROPERTIES.each do |key|
- Read upRead up
- Exclude checks
This cop checks that the ABC size of methods is not higher than the configured maximum. The ABC size is based on assignments, branches (method calls), and conditions. See http://c2.com/cgi/wiki?AbcMetric
Method order
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def order(pair_name, sell_or_buy, units, type = :market, options = {})
Method create_order
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def create_order(pair_name, sell_or_buy, units, type, options)
Method resolve_price
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def resolve_price(type, pair_name, sell_or_buy, options, tick)
Line is too long. [94/80] Open
Open
new_value = (order.method(snaked).call || {}).merge(new_value) if new_value.is_a? Hash
- Exclude checks
Line is too long. [111/80] Open
Open
order.method("#{snaked}=").call(Converter.convert_option_value_from_oanda(key, new_value)) if new_value
- Exclude checks
Line is too long. [90/80] Open
Open
options = order.collect_properties_for_modify.merge(options).with_indifferent_access
- Exclude checks