mkreiser/ESPN-Fantasy-Football-API

View on GitHub

Showing 3 of 36 total issues

File constants.js has 269 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import _ from 'lodash';

/**
 * Maps `slotCategoryId`'s numerical enum to readable positions.
 * @type {object}
Severity: Minor
Found in src/constants.js - About 2 hrs to fix

    Function getDraftInfo has 37 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      getDraftInfo({ seasonId, scoringPeriodId = 0 }) {
        this.constructor._validateV3Params(seasonId, 'getDraftInfo');
    
        const draftRoute = this.constructor._buildRoute({
          base: `${seasonId}/segments/0/leagues/${this.leagueId}`,
    Severity: Minor
    Found in src/client/client.js - About 1 hr to fix

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

        getFreeAgents({ seasonId, scoringPeriodId }) {
          this.constructor._validateV3Params(seasonId, 'getFreeAgents');
      
          const route = this.constructor._buildRoute({
            base: `${seasonId}/segments/0/leagues/${this.leagueId}`,
      Severity: Minor
      Found in src/client/client.js - About 1 hr to fix
        Severity
        Category
        Status
        Source
        Language