Showing 390 of 2,206 total issues
File fixtures.ts
has 669 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
export const uploader = [
{
id: '2488a6c7',
type: 'aresUploader',
model: {
File ru.test.js
has 668 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import moment from 'moment';
import './ru';
moment.locale('ru');
File preview.tsx
has 668 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React, { useEffect } from 'react';
import { Global } from '@emotion/react';
import isChromatic from 'chromatic/isChromatic';
import { forceVisible } from 'react-lazyload';
import { Preview } from '@storybook/react';
File fixtureData.ts
has 667 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
const pidginPageData = {
content: {
model: {
blocks: [
{
File fixtures.ts
has 611 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
const chartEmbedImages = {
blocks: [
{
type: 'image',
model: {
File index.test.jsx
has 601 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* eslint-disable no-console */
import React from 'react';
import {
renderHook,
File fixtures.ts
has 585 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
export const samplePost = {
typeCode: null,
header: {
model: {
blocks: [
File fixture.ts
has 585 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
export const samplePost = {
typeCode: null,
header: {
model: {
blocks: [
File index.test.ts
has 583 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import { Environments, Services } from '#app/models/types/global';
import getStatsDestination from '.';
describe('getStatsDestination', () => {
const testScenarios = [
File ta.test.js
has 578 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import moment from 'moment';
import './ta';
moment.locale('ta');
File fixtureData.js
has 574 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import {
blockContainingText,
singleTextBlock,
textBlock,
} from '#models/blocks';
File pa-in.test.js
has 558 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import moment from 'moment';
import './pa-in';
moment.locale('pa-in');
File index.test.jsx
has 556 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React from 'react';
import { render } from '@testing-library/react';
import { ToggleContextProvider } from '#contexts/ToggleContext';
import * as SectionLabel from '#psammead/psammead-section-label/src';
import { shouldMatchSnapshot } from '#psammead/psammead-test-helpers/src';
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';
File index.test.js
has 522 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import injectCspHeader from '.';
import {
generateChildSrc,
generateConnectSrc,
File index.test.js
has 520 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import { matchPath } from 'react-router-dom';
import {
articleDataPath,
articleManifestPath,
articlePath,
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 {