Skip to content

tidy doesn't auto-run js checks if a typescript file is changed #146047

@lolbinarycat

Description

@lolbinarycat

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.

let ext = match self.lang {

Metadata

Metadata

Labels

A-tidyArea: The tidy toolE-easyCall 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.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions