Skip to content

Fix serve-mode linting option - #60

Merged
melonamin merged 1 commit into
masterfrom
agent/fix-rest-serve-linting
Aug 12, 2026
Merged

Fix serve-mode linting option#60
melonamin merged 1 commit into
masterfrom
agent/fix-rest-serve-linting

Conversation

@melonamin

Copy link
Copy Markdown
Member

What changed

  • deserialize the existing enable_linting REST request field
  • translate it into the core LintConfig without changing omitted defaults
  • add serve API coverage for enabled, disabled, and omitted linting, including file payloads

Why

The web adapter already sent enable_linting, but the CLI serve endpoint ignored the unknown field. REST-backed analysis therefore never honored the UI lint toggle.

Validation

  • cargo test -p flowscope-cli --features serve --test serve_api
  • mise exec yarn@1.22.19 -- just check
  • Codex review: no actionable findings

@codecov

codecov Bot commented Aug 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@melonamin
melonamin marked this pull request as ready for review August 12, 2026 16:13
@melonamin
melonamin merged commit d40b7e5 into master Aug 12, 2026
9 checks passed
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.

1 participant