-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Open
Labels
A-tidyArea: The tidy toolArea: The tidy toolE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.
Description
ExtraCheckArg::is_non_auto_or_matches
with ExtraCheckLang::Js
should return true if the filepath ends in .js
or .ts
.
this should be fairly easy to do by just making the match statement yield a slice of strings instead of a single string, and then using Iterator::any
.
rust/src/tools/tidy/src/extra_checks/mod.rs
Line 723 in 523d399
let ext = match self.lang { |
Metadata
Metadata
Assignees
Labels
A-tidyArea: The tidy toolArea: The tidy toolE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.