Skip to content

Add a config option to suppress unmatched-source #782

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

Merged
merged 1 commit into from
Aug 14, 2025

Conversation

takeoverjp
Copy link
Contributor

Thank you for the nice project!
This is my first PR for this project.
Therefore if I have any mistakes for contribution, please let me know...


There are several reasons you might want this:

  1. If the allow list represents the set sources for a project that have gone through some external approval process, such as vetting it with a legal department.
  2. You're checking a single project in a workspace that shares its deny.toml for all members, but not all members have identical dependency sets.
  3. You'd like to use deny.toml as part of a project template, and configure it with some default set of sources you find acceptable
  4. ... others, for sure...

As it is, this warning isn't a huge deal, but is annoying/unhelpful if you don't care about it. I suspect that it's useful for catching typos or keeping configuration tight (and so I think "warn" is the right default for it), but there are enough reasons to want to turn it off that it seems justified to me for it to be an option.

It was easy to add support for a config property which controls the lint level for this check, so I just did that. I guess setting it to deny could be desirable in some cases, although it seems a little dodgy to me for various reasons... That said, I didn't see a reason to forbid that sort of thing, and allowing it to be configured as a LintLevel seemed more consistent.

Additional Information

@takeoverjp takeoverjp requested a review from Jake-Shadle as a code owner July 25, 2025 15:52
Copy link
Member

@Jake-Shadle Jake-Shadle left a comment

Choose a reason for hiding this comment

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

Thanks!

@Jake-Shadle Jake-Shadle changed the title Add a config option to suppress warning[unmatched-source]: allowed source was not encountered Add a config option to suppress unmatched-source Aug 14, 2025
@mergify mergify bot merged commit aa8306b into EmbarkStudios:main Aug 14, 2025
11 of 12 checks passed
@takeoverjp takeoverjp deleted the add-unused-allowed-source branch August 14, 2025 09:36
@takeoverjp
Copy link
Contributor Author

@Jake-Shadle
Thank you so much for review and merge! 🎉
If decided, please let me know the release plan.

Does this project plan any periodic release?
Or should I wait for another important release?

@Jake-Shadle
Copy link
Member

I'm doing a release today.

@takeoverjp
Copy link
Contributor Author

Great!👍

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