Skip to content

refactor: drop JSDoc @param defaults#8350

Open
BridgeAR wants to merge 2 commits into
masterfrom
BridgeAR/2026-05-07-eslint-jsdoc-no-defaults
Open

refactor: drop JSDoc @param defaults#8350
BridgeAR wants to merge 2 commits into
masterfrom
BridgeAR/2026-05-07-eslint-jsdoc-no-defaults

Conversation

@BridgeAR
Copy link
Copy Markdown
Member

@BridgeAR BridgeAR commented May 7, 2026

Summary

Activates jsdoc/no-defaults. The default values are visible from the
function signature destructuring (x = 0) and were duplicated on the
type tag. JSDoc-flavored TypeScript treats =... on optional params as
unparsed text, so the default never reached tooling — the
description-suffix shape (Defaults to N) already covered the cases
where the default is non-obvious.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.04%. Comparing base (eeeccd6) to head (16d78a1).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #8350   +/-   ##
=======================================
  Coverage   90.04%   90.04%           
=======================================
  Files         838      838           
  Lines       45007    45007           
  Branches     8376     8377    +1     
=======================================
+ Hits        40526    40527    +1     
+ Misses       4481     4480    -1     
Flag Coverage Δ
aiguard-integration-active 40.67% <ø> (ø)
aiguard-integration-latest 40.62% <ø> (ø)
aiguard-integration-maintenance 40.67% <ø> (ø)
aiguard-macos 35.37% <ø> (-0.09%) ⬇️
aiguard-ubuntu 35.47% <ø> (-0.09%) ⬇️
aiguard-windows 35.28% <ø> (-0.09%) ⬇️
apm-capabilities-tracing-macos 49.05% <ø> (ø)
apm-capabilities-tracing-ubuntu-active 49.08% <ø> (-0.18%) ⬇️
apm-capabilities-tracing-ubuntu-latest 49.05% <ø> (ø)
apm-capabilities-tracing-ubuntu-maintenance 49.26% <ø> (+0.02%) ⬆️
apm-capabilities-tracing-ubuntu-oldest 49.06% <ø> (ø)
apm-capabilities-tracing-windows 49.06% <ø> (+<0.01%) ⬆️
apm-integrations-aerospike-18-gte.5.2.0 34.44% <ø> (-0.09%) ⬇️
apm-integrations-aerospike-20-gte.5.5.0 34.45% <ø> (-0.09%) ⬇️
apm-integrations-aerospike-22-gte.5.12.1 34.45% <ø> (-0.09%) ⬇️
apm-integrations-aerospike-22-gte.6.0.0 34.45% <ø> (-0.09%) ⬇️
apm-integrations-aerospike-eol- 34.36% <ø> (-0.09%) ⬇️
apm-integrations-child-process 35.42% <ø> (-0.09%) ⬇️
apm-integrations-confluentinc-kafka-javascript-18 41.27% <ø> (-0.09%) ⬇️
apm-integrations-confluentinc-kafka-javascript-20 41.28% <ø> (-0.09%) ⬇️
apm-integrations-confluentinc-kafka-javascript-22 41.28% <ø> (-0.09%) ⬇️
apm-integrations-confluentinc-kafka-javascript-24 41.22% <ø> (-0.09%) ⬇️
apm-integrations-couchbase-18 34.61% <ø> (-0.09%) ⬇️
apm-integrations-couchbase-eol 34.63% <ø> (-0.17%) ⬇️
apm-integrations-dns 34.30% <ø> (-0.10%) ⬇️
apm-integrations-elasticsearch 35.08% <ø> (-0.08%) ⬇️
apm-integrations-http-latest 42.26% <ø> (-0.08%) ⬇️
apm-integrations-http-maintenance 42.31% <ø> (-0.08%) ⬇️
apm-integrations-http-oldest 42.32% <ø> (-0.08%) ⬇️
apm-integrations-http2 39.73% <ø> (+0.03%) ⬆️
apm-integrations-kafkajs-latest 41.16% <ø> (-0.10%) ⬇️
apm-integrations-kafkajs-oldest 41.22% <ø> (-0.09%) ⬇️
apm-integrations-net 35.00% <ø> (-0.09%) ⬇️
apm-integrations-next-11.1.4 29.10% <ø> (-0.08%) ⬇️
apm-integrations-next-13.2.0 30.79% <ø> (-0.08%) ⬇️
apm-integrations-next-gte.10.2.0.and.lt.11 22.99% <ø> (ø)
apm-integrations-next-gte.11.0.0.and.lt.13 30.79% <ø> (-0.08%) ⬇️
apm-integrations-next-gte.13.0.0.and.lt.14 31.04% <ø> (-0.08%) ⬇️
apm-integrations-next-gte.14.0.0.and.lte.14.2.6 30.86% <ø> (-0.08%) ⬇️
apm-integrations-next-gte.14.2.7.and.lt.15 30.86% <ø> (-0.08%) ⬇️
apm-integrations-next-gte.15.0.0 30.92% <ø> (-0.08%) ⬇️
apm-integrations-oracledb 34.73% <ø> (-0.08%) ⬇️
apm-integrations-prisma-18-gte.6.16.0.and.lt.7.0.0 36.71% <ø> (-0.08%) ⬇️
apm-integrations-prisma-latest-all 35.52% <ø> (-0.08%) ⬇️
apm-integrations-restify 36.48% <ø> (-0.09%) ⬇️
apm-integrations-sharedb 33.98% <ø> (-0.09%) ⬇️
apm-integrations-tedious 34.53% <ø> (-0.09%) ⬇️
appsec-express 52.00% <ø> (-0.09%) ⬇️
appsec-fastify 48.71% <ø> (-0.09%) ⬇️
appsec-graphql 48.96% <ø> (-0.05%) ⬇️
appsec-integration-active 36.97% <ø> (ø)
appsec-integration-latest 36.94% <ø> (ø)
appsec-integration-maintenance 36.96% <ø> (ø)
appsec-integration-oldest 36.96% <ø> (ø)
appsec-kafka 41.59% <ø> (-0.03%) ⬇️
appsec-ldapjs 40.76% <ø> (-0.07%) ⬇️
appsec-lodash 40.87% <ø> (-0.07%) ⬇️
appsec-macos 55.84% <ø> (-0.06%) ⬇️
appsec-mongodb-core 45.20% <ø> (-0.08%) ⬇️
appsec-mongoose 46.05% <ø> (-0.07%) ⬇️
appsec-mysql 48.09% <ø> (-0.07%) ⬇️
appsec-next-latest-11.1.4 29.21% <ø> (-0.08%) ⬇️
appsec-next-latest-13.2.0 30.93% <ø> (-0.09%) ⬇️
appsec-next-latest-gte.10.2.0.and.lt.11 28.86% <ø> (ø)
appsec-next-latest-gte.11.0.0.and.lt.13 30.91% <ø> (-0.09%) ⬇️
appsec-next-latest-gte.13.0.0.and.lt.14 31.16% <ø> (-0.09%) ⬇️
appsec-next-latest-gte.14.0.0.and.lte.14.2.6 31.00% <ø> (-0.09%) ⬇️
appsec-next-latest-gte.14.2.7.and.lt.15 31.00% <ø> (-0.09%) ⬇️
appsec-next-latest-gte.15.0.0 31.00% <ø> (-0.09%) ⬇️
appsec-next-oldest-11.1.4 29.23% <ø> (-0.08%) ⬇️
appsec-next-oldest-13.2.0 31.20% <ø> (-0.09%) ⬇️
appsec-next-oldest-gte.10.2.0.and.lt.11 28.98% <ø> (ø)
appsec-next-oldest-gte.11.0.0.and.lt.13 30.93% <ø> (-0.09%) ⬇️
appsec-next-oldest-gte.13.0.0.and.lt.14 31.40% <ø> (-0.08%) ⬇️
appsec-next-oldest-gte.14.0.0.and.lte.14.2.6 31.24% <ø> (-0.09%) ⬇️
appsec-next-oldest-gte.14.2.7.and.lt.15 31.24% <ø> (-0.09%) ⬇️
appsec-next-oldest-gte.15.0.0 31.24% <ø> (-0.09%) ⬇️
appsec-node-serialize 40.09% <ø> (-0.07%) ⬇️
appsec-passport 43.81% <ø> (-0.08%) ⬇️
appsec-postgres 47.66% <ø> (-0.07%) ⬇️
appsec-sourcing 39.44% <ø> (-0.07%) ⬇️
appsec-stripe 41.60% <ø> (-0.08%) ⬇️
appsec-template 40.25% <ø> (-0.07%) ⬇️
appsec-ubuntu 55.92% <ø> (-0.06%) ⬇️
appsec-windows 55.78% <ø> (-0.06%) ⬇️
debugger-ubuntu-active 43.32% <ø> (ø)
debugger-ubuntu-latest 43.27% <ø> (ø)
debugger-ubuntu-maintenance 43.76% <ø> (+0.42%) ⬆️
debugger-ubuntu-oldest 43.77% <ø> (ø)
instrumentations-instrumentation-bluebird 29.33% <ø> (-0.09%) ⬇️
instrumentations-instrumentation-body-parser 37.02% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-child_process 34.91% <ø> (-0.09%) ⬇️
instrumentations-instrumentation-cookie-parser 31.16% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-express 31.37% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-express-mongo-sanitize 31.28% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-express-session 36.71% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-fs 29.01% <ø> (-0.09%) ⬇️
instrumentations-instrumentation-generic-pool 29.98% <ø> (ø)
instrumentations-instrumentation-http 36.38% <ø> (-0.09%) ⬇️
instrumentations-instrumentation-knex 29.30% <ø> (-0.09%) ⬇️
instrumentations-instrumentation-light-my-request 36.64% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-mongoose 30.42% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-multer 36.80% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-mysql2 34.94% <ø> (-0.09%) ⬇️
instrumentations-instrumentation-passport 40.46% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-passport-http 40.23% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-passport-local 40.72% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-pg 34.52% <ø> (-0.09%) ⬇️
instrumentations-instrumentation-promise 29.26% <ø> (-0.09%) ⬇️
instrumentations-instrumentation-promise-js 29.27% <ø> (-0.09%) ⬇️
instrumentations-instrumentation-q 29.30% <ø> (-0.09%) ⬇️
instrumentations-instrumentation-url 29.27% <ø> (-0.09%) ⬇️
instrumentations-instrumentation-when 29.28% <ø> (-0.09%) ⬇️
instrumentations-integration-esbuild-active 19.39% <ø> (ø)
instrumentations-integration-esbuild-latest 19.37% <ø> (ø)
instrumentations-integration-esbuild-maintenance 19.39% <ø> (ø)
instrumentations-integration-esbuild-oldest 19.38% <ø> (ø)
llmobs-ai 37.83% <ø> (-0.08%) ⬇️
llmobs-anthropic 37.89% <ø> (-0.08%) ⬇️
llmobs-bedrock 36.60% <ø> (-0.08%) ⬇️
llmobs-google-genai 36.91% <ø> (-0.08%) ⬇️
llmobs-langchain 36.70% <ø> (+0.03%) ⬆️
llmobs-openai 40.65% <ø> (-0.08%) ⬇️
llmobs-sdk-active 45.51% <ø> (-0.09%) ⬇️
llmobs-sdk-latest 45.44% <ø> (-0.09%) ⬇️
llmobs-sdk-maintenance 45.51% <ø> (-0.09%) ⬇️
llmobs-sdk-oldest 45.49% <ø> (-0.09%) ⬇️
llmobs-vertex-ai 37.06% <ø> (-0.08%) ⬇️
openfeature-macos 38.07% <ø> (ø)
openfeature-ubuntu 38.15% <ø> (ø)
openfeature-unit-active 48.65% <ø> (ø)
openfeature-unit-latest 48.49% <ø> (ø)
openfeature-unit-maintenance 48.65% <ø> (ø)
openfeature-unit-oldest 48.65% <ø> (ø)
openfeature-windows 37.90% <ø> (?)
platform-core 37.27% <ø> (ø)
platform-esbuild 40.61% <ø> (ø)
platform-instrumentations-misc 30.81% <ø> (ø)
platform-integration-active 47.16% <ø> (+0.01%) ⬆️
platform-integration-latest 47.11% <ø> (+0.03%) ⬆️
platform-integration-maintenance 47.17% <ø> (+0.01%) ⬆️
platform-integration-oldest 47.34% <ø> (+0.01%) ⬆️
platform-shimmer 42.29% <ø> (ø)
platform-unit-guardrails 36.12% <ø> (ø)
platform-webpack 20.52% <ø> (ø)
plugins-azure-durable-functions 37.07% <ø> (+0.16%) ⬆️
plugins-azure-event-hubs 34.93% <ø> (ø)
plugins-azure-service-bus 35.39% <ø> (ø)
plugins-bullmq 40.28% <ø> (-0.10%) ⬇️
plugins-cassandra 34.74% <ø> (-0.08%) ⬇️
plugins-cookie 26.65% <ø> (ø)
plugins-cookie-parser 26.46% <ø> (ø)
plugins-crypto 27.69% <ø> (ø)
plugins-dd-trace-api 34.84% <ø> (-0.09%) ⬇️
plugins-express-mongo-sanitize 26.59% <ø> (ø)
plugins-express-session 26.42% <ø> (ø)
plugins-fastify 38.78% <ø> (-0.08%) ⬇️
plugins-fetch 35.11% <ø> (-0.08%) ⬇️
plugins-fs 35.19% <ø> (-0.09%) ⬇️
plugins-generic-pool 25.58% <ø> (ø)
plugins-google-cloud-pubsub 42.51% <ø> (-0.09%) ⬇️
plugins-grpc 37.56% <ø> (-0.08%) ⬇️
plugins-handlebars 26.63% <ø> (ø)
plugins-hapi 36.87% <ø> (+0.10%) ⬆️
plugins-hono 36.97% <ø> (-0.08%) ⬇️
plugins-ioredis 35.31% <ø> (-0.09%) ⬇️
plugins-knex 26.31% <ø> (ø)
plugins-langgraph 34.54% <ø> (-0.09%) ⬇️
plugins-ldapjs 24.20% <ø> (ø)
plugins-light-my-request 26.06% <ø> (ø)
plugins-limitd-client 29.56% <ø> (-0.09%) ⬇️
plugins-lodash 25.65% <ø> (ø)
plugins-mariadb 36.16% <ø> (-0.15%) ⬇️
plugins-memcached 34.93% <ø> (-0.09%) ⬇️
plugins-microgateway-core 35.81% <ø> (-0.09%) ⬇️
plugins-modelcontextprotocol-sdk 33.83% <ø> (-0.09%) ⬇️
plugins-moleculer 37.64% <ø> (-0.09%) ⬇️
plugins-mongodb 36.15% <ø> (-0.08%) ⬇️
plugins-mongodb-core 35.88% <ø> (-0.09%) ⬇️
plugins-mongoose 35.62% <ø> (-0.08%) ⬇️
plugins-multer 26.42% <ø> (ø)
plugins-mysql 35.95% <ø> (-0.09%) ⬇️
plugins-mysql2 36.03% <ø> (-0.09%) ⬇️
plugins-node-serialize 26.69% <ø> (ø)
plugins-opensearch 34.62% <ø> (-0.09%) ⬇️
plugins-passport-http 26.47% <ø> (ø)
plugins-pino 31.27% <ø> (-0.09%) ⬇️
plugins-postgres 34.07% <ø> (-0.08%) ⬇️
plugins-process 27.69% <ø> (ø)
plugins-pug 26.65% <ø> (ø)
plugins-redis 35.30% <ø> (-0.09%) ⬇️
plugins-router 39.13% <ø> (-0.08%) ⬇️
plugins-sequelize 25.36% <ø> (ø)
plugins-test-and-upstream-amqp10 35.03% <ø> (-0.22%) ⬇️
plugins-test-and-upstream-amqplib 40.36% <ø> (-0.06%) ⬇️
plugins-test-and-upstream-apollo 36.02% <ø> (-0.08%) ⬇️
plugins-test-and-upstream-avsc 34.51% <ø> (-0.09%) ⬇️
plugins-test-and-upstream-bunyan 30.78% <ø> (+0.05%) ⬆️
plugins-test-and-upstream-connect 37.35% <ø> (-0.09%) ⬇️
plugins-test-and-upstream-graphql 36.92% <ø> (-0.09%) ⬇️
plugins-test-and-upstream-koa 36.94% <ø> (-0.08%) ⬇️
plugins-test-and-upstream-protobufjs 34.72% <ø> (-0.09%) ⬇️
plugins-test-and-upstream-rhea 40.38% <ø> (-0.09%) ⬇️
plugins-undici 35.84% <ø> (-0.08%) ⬇️
plugins-url 27.69% <ø> (ø)
plugins-valkey 34.95% <ø> (-0.09%) ⬇️
plugins-vm 27.69% <ø> (ø)
plugins-winston 31.15% <ø> (-0.09%) ⬇️
plugins-ws 38.46% <ø> (-0.08%) ⬇️
profiling-macos 42.79% <ø> (-0.07%) ⬇️
profiling-ubuntu 43.20% <ø> (-0.07%) ⬇️
profiling-windows 40.10% <ø> (-0.07%) ⬇️
serverless-aws-sdk-latest-aws-sdk 34.80% <ø> (-0.01%) ⬇️
serverless-aws-sdk-latest-bedrockruntime 33.14% <ø> (-0.08%) ⬇️
serverless-aws-sdk-latest-client 22.38% <ø> (ø)
serverless-aws-sdk-latest-dynamodb 35.76% <ø> (-0.03%) ⬇️
serverless-aws-sdk-latest-eventbridge 28.83% <ø> (-0.08%) ⬇️
serverless-aws-sdk-latest-kinesis 38.67% <ø> (-0.08%) ⬇️
serverless-aws-sdk-latest-lambda 35.95% <ø> (-0.08%) ⬇️
serverless-aws-sdk-latest-s3 33.91% <ø> (-0.08%) ⬇️
serverless-aws-sdk-latest-serverless-peer-service 40.04% <ø> (-0.09%) ⬇️
serverless-aws-sdk-latest-sns 39.77% <ø> (-0.08%) ⬇️
serverless-aws-sdk-latest-sqs 39.06% <ø> (-0.08%) ⬇️
serverless-aws-sdk-latest-stepfunctions 34.53% <ø> (-0.08%) ⬇️
serverless-aws-sdk-latest-util 48.00% <ø> (ø)
serverless-aws-sdk-oldest-aws-sdk 34.89% <ø> (-0.07%) ⬇️
serverless-aws-sdk-oldest-bedrockruntime 33.42% <ø> (-0.08%) ⬇️
serverless-aws-sdk-oldest-client 22.75% <ø> (ø)
serverless-aws-sdk-oldest-dynamodb 35.84% <ø> (-0.08%) ⬇️
serverless-aws-sdk-oldest-eventbridge 28.87% <ø> (-0.08%) ⬇️
serverless-aws-sdk-oldest-kinesis 38.80% <ø> (-0.08%) ⬇️
serverless-aws-sdk-oldest-lambda 36.03% <ø> (-0.08%) ⬇️
serverless-aws-sdk-oldest-s3 33.98% <ø> (-0.08%) ⬇️
serverless-aws-sdk-oldest-serverless-peer-service 40.10% <ø> (-0.09%) ⬇️
serverless-aws-sdk-oldest-sns 39.98% <ø> (-0.07%) ⬇️
serverless-aws-sdk-oldest-sqs 38.95% <ø> (-0.08%) ⬇️
serverless-aws-sdk-oldest-stepfunctions 34.61% <ø> (-0.08%) ⬇️
serverless-aws-sdk-oldest-util 48.31% <ø> (ø)
serverless-azure-functions-eventhubs 38.55% <ø> (ø)
serverless-azure-functions-servicebus 38.61% <ø> (ø)
serverless-lambda 34.50% <ø> (-0.09%) ⬇️
test-optimization-cucumber-latest-7.0.0 50.38% <ø> (+0.01%) ⬆️
test-optimization-cucumber-latest-latest 53.09% <ø> (+0.12%) ⬆️
test-optimization-cucumber-oldest-7.0.0 50.42% <ø> (+0.12%) ⬆️
test-optimization-cypress-latest-12.0.0-commonJS 48.77% <ø> (+0.07%) ⬆️
test-optimization-cypress-latest-12.0.0-esm 48.80% <ø> (+0.07%) ⬆️
test-optimization-cypress-latest-14.5.4-commonJS 48.62% <ø> (+0.07%) ⬆️
test-optimization-cypress-latest-14.5.4-esm 48.65% <ø> (+0.07%) ⬆️
test-optimization-cypress-latest-latest-commonJS 49.11% <ø> (+0.07%) ⬆️
test-optimization-cypress-latest-latest-esm 49.14% <ø> (+0.07%) ⬆️
test-optimization-cypress-oldest-12.0.0-commonJS 48.81% <ø> (+0.07%) ⬆️
test-optimization-cypress-oldest-12.0.0-esm 48.84% <ø> (+0.07%) ⬆️
test-optimization-cypress-oldest-14.5.4-commonJS 48.66% <ø> (+0.07%) ⬆️
test-optimization-cypress-oldest-14.5.4-esm 48.69% <ø> (+0.07%) ⬆️
test-optimization-jest-latest-latest 54.94% <ø> (+0.18%) ⬆️
test-optimization-jest-latest-oldest 53.66% <ø> (+0.08%) ⬆️
test-optimization-jest-oldest-latest 54.85% <ø> (+0.08%) ⬆️
test-optimization-jest-oldest-oldest 53.59% <ø> (+0.08%) ⬆️
test-optimization-mocha-latest-latest 53.39% <ø> (+0.05%) ⬆️
test-optimization-mocha-latest-oldest 51.00% <ø> (+0.08%) ⬆️
test-optimization-mocha-oldest-latest 53.45% <ø> (+0.08%) ⬆️
test-optimization-mocha-oldest-oldest 50.94% <ø> (+0.08%) ⬆️
test-optimization-playwright-latest-latest-playwright-active-test-span 44.30% <ø> (+0.28%) ⬆️
test-optimization-playwright-latest-latest-playwright-atr 43.07% <ø> (+0.11%) ⬆️
test-optimization-playwright-latest-latest-playwright-efd 43.49% <ø> (+0.09%) ⬆️
test-optimization-playwright-latest-latest-playwright-final-status 43.54% <ø> (+0.13%) ⬆️
test-optimization-playwright-latest-latest-playwright-impacted-tests 43.00% <ø> (ø)
test-optimization-playwright-latest-latest-playwright-reporting 42.94% <ø> (+0.09%) ⬆️
test-optimization-playwright-latest-latest-playwright-test-management 44.73% <ø> (+0.10%) ⬆️
test-optimization-playwright-latest-oldest-playwright-active-test-span 44.37% <ø> (+0.28%) ⬆️
test-optimization-playwright-latest-oldest-playwright-atr 43.28% <ø> (+0.11%) ⬆️
test-optimization-playwright-latest-oldest-playwright-efd 43.55% <ø> (+0.09%) ⬆️
test-optimization-playwright-latest-oldest-playwright-final-status 43.59% <ø> (+0.14%) ⬆️
test-optimization-playwright-latest-oldest-playwright-impacted-tests 43.05% <ø> (ø)
test-optimization-playwright-latest-oldest-playwright-reporting 43.01% <ø> (+0.09%) ⬆️
test-optimization-playwright-latest-oldest-playwright-test-management 44.80% <ø> (+0.10%) ⬆️
test-optimization-playwright-oldest-latest-playwright-active-test-span 44.34% <ø> (+0.28%) ⬆️
test-optimization-playwright-oldest-latest-playwright-atr 43.11% <ø> (+0.11%) ⬆️
test-optimization-playwright-oldest-latest-playwright-efd 43.51% <ø> (+0.09%) ⬆️
test-optimization-playwright-oldest-latest-playwright-final-status 43.55% <ø> (+0.11%) ⬆️
test-optimization-playwright-oldest-latest-playwright-impacted-tests 43.04% <ø> (ø)
test-optimization-playwright-oldest-latest-playwright-reporting 42.95% <ø> (+0.09%) ⬆️
test-optimization-playwright-oldest-latest-playwright-test-management 44.74% <ø> (+0.10%) ⬆️
test-optimization-playwright-oldest-oldest-playwright-active-test-span 44.40% <ø> (+0.28%) ⬆️
test-optimization-playwright-oldest-oldest-playwright-atr 43.32% <ø> (+0.11%) ⬆️
test-optimization-playwright-oldest-oldest-playwright-efd 43.56% <ø> (+0.09%) ⬆️
test-optimization-playwright-oldest-oldest-playwright-final-status 43.61% <ø> (+0.11%) ⬆️
test-optimization-playwright-oldest-oldest-playwright-impacted-tests 43.09% <ø> (ø)
test-optimization-playwright-oldest-oldest-playwright-reporting 43.03% <ø> (+0.09%) ⬆️
test-optimization-playwright-oldest-oldest-playwright-test-management 44.81% <ø> (+0.10%) ⬆️
test-optimization-selenium-latest 45.67% <ø> (+0.07%) ⬆️
test-optimization-selenium-oldest 45.17% <ø> (+0.07%) ⬆️
test-optimization-testopt-active 46.99% <ø> (+0.13%) ⬆️
test-optimization-testopt-latest 46.95% <ø> (+0.13%) ⬆️
test-optimization-testopt-maintenance 46.99% <ø> (+0.13%) ⬆️
test-optimization-testopt-oldest 47.85% <ø> (+0.14%) ⬆️
test-optimization-vitest-latest 51.05% <ø> (+0.11%) ⬆️
test-optimization-vitest-oldest 48.05% <ø> (+0.36%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@datadog-prod-us1-6
Copy link
Copy Markdown

datadog-prod-us1-6 Bot commented May 7, 2026

Tests

🎉 All green!

❄️ No new flaky tests detected
🧪 All tests passed

🎯 Code Coverage (details)
Patch Coverage: 100.00%
Overall Coverage: 86.86% (+0.00%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 16d78a1 | Docs | Datadog PR Page | Give us feedback!

@BridgeAR BridgeAR marked this pull request as ready for review May 7, 2026 23:35
@BridgeAR BridgeAR requested review from a team as code owners May 7, 2026 23:35
@BridgeAR BridgeAR requested review from khanayan123 and removed request for a team May 7, 2026 23:35
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 7, 2026

Overall package size

Self size: 5.82 MB
Deduped: 6.66 MB
No deduping: 6.66 MB

Dependency sizes | name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 3.0.1 | 82.56 kB | 817.39 kB | | dc-polyfill | 0.1.11 | 25.74 kB | 25.74 kB |

🤖 This report was automatically generated by heaviest-objects-in-the-universe

@pr-commenter
Copy link
Copy Markdown

pr-commenter Bot commented May 7, 2026

Benchmarks

Benchmark execution time: 2026-05-07 23:45:21

Comparing candidate commit 58580c6 in PR branch BridgeAR/2026-05-07-eslint-jsdoc-no-defaults with baseline commit ce8a754 in branch master.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 1742 metrics, 102 unstable metrics.

Copy link
Copy Markdown
Collaborator

@watson watson left a comment

Choose a reason for hiding this comment

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

I'm surprised this value isn't used by IDEs when it has been part of the spec for a long time: https://jsdoc.app/tags-param#optional-parameters-and-default-values

I understand why you want to avoid it for cases where it's already documented in the method signature, but for cases where it's not, but the default value is set inside the method body, I don't understand why this kind of documentation is discouraged??

@BridgeAR
Copy link
Copy Markdown
Member Author

BridgeAR commented May 9, 2026

I understand why you want to avoid it for cases where it's already documented in the method signature, but for cases where it's not, but the default value is set inside the method body, I don't understand why this kind of documentation is discouraged??

The goal is to make it part of the description itself. That way it is surfaced, if it is not a default value. This will make it clearer when adding it.

@watson
Copy link
Copy Markdown
Collaborator

watson commented May 11, 2026

The goal is to make it part of the description itself. That way it is surfaced, if it is not a default value. This will make it clearer when adding it.

Shouldn't this PR then not add it to the @param description in the places where it's not part of the method signature?

BridgeAR added 2 commits May 12, 2026 02:36
Activates `jsdoc/no-defaults`. The default values are visible from the
function signature destructuring (`x = 0`) and were duplicated on the
type tag. JSDoc-flavored TypeScript treats `=...` on optional params as
unparsed text, so the default never reached tooling — the
description-suffix shape (`Defaults to N`) already covered the cases
where the default is non-obvious.
Some defaults are not visible in the function signature because they are derived from the body. Keep those values in prose so `jsdoc/no-defaults` does not remove the only rendered documentation for them.

Refs: #8350 (comment)
@BridgeAR BridgeAR force-pushed the BridgeAR/2026-05-07-eslint-jsdoc-no-defaults branch from 58580c6 to 16d78a1 Compare May 12, 2026 00:38
* @param {string} [options.sourceFile] - The source file path. Defaults to `deployedFile` if not provided.
* @param {number} [options.stackIndex=0] - The stack index to use when inferring the file from the stack trace.
* @param {number} [options.stackIndex] - The stack index to use when inferring the file from the stack trace.
* Defaults to 0.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Here it is part of the method signature.

Suggested change
* Defaults to 0.

Comment on lines +221 to +224
* @param {number} [options.timeout] - Timeout in milliseconds before the promise rejects. Defaults to 30 seconds.
* @param {number} [options.expectedMessageCount] - Number of matching messages to wait for. Defaults to 1.
* @param {boolean} [options.resolveAtFirstSuccess] - Resolve as soon as `fn` first runs without throwing.
* Defaults to false.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Also here:

Suggested change
* @param {number} [options.timeout] - Timeout in milliseconds before the promise rejects. Defaults to 30 seconds.
* @param {number} [options.expectedMessageCount] - Number of matching messages to wait for. Defaults to 1.
* @param {boolean} [options.resolveAtFirstSuccess] - Resolve as soon as `fn` first runs without throwing.
* Defaults to false.
* @param {number} [options.timeout] - Timeout in milliseconds before the promise rejects.
* @param {number} [options.expectedMessageCount] - Number of matching messages to wait for.
* @param {boolean} [options.resolveAtFirstSuccess] - Resolve as soon as `fn` first runs without throwing.

Comment on lines +292 to +293
* @param {number} [options.expectedCount] Resolve after this many matching groups arrive. Defaults to 1.
* @param {number} [options.timeout] Timeout in milliseconds before the promise rejects. Defaults to 30 seconds.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

And here:

Suggested change
* @param {number} [options.expectedCount] Resolve after this many matching groups arrive. Defaults to 1.
* @param {number} [options.timeout] Timeout in milliseconds before the promise rejects. Defaults to 30 seconds.
* @param {number} [options.expectedCount] Resolve after this many matching groups arrive.
* @param {number} [options.timeout] Timeout in milliseconds before the promise rejects.

* @param {object} moduleData
* @param {string} moduleData.path
* @param {boolean} [moduleData.internal = false]
* @param {boolean} [moduleData.internal] Defaults to false.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
* @param {boolean} [moduleData.internal] Defaults to false.
* @param {boolean} [moduleData.internal]

* @param {boolean} [moduleData.internal] Defaults to false.
* @param {object} moduleData.context
* @param {boolean} [moduleData.excludeDefault = false]
* @param {boolean} [moduleData.excludeDefault] Defaults to false.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
* @param {boolean} [moduleData.excludeDefault] Defaults to false.
* @param {boolean} [moduleData.excludeDefault]

* @param {string} args.name module name
* @param {string[]} [args.versions] array of semver range strings
* @param {string} [args.file='index.js'] path to file within package to instrument
* @param {string} [args.file] path to file within package to instrument
Copy link
Copy Markdown
Collaborator

@watson watson May 12, 2026

Choose a reason for hiding this comment

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

This isn't part of the method signature:

Suggested change
* @param {string} [args.file] path to file within package to instrument
* @param {string} [args.file] path to file within package to instrument. Defaults to 'index.js'.

* @param {string} [args.file] path to file within package to instrument
* @param {string} [args.filePattern] pattern to match files within package to instrument
* @param {boolean} [args.patchDefault=true] whether to patch the default export
* @param {boolean} [args.patchDefault] whether to patch the default export
Copy link
Copy Markdown
Collaborator

@watson watson May 12, 2026

Choose a reason for hiding this comment

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

Neither is this:

Suggested change
* @param {boolean} [args.patchDefault] whether to patch the default export
* @param {boolean} [args.patchDefault] whether to patch the default export. Defaults to true.

/**
* @param {object} config - Configuration object
* @param {string} [config.site='datadoghq.com'] - The Datadog site
* @param {string} [config.site] - The Datadog site
Copy link
Copy Markdown
Collaborator

@watson watson May 12, 2026

Choose a reason for hiding this comment

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

Nor this:

Suggested change
* @param {string} [config.site] - The Datadog site
* @param {string} [config.site] - The Datadog site. Defaults to 'datadoghq.com'.

Comment on lines +573 to +574
* @param {boolean} [options.ritmReset] - Resets the Require In The Middle cache. Defaults to true.
* @param {boolean} [options.wipe] - Wipes tracer and non-native modules from require cache. Defaults to false.
Copy link
Copy Markdown
Collaborator

@watson watson May 12, 2026

Choose a reason for hiding this comment

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

But this is:

Suggested change
* @param {boolean} [options.ritmReset] - Resets the Require In The Middle cache. Defaults to true.
* @param {boolean} [options.wipe] - Wipes tracer and non-native modules from require cache. Defaults to false.
* @param {boolean} [options.ritmReset] - Resets the Require In The Middle cache.
* @param {boolean} [options.wipe] - Wipes tracer and non-native modules from require cache.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants