Showing 390 of 2,206 total issues
File index.test.tsx
has 294 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React from 'react';
import { suppressPropWarnings } from '#psammead/psammead-test-helpers/src';
import fixture from '../../../../data/pidgin/topics/c95y35941vrt.json';
import mundoFixture from '../../../../data/mundo/topics/c1en6xwmpkvt.json';
import kyrgyzHomePage from '../../../../data/kyrgyz/homePage/index.json';
Function a
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
a = function(e) {
var t = this;
this.getId = function(e) {
return i(t, void 0, void 0, (function() {
var t,
Function t
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function t(t) {
var n = e.call(this) || this;
return n.isTracingEnabled = function() {
return n.context.config.enableXRay
}, n.isSessionRecorded = function() {
File fixture.ts
has 292 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import {
CpsRecommendation,
OptimoRecommendation,
} from '../../../../models/types/onwardJourney';
Function handleSubmit
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const handleSubmit = async (event: FormEvent) => {
event.preventDefault();
setAttemptedSubmitCount(prevCount => prevCount + 1);
// Reset error state
setSubmissionError(null);
File index.jsx
has 291 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React, { useContext } from 'react';
import styled from '@emotion/styled';
import StoryPromo, {
Headline,
Summary,
Function o
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
o = function() {
function e() {
this.state = Int32Array.from(r.INIT),
this.temp = new Int32Array(64),
this.buffer = new Uint8Array(64),
File validateFunctions.test.ts
has 290 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import { FieldData, InvalidMessageCodes } from '../../types';
import validateFunctions from './validateFunctions';
describe('validateFunctions', () => {
describe.each([
Function e
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function e(e) {
var t = this;
this.ChainAnonymousCredentialsProvider = function() {
return _(t, void 0, void 0, (function() {
return O(this, (function(e) {
Function handle
has 73 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 R
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
R = function() {
function e(e) {
var t = this;
this.ChainAnonymousCredentialsProvider = function() {
return k(t, void 0, void 0, (function() {
File withContexts.test.jsx
has 287 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React from 'react';
import { render, act } from '@testing-library/react';
import { ComponentUsingContext } from '#testHelpers/mockComponents';
import getOriginContext from '#contexts/RequestContext/getOriginContext';
import getStatsDestination from '#contexts/RequestContext/getStatsDestination';
File index.test.jsx
has 286 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* eslint-disable no-console */
import React from 'react';
import { render } from '../../../../components/react-testing-library-with-providers';
import latin from '../../../../components/ThemeProvider/fontScripts/latin';
import arabic from '../../../../components/ThemeProvider/fontScripts/arabic';
File index.test.jsx
has 286 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React from 'react';
import * as PAGE_TYPES from '#app/routes/utils/pageTypes';
import userEvent from '@testing-library/user-event';
import Cookies from 'js-cookie';
import {
File index.test.tsx
has 286 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React from 'react';
import { MemoryRouter, Route } from 'react-router-dom';
import { RequestContext, RequestContextProps } from '#contexts/RequestContext';
import { ToggleContext } from '#contexts/ToggleContext';
import {
File index.test.tsx
has 286 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React from 'react';
import { BrowserRouter } from 'react-router-dom';
import { Helmet } from 'react-helmet';
import { data as kyrgyzHomePageData } from '#data/kyrgyz/homePage/index.json';
import { data as afriqueHomePageDataFixture } from '#data/afrique/homePage/index.json';
Function Hn
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Hn = function() {
function e() {
var e = this;
this.commandHandlerMap = {
setAwsCredentials: function(t) {
File ArticlePage.tsx
has 281 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/** @jsx jsx */
import { useContext } from 'react';
import { jsx, useTheme } from '@emotion/react';
import useToggle from '#hooks/useToggle';
Function pe
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
}, pe = function() {
function e(e, t) {
var n = this;
this.events = [],
this.recordPageView = function(e) {
File index.test.js
has 280 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import shouldRender from '.';
const validPortugueseData = {
pageData: {
metadata: {