prebid/Prebid.js

View on GitHub
modules/gptPreAuction.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function makeBidRequestsHook has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const makeBidRequestsHook = (fn, adUnits, ...args) => {
  appendGptSlots(adUnits);
  const { useDefaultPreAuction, customPreAuction } = _currentConfig;
  adUnits.forEach(adUnit => {
    // init the ortb2Imp if not done yet
Severity: Minor
Found in modules/gptPreAuction.js - About 1 hr to fix

    Avoid too many return statements within this function.
    Open

      return `${adServerAdSlot}#${adUnit.code}`;
    Severity: Major
    Found in modules/gptPreAuction.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

        return true;
      Severity: Major
      Found in modules/gptPreAuction.js - About 30 mins to fix

        There are no issues that match your filters.

        Category
        Status