Showing 529 of 1,757 total issues
Function componentWillReceiveProps
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
componentWillReceiveProps(nextProps) {
const {
orderEthEstimate,
orderShareEstimate,
selectedNav,
Function render
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {
id,
description,
linkPath,
Function render
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { switchUniverse, universe } = this.props;
const { parent, currentLevel, children } = this.state.universesInfo;
return (
Function render
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { highestBlock, lastProcessedBlock, isLogged } = this.props;
const s = this.state;
const highestBlockBn = createBigNumber(highestBlock);
const lastProcessedBlockBn = createBigNumber(lastProcessedBlock);
Function drawDepth
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
drawDepth(options) {
if (this.depthChart) {
const {
marketDepth,
orderBookKeys,
File migrate-rep-form.jsx
has 285 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* eslint jsx-a11y/label-has-for: 0 */
import React, { Component } from "react";
import PropTypes from "prop-types";
import classNames from "classnames";
File reporting-payouts.jsx
has 284 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React, { Component } from "react";
import PropTypes from "prop-types";
import classNames from "classnames";
import ReactTooltip from "react-tooltip";
import { formatAttoRep } from "utils/format-number";
Function default
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function(
market,
disputeStakes,
newOutcomeDisputeBond,
forkThreshold
Function render
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { outcomes, marketId, isMobile, isMobileSmall } = this.props;
const numShown =
isMobile && !isMobileSmall ? NUM_CELLS_SHOWN_MOBILE : NUM_CELLS_SHOWN;
Function render
has 69 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {
claimTradingProceeds,
closedMarkets,
currentTimestamp,
Function constructor
has 69 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor(props) {
super(props);
this.state = {
mainMenu: { scalar: 0, open: false, currentTween: null },
Function render
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const s = this.state;
return (
<section className={Styles.DerivationPathEditor}>
Function render
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {
currentTime,
doesUserHaveRep,
marginLeft,
Function render
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {
isExtendedDisplay,
isMobile,
outcomeName,
Consider simplifying this complex logical expression. Open
Open
if (!assembledMarketsCache[marketId]) {
assembledMarketsCache[marketId] = memoize(
(
marketId,
marketData,
Function pollForAccount
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function pollForAccount(dispatch, getState, callback) {
const { loginAccount } = getState();
let accountType =
loginAccount && loginAccount.meta && loginAccount.meta.accountType;
Function loadUniverseInfo
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function loadUniverseInfo(callback = logError) {
return (dispatch, getState) => {
const { universe, loginAccount, marketsData } = getState();
const universeId = universe.id || UNIVERSE_ID;
Function default
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function(reportableOutcomes, forkMigrationTotals) {
const invalidMarketId = "0.5";
const topOutcomes = 8;
if (
Function default
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function(marketsData = DEFAULT_STATE, action) {
switch (action.type) {
case UPDATE_MARKETS_DATA: // TODO -- allow for the consumption of partial market objects
return {
...marketsData,
Function render
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {
doesUserHaveRep,
forkEndTime,
history,