KEMBAR78
Linting: no-return-assign by patmmccann · Pull Request #13608 · prebid/Prebid.js · GitHub
Skip to content

Conversation

patmmccann
Copy link
Collaborator

see #1111

@patmmccann patmmccann marked this pull request as draft July 15, 2025 17:00
@github-actions
Copy link

Tread carefully! This PR adds 109 linter errors (possibly disabled through directives):

  • creative/renderers/display/renderer.js (+1 error)
  • libraries/equativUtils/equativUtils.js (+1 error)
  • libraries/greedy/greedyPromise.js (+2 errors)
  • libraries/ortbConverter/processors/default.js (+1 error)
  • libraries/pbsExtensions/processors/pbs.js (+1 error)
  • modules/adagioBidAdapter.js (+1 error)
  • modules/admaticBidAdapter.js (+2 errors)
  • modules/admixerBidAdapter.js (+1 error)
  • modules/adplayerproVideoProvider.js (+1 error)
  • modules/adrelevantisBidAdapter.js (+3 errors)
  • modules/advertisingBidAdapter.js (+1 error)
  • modules/adxcgBidAdapter.js (+1 error)
  • modules/appnexusBidAdapter.js (+1 error)
  • modules/bidViewability.js (+1 error)
  • modules/buzzoolaBidAdapter.js (+1 error)
  • modules/codefuelBidAdapter.js (+1 error)
  • modules/concertAnalyticsAdapter.js (+1 error)
  • modules/contxtfulRtdProvider.js (+1 error)
  • modules/criteoBidAdapter.js (+2 errors)
  • modules/dspxBidAdapter.js (+1 error)
  • modules/eplanningBidAdapter.js (+1 error)
  • modules/equativBidAdapter.js (+1 error)
  • modules/feedadBidAdapter.js (+1 error)
  • modules/intersectionRtdProvider.js (+1 error)
  • modules/justpremiumBidAdapter.js (+1 error)
  • modules/kargoBidAdapter.js (+1 error)
  • modules/madvertiseBidAdapter.js (+1 error)
  • modules/mediafuseBidAdapter.js (+1 error)
  • modules/multibid/index.ts (+1 error)
  • modules/permutiveRtdProvider.js (+1 error)
  • modules/prebidServerBidAdapter/bidderConfig.js (+1 error)
  • modules/pubmaticAnalyticsAdapter.js (+1 error)
  • modules/pulsepointBidAdapter.js (+1 error)
  • modules/rtbsapeBidAdapter.js (+1 error)
  • modules/rubiconBidAdapter.js (+12 errors)
  • modules/sizeMapping.js (+1 error)
  • modules/stvBidAdapter.js (+1 error)
  • modules/userId/eids.js (+1 error)
  • modules/ventesBidAdapter.js (+2 errors)
  • modules/winrBidAdapter.js (+1 error)
  • modules/yieldlabBidAdapter.js (+1 error)
  • modules/yieldmoBidAdapter.js (+3 errors)
  • src/activities/rules.js (+1 error)
  • src/adUnits.ts (+1 error)
  • src/adapters/bidderFactory.ts (+1 error)
  • src/targeting.ts (+1 error)
  • test/spec/libraries/greedy/greedyPromise_spec.js (+1 error)
  • test/spec/modules/consentManagement_spec.js (+1 error)
  • test/spec/modules/criteoBidAdapter_spec.js (+4 errors)
  • test/spec/modules/ixBidAdapter_spec.js (+1 error)
  • test/spec/modules/kargoBidAdapter_spec.js (+1 error)
  • test/spec/modules/mantisBidAdapter_spec.js (+3 errors)
  • test/spec/modules/onetagBidAdapter_spec.js (+1 error)
  • test/spec/modules/paapi_spec.js (+2 errors)
  • test/spec/modules/permutiveCombined_spec.js (+2 errors)
  • test/spec/modules/prebidServerBidAdapter_spec.js (+1 error)
  • test/spec/modules/priceFloors_spec.js (+3 errors)
  • test/spec/modules/pubmaticAnalyticsAdapter_spec.js (+12 errors)
  • test/spec/modules/realTimeDataModule_spec.js (+2 errors)
  • test/spec/modules/videoModule/pbVideo_spec.js (+4 errors)
  • test/spec/modules/waardexBidAdapter_spec.js (+1 error)
  • test/spec/unit/core/adapterManager_spec.js (+1 error)
  • test/spec/unit/core/consentHandler_spec.js (+3 errors)
  • test/spec/unit/utils/perfMetrics_spec.js (+1 error)

@coveralls
Copy link
Collaborator

coveralls commented Jul 15, 2025

Pull Request Test Coverage Report for Build 16439279506

Details

  • 104 of 111 (93.69%) changed or added relevant lines in 44 files are covered.
  • 10 unchanged lines in 6 files lost coverage.
  • Overall coverage increased (+0.004%) to 96.257%

Changes Missing Coverage Covered Lines Changed/Added Lines %
modules/pubmaticAnalyticsAdapter.js 0 1 0.0%
modules/ventesBidAdapter.js 1 2 50.0%
modules/yieldmoBidAdapter.js 2 3 66.67%
modules/concertAnalyticsAdapter.js 0 2 0.0%
modules/justpremiumBidAdapter.js 0 2 0.0%
Files with Coverage Reduction New Missed Lines %
modules/bliinkBidAdapter.js 1 96.49%
modules/eskimiBidAdapter.js 1 75.86%
modules/fwsspBidAdapter.js 1 89.55%
src/utils.js 1 88.61%
libraries/smartyadsUtils/getAdUrlByRegion.js 2 57.14%
modules/invibesBidAdapter.js 4 90.59%
Totals Coverage Status
Change from base Build 16429592943: 0.004%
Covered Lines: 194372
Relevant Lines: 201931

💛 - Coveralls

* Yieldlab Bid Adapter: ensure netRevenue default

* Core: enable no-return-assign rule
'no-unused-expressions': 'off',
'no-undef': 'off',
'no-unused-vars': 'off',
'no-return-assign': 'off',
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moving it to test exception

@github-actions
Copy link

Whoa there, partner! 🌵🤠 We wrangled some duplicated code in your PR:

Reducing code duplication by importing common functions from a library not only makes our code cleaner but also easier to maintain. Please move the common code from both files into a library and import it in each. We hate that we have to mention this, however, commits designed to hide from this utility by renaming variables or reordering an object are poor conduct. We will not look upon them kindly! Keep up the great work! 🚀

@patmmccann patmmccann marked this pull request as ready for review July 15, 2025 17:41
@github-actions
Copy link

Tread carefully! This PR adds 172 linter errors (possibly disabled through directives):

  • libraries/equativUtils/equativUtils.js (+3 errors)
  • libraries/greedy/greedyPromise.js (+19 errors)
  • libraries/ortbConverter/processors/default.js (+4 errors)
  • libraries/pbsExtensions/processors/pbs.js (+3 errors)
  • modules/adagioBidAdapter.js (+6 errors)
  • modules/admaticBidAdapter.js (+6 errors)
  • modules/admixerBidAdapter.js (+6 errors)
  • modules/adrelevantisBidAdapter.js (+15 errors)
  • modules/advertisingBidAdapter.js (+5 errors)
  • modules/appnexusBidAdapter.js (+8 errors)
  • modules/bidViewability.js (+4 errors)
  • modules/buzzoolaBidAdapter.js (+3 errors)
  • modules/codefuelBidAdapter.js (+3 errors)
  • modules/concertAnalyticsAdapter.js (+8 errors)
  • modules/criteoBidAdapter.js (+8 errors)
  • modules/dspxBidAdapter.js (+5 errors)
  • modules/eplanningBidAdapter.js (+9 errors)
  • modules/equativBidAdapter.js (+5 errors)
  • modules/intersectionRtdProvider.js (+10 errors)
  • modules/madvertiseBidAdapter.js (+3 errors)
  • modules/mediafuseBidAdapter.js (+8 errors)
  • modules/prebidServerBidAdapter/bidderConfig.js (+5 errors)
  • modules/rubiconBidAdapter.js (+5 errors)
  • modules/stvBidAdapter.js (+5 errors)
  • modules/userId/eids.js (+3 errors)
  • modules/ventesBidAdapter.js (+13 errors)

@github-actions
Copy link

Whoa there, partner! 🌵🤠 We wrangled some duplicated code in your PR:

Reducing code duplication by importing common functions from a library not only makes our code cleaner but also easier to maintain. Please move the common code from both files into a library and import it in each. We hate that we have to mention this, however, commits designed to hide from this utility by renaming variables or reordering an object are poor conduct. We will not look upon them kindly! Keep up the great work! 🚀

@github-actions
Copy link

Tread carefully! This PR adds 172 linter errors (possibly disabled through directives):

  • libraries/equativUtils/equativUtils.js (+3 errors)
  • libraries/greedy/greedyPromise.js (+19 errors)
  • libraries/ortbConverter/processors/default.js (+4 errors)
  • libraries/pbsExtensions/processors/pbs.js (+3 errors)
  • modules/adagioBidAdapter.js (+6 errors)
  • modules/admaticBidAdapter.js (+6 errors)
  • modules/admixerBidAdapter.js (+6 errors)
  • modules/adrelevantisBidAdapter.js (+15 errors)
  • modules/advertisingBidAdapter.js (+5 errors)
  • modules/appnexusBidAdapter.js (+8 errors)
  • modules/bidViewability.js (+4 errors)
  • modules/buzzoolaBidAdapter.js (+3 errors)
  • modules/codefuelBidAdapter.js (+3 errors)
  • modules/concertAnalyticsAdapter.js (+8 errors)
  • modules/criteoBidAdapter.js (+8 errors)
  • modules/dspxBidAdapter.js (+5 errors)
  • modules/eplanningBidAdapter.js (+9 errors)
  • modules/equativBidAdapter.js (+5 errors)
  • modules/intersectionRtdProvider.js (+10 errors)
  • modules/madvertiseBidAdapter.js (+3 errors)
  • modules/mediafuseBidAdapter.js (+8 errors)
  • modules/prebidServerBidAdapter/bidderConfig.js (+5 errors)
  • modules/rubiconBidAdapter.js (+5 errors)
  • modules/stvBidAdapter.js (+5 errors)
  • modules/userId/eids.js (+3 errors)
  • modules/ventesBidAdapter.js (+13 errors)

@github-actions
Copy link

Whoa there, partner! 🌵🤠 We wrangled some duplicated code in your PR:

Reducing code duplication by importing common functions from a library not only makes our code cleaner but also easier to maintain. Please move the common code from both files into a library and import it in each. We hate that we have to mention this, however, commits designed to hide from this utility by renaming variables or reordering an object are poor conduct. We will not look upon them kindly! Keep up the great work! 🚀

@github-actions
Copy link

Whoa there, partner! 🌵🤠 We wrangled some duplicated code in your PR:

Reducing code duplication by importing common functions from a library not only makes our code cleaner but also easier to maintain. Please move the common code from both files into a library and import it in each. We hate that we have to mention this, however, commits designed to hide from this utility by renaming variables or reordering an object are poor conduct. We will not look upon them kindly! Keep up the great work! 🚀

@github-actions
Copy link

Whoa there, partner! 🌵🤠 We wrangled some duplicated code in your PR:

Reducing code duplication by importing common functions from a library not only makes our code cleaner but also easier to maintain. Please move the common code from both files into a library and import it in each. We hate that we have to mention this, however, commits designed to hide from this utility by renaming variables or reordering an object are poor conduct. We will not look upon them kindly! Keep up the great work! 🚀

@github-actions
Copy link

Whoa there, partner! 🌵🤠 We wrangled some duplicated code in your PR:

Reducing code duplication by importing common functions from a library not only makes our code cleaner but also easier to maintain. Please move the common code from both files into a library and import it in each. We hate that we have to mention this, however, commits designed to hide from this utility by renaming variables or reordering an object are poor conduct. We will not look upon them kindly! Keep up the great work! 🚀

@ChrisHuie ChrisHuie self-requested a review July 17, 2025 12:46
@ChrisHuie ChrisHuie self-assigned this Jul 17, 2025
@github-actions
Copy link

Whoa there, partner! 🌵🤠 We wrangled some duplicated code in your PR:

Reducing code duplication by importing common functions from a library not only makes our code cleaner but also easier to maintain. Please move the common code from both files into a library and import it in each. We hate that we have to mention this, however, commits designed to hide from this utility by renaming variables or reordering an object are poor conduct. We will not look upon them kindly! Keep up the great work! 🚀

@ChrisHuie ChrisHuie merged commit ba9a622 into master Jul 22, 2025
33 of 35 checks passed
@ChrisHuie ChrisHuie deleted the lint-no-ret-assign branch July 22, 2025 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants