Skip to content

Conversation

iuioiua
Copy link
Contributor

@iuioiua iuioiua commented Sep 20, 2025

First step towards #6649.

Copy link

codecov bot commented Sep 20, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.17%. Comparing base (7506617) to head (9a95268).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6832   +/-   ##
=======================================
  Coverage   94.16%   94.17%           
=======================================
  Files         573      574    +1     
  Lines       42425    42453   +28     
  Branches     6739     6741    +2     
=======================================
+ Hits        39951    39980   +29     
+ Misses       2424     2423    -1     
  Partials       50       50           

☔ 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.

// This module is browser compatible.

import type { Uint8Array_ } from "./_types.ts";
// deno-lint-ignore deno-std-docs/exported-symbol-documented
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Alternatively, we could have this rule ignore re-exported types. However, that would assume that re-exported types have documentation. In this codebase that might be true but would be a far reaching assumption in other codebases.

Copy link
Member

Choose a reason for hiding this comment

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

Re-exported items like this one are actually documented in _ prefixed files. Can we detect such docs by following the imports/exports?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, by using @deno/doc. Though, I haven't tried it yet, and I assume it might come with a bit of a performance cost. IMHO, how it is now is fine enough to get the ball rolling on this lint plugin, and I think we could revisit this later. WDYT?

Copy link
Member

Choose a reason for hiding this comment

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

Maybe it's fine to land if this is only informative, not requirement in CI.

we could have this rule ignore re-exported types

Could you implement this for now? I think this directive would be confusing to contributors

// Copyright 2018-2025 the Deno authors. MIT license.

function isInternalFile(filename: string): boolean {
return filename.split("/").some((part) => part.startsWith("_"));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will likely need to be refined in the future.

@iuioiua iuioiua marked this pull request as ready for review September 20, 2025 03:46
@iuioiua iuioiua requested a review from kt3k as a code owner September 20, 2025 03:46
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