Showing 390 of 2,206 total issues
Function WithContextsContainer
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const WithContextsContainer = props => {
const {
toggles,
bbcOrigin = null,
status = null,
Function quantize
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
quantize: function (h, c) {
if (!h.length || c < 2 || c > 256) return !1;
var f = (function (t) {
var o,
i = new Array(1 << (3 * r));
Function pt
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
}, pt = function(e) {
var t = this;
this.sendFetch = function(e) {
return ut(t, void 0, void 0, (function() {
var t,
Function s
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function s(r, n) {
if (n.count()) {
var o = n.r2 - n.r1 + 1,
i = n.g2 - n.g1 + 1,
u = t.max([o, i, n.b2 - n.b1 + 1]);
Function signRequest
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
}, e.prototype.signRequest = function(e, t) {
var n = void 0 === t ? {} : t,
r = n.signingDate,
o = void 0 === r ? new Date : r,
i = n.signableHeaders,
Function getPageBundleData
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const getPageBundleData = () => {
const main = getBundlesData(
jsFiles.filter(fileName => fileName.startsWith(`${bundleType}.main-`)),
);
const framework = getBundlesData(
File index.test.js
has 266 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import reactRouterConfig from 'react-router-config';
import isAmpPath from '#app/routes/utils/isAmpPath';
import isAppPath from '#app/routes/utils/isAppPath';
import { ERROR_PAGE } from '#app/routes/utils/pageTypes';
import getRouteProps from '.';
File index.test.ts
has 266 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import { Agent } from 'undici';
import * as getOnwardsPageData from '../utils/getOnwardsData';
import * as fetchPageData from '../../utils/fetchPageData';
import nodeLogger from '../../../../testHelpers/loggerMock';
import { BFF_FETCH_ERROR } from '../../../lib/logger.const';
File index.stories.jsx
has 264 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React from 'react';
import { storiesOf } from '@storybook/react';
import { withKnobs, text, boolean, select } from '@storybook/addon-knobs';
import Image from '#psammead/psammead-image/src';
import MediaIndicator from '#psammead/psammead-media-indicator/src';
Function z
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
z = function() {
function e(e) {
this.pluginId = "com.amazonaws.rum.dom-event",
this.eventListenerMap = new Map,
this.config = N(N({}, B), e),
File index.test.tsx
has 263 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import { FetchMock } from 'jest-fetch-mock';
import React from 'react';
import assocPath from 'ramda/src/assocPath';
import pashtoPageData from '#data/pashto/bbc_pashto_tv/tv_programmes/w13xttn4.json';
import * as analyticsUtils from '#lib/analyticsUtils';
File index.jsx
has 262 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React, { useContext } from 'react';
import styled from '@emotion/styled';
import GRID from '#psammead/psammead-grid/src';
import {
GEL_GROUP_2_SCREEN_WIDTH_MAX,
File index.test.tsx
has 262 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React from 'react';
import { RequestContextProvider } from '../../contexts/RequestContext';
import { ToggleContextProvider } from '../../contexts/ToggleContext';
import { data as pidginMostReadData } from '../../../../data/pidgin/mostRead/index.json';
import serbianLatMostReadData from '../../../../data/serbian/mostRead/lat.json';
Function 372
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
372: function(e) {
"use strict";
function t(e) {
return "function" == typeof e
}
Function test
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
it('should be displayed if the toggle is on, and shows the expected number of items', function test() {
cy.fixture(`toggles/${service}.json`).then(toggles => {
const recentEpisodesEnabled = path(
['recentVideoEpisodes', 'enabled'],
toggles,
Function handle
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
return t.prototype.destroy = function() {}, t.prototype.handle = function(t, n) {
var r = (void 0 === n ? {} : n).abortSignal,
o = this.requestTimeout;
if (null == r ? void 0 : r.aborted) {
var i = new Error("Request aborted");
Function Pt
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
}, Pt = function() {
function e(e) {
var t = this;
this.resourceEventListener = function(e) {
var n = [],
File index.test.jsx
has 260 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React from 'react';
import moment from 'moment';
import {
render,
screen,
File translations.ts
has 260 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* eslint-disable camelcase */
export interface Translations {
pagination?: {
page?: string;
previousPage: string;
Function Tn
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Tn = function(e) {
function t() {
var t = e.call(this) || this;
return t.pushState = function() {
var e = t;