Showing 162 of 551 total issues
Function render
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {
loginID,
currency,
turnover,
Function internalTradeModelToChartTradeModel
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const internalTradeModelToChartTradeModel = tradeObj => {
const {
amount,
basis,
type,
Function render
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { email, salutation, first_name, last_name, date_of_birth, country, loginid } = this.props;
const fullName = first_name ? salutation + ' ' + first_name + ' ' + last_name : 'N/A';
const dob = date_of_birth ? epochToDateString(date_of_birth) : 'N/A';
const isVirtual = /VR/i.test(loginid);
Function render
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { tradeParams, index, contract } = this.props;
const { dropdownShown } = this.state;
const selectedType = getInternalTradeType(tradeParams);
return (
Function render
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { errors } = this.state;
const { tradingTimes, tradingTimesFilter } = this.props;
const filter = tradingTimesFilter.filter;
const tradingTimesDate = tradingTimesFilter.date;
Function render
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { tradesCount, layoutN } = this.props;
const { dropdownShown } = this.state;
return (
Function render
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { contract, digits } = this.props;
const backendFailure = openContractSubscriptionFailed(contract);
if (backendFailure) return null;
Function render
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { trades } = this.props;
const { id } = this.props.params;
const { query } = this.props.location;
const currency = query.currency;
Function constructor
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor(props) {
super(props);
this.state = {
progress: false,
Function render
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { marketTree, allOptionShown, showMarkets, value } = this.props;
const markets = Object.keys(marketTree)
.filter(market => !(showMarkets && showMarkets.includes(marketTree[market].display_name)));
Function render
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { email, serverError, progress, validatedOnce } = this.state;
this.emailIsValid = isValidEmail(email);
return (
Function constructor
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor(props) {
super(props);
this.state = {
hasError: false,
progress: false,
Function getTicksByCount
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(dispatch, getState) => {
const { ticks } = getState();
if (subscribe && !ticks.get(symbol)) {
return api
.getTickHistory(symbol, { end: 'latest', count, adjust_start_time: 1, subscribe: 1 })
Function render
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { compact, contract, pipSize } = this.props;
if (!contract) return null;
return (
Function render
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { times } = this.props;
const compact = isMobile();
return (
Function render
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
return (
<table>
<thead>
<tr>
Function tradeCreation
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function* tradeCreation(action) {
const { index, symbol } = action;
// unsubscribe and remove existing proposal
yield put(unsubscribeProposal(index));
Function render
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { contract, showLongcode, onTradeAgainClicked } = this.props;
const backendFailure = openContractSubscriptionFailed(contract);
return (backendFailure ?
Function render
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { contract } = this.props;
// exit_tick_time is not return for contract that exit earlier
// eg. TOUCH and EndsINOut
Function render
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { tradeMode } = this.props;
const tabsBtnClasses = classNames({
'btn-secondary ': true,