Showing 390 of 2,206 total issues
Function de
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
}(), de = function() {
function e(e, t) {
this.config = e,
this.record = t,
this.page = void 0,
File index.test.js
has 278 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import assocPath from 'ramda/src/assocPath';
import * as fetchPageData from '../../utils/fetchPageData';
import getInitialData from '.';
import { TOPIC_PAGE } from '../../utils/pageTypes';
Function WithContexts
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const WithContexts = Component => {
const WithContextsContainer = props => {
const {
toggles,
bbcOrigin = null,
Function NavigationContainer
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const NavigationContainer = () => {
const { isAmp } = useContext(RequestContext);
const { script, translations, navigation, service, dir } =
useContext(ServiceContext);
Function e
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function e(e) {
var t = this;
this.ChainAnonymousCredentialsProvider = function() {
return k(t, void 0, void 0, (function() {
return L(this, (function(e) {
Function a
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function a(i) {
return function(a) {
return function(i) {
if (n)
throw new TypeError("Generator is already executing.");
Function a
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function a(i) {
return function(a) {
return function(i) {
if (n)
throw new TypeError("Generator is already executing.");
Function a
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function a(i) {
return function(a) {
return function(i) {
if (n)
throw new TypeError("Generator is already executing.");
Function mt
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
}(), mt = function() {
function t(e) {
var t = void 0 === e ? {} : e,
n = t.fetchFunction,
r = t.requestTimeout;
Function a
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function a(i) {
return function(a) {
return function(i) {
if (n)
throw new TypeError("Generator is already executing.");
Function a
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function a(i) {
return function(a) {
return function(i) {
if (n)
throw new TypeError("Generator is already executing.");
Function a
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function a(i) {
return function(a) {
return function(i) {
if (n)
throw new TypeError("Generator is already executing.");
Function a
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function a(i) {
return function(a) {
return function(i) {
if (n)
throw new TypeError("Generator is already executing.");
Function a
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function a(i) {
return function(a) {
return function(i) {
if (n)
throw new TypeError("Generator is already executing.");
Function a
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function a(i) {
return function(a) {
return function(i) {
if (n)
throw new TypeError("Generator is already executing.");
Function a
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function a(i) {
return function(a) {
return function(i) {
if (n)
throw new TypeError("Generator is already executing.");
Function collectResults
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
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;
Function Promo
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const Promo = () => {
const { podcastPromo, script, service, dir } = useContext(ServiceContext);
const {
podcastPromoTitle,
File index.test.ts
has 272 lines of code (exceeds 250 allowed). Consider refactoring. Open
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';
File fontFaces.ts
has 272 lines of code (exceeds 250 allowed). Consider refactoring. Open
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/';