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

fix(lint): plugins ignored when no rust rule active #28269

Merged
merged 2 commits into from
Feb 24, 2025
Merged

Conversation

marvinhagemeister
Copy link
Contributor

When all Rust-based rules where filtered out we were bailing out early instead of checking if there are plugin rules we need to run. This meant we errored out with a "No lint rules to run" message, even though plugin rules were active.

Fixes #28267

Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -289,10 +290,11 @@ impl WorkspaceLinter {
let exclude = lint_options.rules.exclude.clone();

let plugin_specifiers = lint_options.plugins.clone();
let lint_rules = self.lint_rule_provider.resolve_lint_rules_err_empty(
Copy link
Member

Choose a reason for hiding this comment

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

It looks like linting stdin is not taking into account plugins?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah Noticed that as well. It seems like there we don't support plugins yet.

@bartlomieju bartlomieju merged commit f916679 into main Feb 24, 2025
18 checks passed
@bartlomieju bartlomieju deleted the fix-empty-tags branch February 24, 2025 22:35
littledivy pushed a commit that referenced this pull request Feb 25, 2025
When all Rust-based rules where filtered out we were bailing out early
instead of checking if there are plugin rules we need to run. This meant
we errored out with a "No lint rules to run" message, even though plugin
rules were active.

Fixes #28267
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.

deno lint fails if tags: [] and include: [...]
3 participants