unageanu/jiji2

View on GitHub
sample_agents/src/trap_repeat_if_done.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method initialize has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

  def initialize(target_pair, sell_or_buy = :buy, trap_interval_pips = 50,
    trade_units = 1, profit_pips = 100, logger = nil)
Severity: Minor
Found in sample_agents/src/trap_repeat_if_done.rb - About 45 mins to fix

    Method create_mode has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

      def create_mode(target_pair, sell_or_buy,
        trade_units, profit_pips, logger)
    Severity: Minor
    Found in sample_agents/src/trap_repeat_if_done.rb - About 35 mins to fix

      unexpected token tLSHFT (Using Ruby 2.1 parser; configure using TargetRubyVersion parameter, under AllCops)
      Open

          <<~STR

      There are no issues that match your filters.

      Category
      Status