Skip to content

fix(linter): preserve rule options in printed configs - #29042

Closed
camc314 wants to merge 1 commit into
mainfrom
codex/fix-print-config-options
Closed

camc314 wants to merge 1 commit into
mainfrom
codex/fix-print-config-options

Conversation

@camc314

@camc314 camc314 commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

--print-config now emits rule options as [severity, ...options], preserving their order and any array-valued options. Previously the extra array could make the printed config fail to load or silently change lint behavior.

Adds serializer round-trip coverage and CLI print/reload regressions for max-params and max-statements.

Fixes #28972

Use a flat severity-and-options sequence when serializing configured rules. Add serializer and CLI round-trip regressions.

Related serializer approach previously proposed by nathan-gage in #26668. Prepared with AI assistance.
Copilot AI balanced review requested due to automatic review settings November 7, 2026 22:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-07T22:40:04.914166Z 0b074d4 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions github-actions Bot added A-linter Area - Linter (oxlint): rules, config, diagnostics, fixes. Add L-* labels for details A-cli Area - oxlint / oxfmt common CLI behavior: flags, ignore files, oxc_config labels Nov 7, 2026
@codspeed

codspeed Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 5 untouched benchmarks
⏩ 101 skipped benchmarks1


Comparing codex/fix-print-config-options (0b074d4) with main (e7654f6)

Open in CodSpeed

Footnotes

  1. 101 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@camc314

camc314 commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

Fixed by #29531

@camc314 camc314 closed this Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-cli Area - oxlint / oxfmt common CLI behavior: flags, ignore files, oxc_config A-linter Area - Linter (oxlint): rules, config, diagnostics, fixes. Add L-* labels for details

Projects

None yet

Development

Successfully merging this pull request may close these issues.

linter: --print-config wraps rule options in an extra array; the output fails to load with -c or silently drops options

2 participants