Showing 390 of 2,206 total issues

File fixtures.ts has 669 lines of code (exceeds 250 allowed). Consider refactoring.
Open

export const uploader = [
  {
    id: '2488a6c7',
    type: 'aresUploader',
    model: {
Severity: Major
Found in src/app/components/Embeds/Uploader/fixtures.ts - About 1 day to fix

    File ru.test.js has 668 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    import moment from 'moment';
    import './ru';
    
    moment.locale('ru');
    
    
    Severity: Major
    Found in src/app/legacy/psammead/psammead-locales/moment/ru.test.js - About 1 day to fix

      File preview.tsx has 668 lines of code (exceeds 250 allowed). Consider refactoring.
      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';
      Severity: Major
      Found in .storybook/preview.tsx - About 1 day to fix

        File fixtureData.ts has 667 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        const pidginPageData = {
          content: {
            model: {
              blocks: [
                {
        Severity: Major
        Found in src/app/pages/MediaArticlePage/fixtureData.ts - About 1 day to fix

          File fixtures.ts has 611 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          const chartEmbedImages = {
            blocks: [
              {
                type: 'image',
                model: {
          Severity: Major
          Found in src/app/components/Embeds/EmbedImages/fixtures.ts - About 1 day to fix

            File index.test.jsx has 601 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            /* eslint-disable no-console */
            
            import React from 'react';
            import {
              renderHook,
            Severity: Major
            Found in src/app/hooks/useViewTracker/index.test.jsx - About 1 day to fix

              File fixtures.ts has 585 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              export const samplePost = {
                typeCode: null,
                header: {
                  model: {
                    blocks: [
              Severity: Major
              Found in src/app/lib/seoUtils/getLiveBlogPostingSchema/fixtures.ts - About 1 day to fix

                File fixture.ts has 585 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                export const samplePost = {
                  typeCode: null,
                  header: {
                    model: {
                      blocks: [
                Severity: Major
                Found in ws-nextjs-app/pages/[service]/live/[id]/Post/fixture.ts - About 1 day to fix

                  File index.test.ts has 583 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  import { Environments, Services } from '#app/models/types/global';
                  import getStatsDestination from '.';
                  
                  describe('getStatsDestination', () => {
                    const testScenarios = [
                  Severity: Major
                  Found in src/app/contexts/RequestContext/getStatsDestination/index.test.ts - About 1 day to fix

                    File ta.test.js has 578 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    import moment from 'moment';
                    import './ta';
                    
                    moment.locale('ta');
                    
                    
                    Severity: Major
                    Found in src/app/legacy/psammead/psammead-locales/moment/ta.test.js - About 1 day to fix

                      File fixtureData.js has 574 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      import {
                        blockContainingText,
                        singleTextBlock,
                        textBlock,
                      } from '#models/blocks';
                      Severity: Major
                      Found in src/app/components/OptimizelyRecommendations/fixtureData.js - About 1 day to fix

                        File pa-in.test.js has 558 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        import moment from 'moment';
                        import './pa-in';
                        
                        moment.locale('pa-in');
                        
                        
                        Severity: Major
                        Found in src/app/legacy/psammead/psammead-locales/moment/pa-in.test.js - About 1 day to fix

                          File index.test.jsx has 556 lines of code (exceeds 250 allowed). Consider refactoring.
                          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';
                          Severity: Major
                          Found in src/app/legacy/containers/IndexPageSection/index.test.jsx - About 1 day to fix

                            File index.test.js has 548 lines of code (exceeds 250 allowed). Consider refactoring.
                            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

                              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';
                              Severity: Major
                              Found in src/app/lib/analyticsUtils/index.js - About 1 day to fix

                                File index.test.js has 522 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                import injectCspHeader from '.';
                                
                                import {
                                  generateChildSrc,
                                  generateConnectSrc,
                                Severity: Major
                                Found in src/server/utilities/cspHeader/index.test.js - About 1 day to fix

                                  File index.test.js has 520 lines of code (exceeds 250 allowed). Consider refactoring.
                                  Open

                                  import { matchPath } from 'react-router-dom';
                                  import {
                                    articleDataPath,
                                    articleManifestPath,
                                    articlePath,
                                  Severity: Major
                                  Found in src/app/routes/utils/regex/index.test.js - About 1 day to fix

                                    Function 238 has 209 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                                238: function(e, t, n) {
                                                    var r;
                                                    !function(o, i) {
                                                        "use strict";
                                                        var s = "function",
                                    Severity: Major
                                    Found in public/vendor/cwr.js - About 1 day to fix

                                      File storyRowsSplitter.test.jsx has 515 lines of code (exceeds 250 allowed). Consider refactoring.
                                      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

                                        import React from 'react';
                                        import styled from '@emotion/styled';
                                        import moment from 'moment';
                                        import { storiesOf } from '@storybook/react';
                                        import {
                                        Severity: Minor
                                        Found in src/app/lib/utilities/moment/index.stories.jsx - About 7 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language