Skip to content

fix: resolve categories in type-aware linting - #7

Open
romankurakin wants to merge 1 commit into
elixir-volt:masterfrom
romankurakin:fix/type-aware-categories
Open

romankurakin wants to merge 1 commit into
elixir-volt:masterfrom
romankurakin:fix/type-aware-categories

Conversation

@romankurakin

@romankurakin romankurakin commented Sep 15, 2026

Copy link
Copy Markdown

OXC.Lint.run/2 forwards category names to tsgolint as individual rules. This prevents callers from using the same category-based configuration for syntax and type-aware checks.

Resolve categories through the bundled native rule registry before invoking tsgolint. Select rules from enabled plugins and preserve explicit rule options and severities. Apply all first, then categories, then individual rules, so explicit exclusions take precedence.

The existing OXC.Lint.run/2 interface remains unchanged. For example, rules: %{"correctness" => :deny} now selects type-aware correctness rules without requiring callers to list them individually.

Closes #6.

Copilot AI lite review requested due to automatic review settings September 15, 2026 16:40

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

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.

Category filters do not work with type-aware linting

2 participants