AugurProject/augur-ui

View on GitHub
integration/helpers/create-markets.ts

Summary

Maintainability
A
3 hrs
Test Coverage

Function createCategoricalMarket has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const createCategoricalMarket = async (outcomeNum: number) => {
  // page.on('console', msg => console.log('PAGE LOG:', msg.text()));
  const currentTimestamp: number = await page.evaluate(() =>
    window.integrationHelpers.getCurrentTimestamp()
  );
Severity: Minor
Found in integration/helpers/create-markets.ts - About 1 hr to fix

    Function createYesNoMarket has 32 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export const createYesNoMarket = async (
      address: string = "",
      settlementFee: number = 0
    ) => {
      // page.on('console', msg => console.log('PAGE LOG:', msg.text()));
    Severity: Minor
    Found in integration/helpers/create-markets.ts - About 1 hr to fix

      Function createScalarMarket has 31 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      export const createScalarMarket = async () => {
        // page.on('console', msg => console.log('PAGE LOG:', msg.text()));
        const currentTimestamp: number = await page.evaluate(() =>
          window.integrationHelpers.getCurrentTimestamp()
        );
      Severity: Minor
      Found in integration/helpers/create-markets.ts - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status