Showing 390 of 2,206 total issues

Function de has 67 lines of code (exceeds 25 allowed). Consider refactoring.
Open

            }(), de = function() {
                function e(e, t) {
                    this.config = e,
                    this.record = t,
                    this.page = void 0,
Severity: Major
Found in public/vendor/cwr.js - About 2 hrs to fix

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

    import assocPath from 'ramda/src/assocPath';
    import * as fetchPageData from '../../utils/fetchPageData';
    import getInitialData from '.';
    import { TOPIC_PAGE } from '../../utils/pageTypes';
    
    
    Severity: Minor
    Found in src/app/routes/topic/getInitialData/index.test.js - About 2 hrs to fix

      Function WithContexts has 66 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      const WithContexts = Component => {
        const WithContextsContainer = props => {
          const {
            toggles,
            bbcOrigin = null,
      Severity: Major
      Found in src/app/legacy/containers/PageHandlers/withContexts.jsx - About 2 hrs to fix

        Function NavigationContainer has 66 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        const NavigationContainer = () => {
          const { isAmp } = useContext(RequestContext);
        
          const { script, translations, navigation, service, dir } =
            useContext(ServiceContext);
        Severity: Major
        Found in src/app/legacy/containers/Navigation/index.jsx - About 2 hrs to fix

          Function e has 65 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                          function e(e) {
                              var t = this;
                              this.ChainAnonymousCredentialsProvider = function() {
                                  return k(t, void 0, void 0, (function() {
                                      return L(this, (function(e) {
          Severity: Major
          Found in public/vendor/cwr.js - About 2 hrs to fix

            Function a has 65 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                        function a(i) {
                            return function(a) {
                                return function(i) {
                                    if (n)
                                        throw new TypeError("Generator is already executing.");
            Severity: Major
            Found in public/vendor/cwr.js - About 2 hrs to fix

              Function a has 65 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                                  function a(i) {
                                      return function(a) {
                                          return function(i) {
                                              if (n)
                                                  throw new TypeError("Generator is already executing.");
              Severity: Major
              Found in public/vendor/cwr.js - About 2 hrs to fix

                Function a has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                                function a(i) {
                                    return function(a) {
                                        return function(i) {
                                            if (n)
                                                throw new TypeError("Generator is already executing.");
                Severity: Major
                Found in public/vendor/cwr.js - About 2 hrs to fix

                  Function mt has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                              }(), mt = function() {
                                  function t(e) {
                                      var t = void 0 === e ? {} : e,
                                          n = t.fetchFunction,
                                          r = t.requestTimeout;
                  Severity: Major
                  Found in public/vendor/cwr.js - About 2 hrs to fix

                    Function a has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                                    function a(i) {
                                        return function(a) {
                                            return function(i) {
                                                if (n)
                                                    throw new TypeError("Generator is already executing.");
                    Severity: Major
                    Found in public/vendor/cwr.js - About 2 hrs to fix

                      Function a has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                                      function a(i) {
                                          return function(a) {
                                              return function(i) {
                                                  if (n)
                                                      throw new TypeError("Generator is already executing.");
                      Severity: Major
                      Found in public/vendor/cwr.js - About 2 hrs to fix

                        Function a has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                        function a(i) {
                                            return function(a) {
                                                return function(i) {
                                                    if (n)
                                                        throw new TypeError("Generator is already executing.");
                        Severity: Major
                        Found in public/vendor/cwr.js - About 2 hrs to fix

                          Function a has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                          function a(i) {
                                              return function(a) {
                                                  return function(i) {
                                                      if (n)
                                                          throw new TypeError("Generator is already executing.");
                          Severity: Major
                          Found in public/vendor/cwr.js - About 2 hrs to fix

                            Function a has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                            function a(i) {
                                                return function(a) {
                                                    return function(i) {
                                                        if (n)
                                                            throw new TypeError("Generator is already executing.");
                            Severity: Major
                            Found in public/vendor/cwr.js - About 2 hrs to fix

                              Function a has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                              function a(i) {
                                                  return function(a) {
                                                      return function(i) {
                                                          if (n)
                                                              throw new TypeError("Generator is already executing.");
                              Severity: Major
                              Found in public/vendor/cwr.js - About 2 hrs to fix

                                Function a has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                                function a(i) {
                                                    return function(a) {
                                                        return function(i) {
                                                            if (n)
                                                                throw new TypeError("Generator is already executing.");
                                Severity: Major
                                Found in public/vendor/cwr.js - About 2 hrs to fix

                                  Function collectResults has 64 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  const collectResults = async (link, service, type) => {
                                    await fetchWithCert(link).then(response => {
                                      if (response.ok) {
                                        response.json().then(json => {
                                          const jsondata = 'data' in json ? json.data : json;
                                  Severity: Major
                                  Found in scripts/mostReadCollectionTimes.js - About 2 hrs to fix

                                    Function Promo has 64 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    const Promo = () => {
                                      const { podcastPromo, script, service, dir } = useContext(ServiceContext);
                                    
                                      const {
                                        podcastPromoTitle,
                                    Severity: Major
                                    Found in src/app/legacy/containers/PodcastPromo/SecondaryColumn.jsx - About 2 hrs to fix

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

                                      import mergeDeepLeft from 'ramda/src/mergeDeepLeft';
                                      import dissocPath from 'ramda/src/dissocPath';
                                      import loggerMock from '#testHelpers/loggerMock';
                                      import onDemandRadioJson from '#data/pashto/bbc_pashto_radio/w3ct0lz1.json';
                                      import podcastJson from '#data/arabic/podcasts/p02pc9qc/p08wtg4d.json';
                                      Severity: Minor
                                      Found in src/app/routes/onDemandAudio/getInitialData/index.test.ts - About 2 hrs to fix

                                        File fontFaces.ts has 272 lines of code (exceeds 250 allowed). Consider refactoring.
                                        Open

                                        const REITH_FONTS_DIR = 'https://static.files.bbci.co.uk/fonts/reith/r2.512/';
                                        
                                        const NOTO_SERIF_SINHALA_FONTS_DIR =
                                          'https://ws-downloads.files.bbci.co.uk/fonts/NotoSerifSinhala/v1.00/';
                                        
                                        
                                        Severity: Minor
                                        Found in src/app/components/ThemeProvider/fontFaces.ts - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language