Showing 390 of 2,206 total issues

themes has 45 functions (exceeds 20 allowed). Consider refactoring.
Open

export const themes = {
  afaanoromoo: loadable(
    () => import(/* webpackChunkName: "themes-afaanoromoo" */ './afaanoromoo'),
  ),
  afrique: loadable(
Severity: Minor
Found in src/app/components/ThemeProvider/themes/loadableConfig.ts - About 6 hrs to fix

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

    import moment from 'moment';
    import './es';
    
    moment.locale('es');
    
    
    Severity: Minor
    Found in src/app/legacy/psammead/psammead-locales/moment/es.test.js - About 6 hrs to fix

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

      import moment from 'moment';
      import './sw';
      
      moment.locale('sw');
      
      
      Severity: Minor
      Found in src/app/legacy/psammead/psammead-locales/moment/sw.test.js - About 6 hrs to fix

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

        /* eslint-disable no-console */
        import React from 'react';
        import { suppressPropWarnings } from '#psammead/psammead-test-helpers/src';
        import {
          render,
        Severity: Minor
        Found in src/app/legacy/psammead/psammead-social-embed/src/index.test.jsx - About 6 hrs to fix

          Function bn has 149 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                      bn = function(e) {
                          function t(t) {
                              var n = e.call(this) || this;
                              return n.addXRayTraceIdHeader = function() {
                                  return n.config.addXRayTraceIdHeader
          Severity: Major
          Found in public/vendor/cwr.js - About 5 hrs to fix

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

            import moment from 'moment';
            import './az';
            
            moment.locale('az');
            
            
            Severity: Minor
            Found in src/app/legacy/psammead/psammead-locales/moment/az.test.js - About 5 hrs to fix

              File en-gb.test.js has 412 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              import moment from 'moment';
              import './en-gb';
              
              moment.locale('en-gb');
              
              
              Severity: Minor
              Found in src/app/legacy/psammead/psammead-locales/moment/en-gb.test.js - About 5 hrs to fix

                File zh-tw.test.js has 411 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                import moment from 'moment';
                import './zh-tw';
                
                moment.locale('zh-tw');
                
                
                Severity: Minor
                Found in src/app/legacy/psammead/psammead-locales/moment/zh-tw.test.js - About 5 hrs to fix

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

                  import moment from 'moment';
                  import './uz';
                  
                  moment.locale('uz');
                  
                  
                  Severity: Minor
                  Found in src/app/legacy/psammead/psammead-locales/moment/uz.test.js - About 5 hrs to fix

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

                    import moment from 'moment';
                    import './pcm';
                    
                    moment.locale('pcm');
                    
                    
                    Severity: Minor
                    Found in src/app/legacy/psammead/psammead-locales/moment/pcm.test.js - About 5 hrs to fix

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

                      import moment from 'moment';
                      import './ig';
                      
                      moment.locale('ig');
                      
                      
                      Severity: Minor
                      Found in src/app/legacy/psammead/psammead-locales/moment/ig.test.js - About 5 hrs to fix

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

                        import moment from 'moment';
                        import './ky';
                        
                        moment.locale('ky');
                        
                        
                        Severity: Minor
                        Found in src/app/legacy/psammead/psammead-locales/moment/ky.test.js - About 5 hrs to fix

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

                          import moment from 'moment';
                          import './yo';
                          
                          moment.locale('yo');
                          
                          
                          Severity: Minor
                          Found in src/app/legacy/psammead/psammead-locales/moment/yo.test.js - About 5 hrs to fix

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

                            import React from 'react';
                            import { JSDOM } from 'jsdom';
                            
                            import {
                              render,
                            Severity: Minor
                            Found in src/app/components/Image/index.test.tsx - About 5 hrs to fix

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

                              import range from 'ramda/src/range';
                              import {
                                getAllowedItems,
                                removeFirstSlotRadioBulletin,
                                removeTVBulletinsIfNotAVLiveStream,

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

                                import moment from 'moment';
                                import './si';
                                
                                moment.locale('si');
                                
                                
                                Severity: Minor
                                Found in src/app/legacy/psammead/psammead-locales/moment/si.test.js - About 5 hrs to fix

                                  File live.test.tsx has 380 lines of code (exceeds 250 allowed). Consider refactoring.
                                  Open

                                  import React from 'react';
                                  import { Helmet } from 'react-helmet';
                                  
                                  import {
                                    render,
                                  Severity: Minor
                                  Found in ws-nextjs-app/pages/[service]/live/[id]/live.test.tsx - About 5 hrs to fix

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

                                    import React from 'react';
                                    import { BrowserRouter } from 'react-router-dom';
                                    import { RequestContextProvider } from '#contexts/RequestContext';
                                    import { ToggleContext } from '#contexts/ToggleContext';
                                    import { FRONT_PAGE } from '#app/routes/utils/pageTypes';
                                    Severity: Minor
                                    Found in src/app/components/Ad/index.test.tsx - About 5 hrs to fix

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

                                      import moment from 'moment';
                                      import './th';
                                      
                                      moment.locale('th');
                                      
                                      
                                      Severity: Minor
                                      Found in src/app/legacy/psammead/psammead-locales/moment/th.test.js - About 4 hrs to fix

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

                                        import moment from 'moment';
                                        import './ur';
                                        
                                        moment.locale('ur');
                                        
                                        
                                        Severity: Minor
                                        Found in src/app/legacy/psammead/psammead-locales/moment/ur.test.js - About 4 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language