Showing 416 of 2,642 total issues
File index.test.js
has 548 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import { data as serbianFrontPageData } from '#data/serbian/frontpage/lat.json';
import { data as urduFrontPageData } from '#data/urdu/frontpage/index.json';
import {
PHOTO_GALLERY_PAGE,
MEDIA_ASSET_PAGE,
File index.js
has 534 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import Cookie from 'js-cookie';
import { v4 as uuid } from 'uuid';
import pathOr from 'ramda/src/pathOr';
import path from 'ramda/src/path';
import Url from 'url-parse';
Function 238
has 209 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
238: function(e, t, n) {
var r;
!function(o, i) {
"use strict";
var s = "function",
File storyRowsSplitter.test.jsx
has 515 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import range from 'ramda/src/range';
import getRows from './storyRowsSplitter';
const numberOfStories = {
0: {
File index.stories.jsx
has 497 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React from 'react';
import styled from '@emotion/styled';
import moment from 'moment';
import { storiesOf } from '@storybook/react';
import {
File languages.page.tsx
has 483 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import Head from 'next/head';
import * as React from 'react';
import { GetStaticProps } from 'next';
import { STATIC_PAGE } from '#app/routes/utils/pageTypes';
import ChartbeatAnalytics from '#app/components/ChartbeatAnalytics';
File launchDates.js
has 482 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
const launchDates = {
afaanoromoo: {
articles: 'Sept 2019',
frontPage: '5th Feb 2020',
liveRadio: '30th Sept 2019',
File text-variants.ts
has 481 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import { Services, Variants } from '#app/models/types/global';
type TextVariant = {
text: string;
longText: string;
File theming.ts
has 480 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
export interface BrandPalette {
BRAND_BACKGROUND: string;
BRAND_LOGO: string;
BRAND_FOREGROUND: string;
BRAND_HIGHLIGHT: string;
File index.test.jsx
has 471 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React from 'react';
import { render, cleanup } from '@testing-library/react';
import deepClone from 'ramda/src/clone';
import loggerMock from '#testHelpers/loggerMock';
import { MEDIA_MISSING } from '#lib/logger.const';
File ar.test.js
has 463 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import moment from 'moment';
import './ar';
moment.locale('ar');
File uk.test.js
has 456 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import moment from 'moment';
import './uk';
moment.locale('uk');
File mr.test.js
has 451 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import moment from 'moment';
import './mr';
moment.locale('mr');
File index.test.jsx
has 451 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React from 'react';
import assocPath from 'ramda/src/assocPath';
import { StaticRouter } from 'react-router-dom';
import { RequestContextProvider } from '#contexts/RequestContext';
import pashtoPageData from '#data/pashto/bbc_pashto_radio/w3ct0lz1';
File fixtureData.ts
has 451 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
const pidginPageData = {
content: {
model: {
blocks: [
{
File index.test.jsx
has 439 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* eslint-disable jsx-a11y/click-events-have-key-events */
/* eslint-disable jsx-a11y/no-static-element-interactions */
import React from 'react';
import userEvent from '@testing-library/user-event';
import { waitFor } from '@testing-library/dom';
File fixtureData.js
has 438 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import { MEDIA_ASSET_PAGE, STORY_PAGE } from '#app/routes/utils/pageTypes';
import relItems from '../IndexAlsos/relatedItems';
export const completeItem = {
headlines: {
File hi.test.js
has 432 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* eslint-disable */
import moment from 'moment';
import './hi';
moment.locale('hi');
File sr-cyrl.test.js
has 432 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import moment from 'moment';
import './sr-cyrl';
moment.locale('sr-cyrl');
File sr.test.js
has 432 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import moment from 'moment';
import './sr';
moment.locale('sr');