unageanu/jiji2

View on GitHub

Showing 840 of 840 total issues

HTTP Request Smuggling in puma
Open

puma (3.12.0)
Severity: Minor
Found in Gemfile.lock by bundler-audit

Inconsistent Interpretation of HTTP Requests ('HTTP Request Smuggling') in puma
Open

puma (3.12.0)
Severity: Info
Found in Gemfile.lock by bundler-audit

Information Exposure with Puma when used with Rails
Open

puma (3.12.0)
Severity: Critical
Found in Gemfile.lock by bundler-audit

Keepalive Connections Causing Denial Of Service in puma
Open

puma (3.12.0)
Severity: Critical
Found in Gemfile.lock by bundler-audit

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

describe 'EURJPY/買モードの場合' do
let(:logic) do
TrapRepeatIfDone.new(pairs[0], :buy, 40, 10, 80, Logger.new(STDOUT))
end
 
 
Severity: Major
Found in sample_agents/spec/trap_repeat_if_done_spec.rb and 1 other location - About 6 days to fix
sample_agents/spec/trap_repeat_if_done_spec.rb on lines 376..679

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

describe 'EURUSD/売りモードの場合' do
let(:logic) do
TrapRepeatIfDone.new(pairs[1], :sell, 55, 8, 103, Logger.new(STDOUT))
end
 
 
Severity: Major
Found in sample_agents/spec/trap_repeat_if_done_spec.rb and 1 other location - About 6 days to fix
sample_agents/spec/trap_repeat_if_done_spec.rb on lines 68..371

Block has too many lines. [596/25]
Open

describe TrapRepeatIfDone do
include_context 'use agent_setting'
 
let(:position_repository) { container.lookup(:position_repository) }
let(:backtest) { backtests[0] }

Block has too many lines. [347/25]
Open

describe RangeBreakChecker do
include_context 'use agent_setting'
 
let(:pairs) do
[

Block has too many lines. [326/25]
Open

describe StatisticalArbitrage::CointegrationTrader do
include_context 'utils for statistical arbitrage'
 
describe '#process_tick' do
it 'open :buy_aud position if the spread is lower than sd' do

Block has too many lines. [285/25]
Open

describe TrailingStopManager do
include_context 'use agent_setting'
 
let(:builder) { container.lookup(:position_builder) }
let(:repository) { container.lookup(:position_repository) }

Block has too many lines. [261/25]
Open

describe 'EURJPY/買モードの場合' do
let(:logic) do
TrapRepeatIfDone.new(pairs[0], :buy, 40, 10, 80, Logger.new(STDOUT))
end
 
 

Block has too many lines. [261/25]
Open

describe 'EURUSD/売りモードの場合' do
let(:logic) do
TrapRepeatIfDone.new(pairs[1], :sell, 55, 8, 103, Logger.new(STDOUT))
end
 
 

Block has too many lines. [256/25]
Open

it '注文を登録できる' do
mock_securities.seeds = [0, 0.25, 0.41, 0.5]
 
logic.register_orders(broker)
 
 

Block has too many lines. [256/25]
Open

it '注文を登録できる' do
mock_securities.seeds = [0, 0.003, 0.0045, 0.0056]
 
logic.register_orders(broker)
 
 

Block has too many lines. [214/25]
Open

describe '#process_tick' do
it 'open :buy_aud position if the spread is lower than sd' do
broker = double('mock broker')
expect(broker).to receive(:buy)
.with(:AUDJPY, 100)

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

export default class PositionsCard extends AbstractCard {
 
constructor(props) {
super(props);
this.state = {
Severity: Major
Found in sites/src/js/view/components/positions/positions-card.js and 1 other location - About 1 day to fix
sites/src/js/view/components/notifications/notifications-card.js on lines 13..59

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

export default class NotificationsCard extends AbstractCard {
 
constructor(props) {
super(props);
this.state = {
sites/src/js/view/components/positions/positions-card.js on lines 13..59

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

it 'periodの期間、レートがrange_pipsで推移した後、'\
'下に抜けるとレンジブレイクする' do
checker = RangeBreakChecker.new(pairs[0], 60 * 8, 100)
 
# データが不足している状態では ブレイクしない
Severity: Major
Found in sample_agents/spec/range_break_checker_spec.rb and 1 other location - About 1 day to fix
sample_agents/spec/range_break_checker_spec.rb on lines 17..109

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

it 'periodの期間、レートがrange_pipsで推移した後、'\
'上に抜けるとレンジブレイクする' do
checker = RangeBreakChecker.new(pairs[0], 60 * 8, 100)
 
# データが不足している状態では ブレイクしない
Severity: Major
Found in sample_agents/spec/range_break_checker_spec.rb and 1 other location - About 1 day to fix
sample_agents/spec/range_break_checker_spec.rb on lines 111..203

Class has too many lines. [138/100]
Open

class Order
 
include Jiji::Errors
include Jiji::Utils::ValueObject
include Jiji::Web::Transport::Transportable
Severity: Minor
Found in src/jiji/model/trading/order.rb by rubocop
Severity
Category
Status
Source
Language