Showing 3 of 36 total issues
File constants.js
has 269 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import _ from 'lodash';
/**
* Maps `slotCategoryId`'s numerical enum to readable positions.
* @type {object}
Function getDraftInfo
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getDraftInfo({ seasonId, scoringPeriodId = 0 }) {
this.constructor._validateV3Params(seasonId, 'getDraftInfo');
const draftRoute = this.constructor._buildRoute({
base: `${seasonId}/segments/0/leagues/${this.leagueId}`,
Function getFreeAgents
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getFreeAgents({ seasonId, scoringPeriodId }) {
this.constructor._validateV3Params(seasonId, 'getFreeAgents');
const route = this.constructor._buildRoute({
base: `${seasonId}/segments/0/leagues/${this.leagueId}`,