Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix regex to match mod.ts files (#6330) #6331

Merged
merged 3 commits into from
Jan 10, 2025

Conversation

jbronder
Copy link
Contributor

@jbronder jbronder commented Jan 5, 2025

This PR is to address issue #6330. A change to the match property is proposed such that only mod.ts files are checked in the lint task of deno task lint:mod-exports. This change is intended to prevent including files that are not mod.ts files, but for the purposes of naming files (e.g. unstable_chmod.ts) which happen to end with a *mod.ts in the file name.

@jbronder jbronder requested a review from kt3k as a code owner January 5, 2025 00:20
Copy link

codecov bot commented Jan 5, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.43%. Comparing base (6cf1eea) to head (e33c58a).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6331   +/-   ##
=======================================
  Coverage   96.43%   96.43%           
=======================================
  Files         547      547           
  Lines       41788    41788           
  Branches     6341     6341           
=======================================
  Hits        40297    40297           
  Misses       1450     1450           
  Partials       41       41           

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

@jbronder jbronder changed the title fix(_tools): fix regex to match mod.ts files (#6330) fix(internal): fix regex to match mod.ts files (#6330) Jan 5, 2025
@kt3k kt3k changed the title fix(internal): fix regex to match mod.ts files (#6330) chore: fix regex to match mod.ts files (#6330) Jan 6, 2025
_tools/check_mod_exports.ts Outdated Show resolved Hide resolved
Copy link
Member

@kt3k kt3k left a comment

Choose a reason for hiding this comment

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

Good catch! Thanks

@jbronder
Copy link
Contributor Author

jbronder commented Jan 6, 2025

Oh yeah, I missed the double backslash. Thank you for looking it over!

@kt3k kt3k merged commit 4ff8c4b into denoland:main Jan 10, 2025
18 checks passed
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.

2 participants