Skip to content

style: fix clippy::items_after_statements warnings#231

Merged
Brooooooklyn merged 2 commits into
mainfrom
fix/clippy-items-after-statements
Oct 17, 2025
Merged

style: fix clippy::items_after_statements warnings#231
Brooooooklyn merged 2 commits into
mainfrom
fix/clippy-items-after-statements

Conversation

@Brooooooklyn

Copy link
Copy Markdown
Member

style: fix clippy::items_after_statements warnings

Move item declarations (const, use, extern) to the beginning of their scopes:

  • macos.rs: Move DYLD_INSERT_LIBRARIES const to function start
  • client/mod.rs: Move extern "C" blocks and use statements before code
  • unix/mod.rs: Move PRELOAD_CDYLIB and SAFE_FD_NUM consts to function/scope start

These changes improve code organization and follow Rust best practices
where items should be declared at the start of their scope.

🤖 Generated with Claude Code

Co-Authored-By: Claude noreply@anthropic.com

style: fix clippy::items_after_statements in test code

Move item declarations (struct, use statements) to the beginning of test
functions to comply with clippy::items_after_statements lint.

Changes:

  • vite_package_manager/src/request.rs: Move struct and use statements to
    the beginning of test functions
  • vite_task/src/fingerprint.rs: Move use statements to the beginning of
    test functions and remove duplicate imports

All tests pass and clippy is clean with -D clippy::items_after_statements.

🤖 Generated with Claude Code

Co-Authored-By: Claude noreply@anthropic.com

Brooooooklyn commented Oct 16, 2025

Copy link
Copy Markdown
Member Author

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting

Comment thread crates/fspy/src/unix/mod.rs

Brooooooklyn commented Oct 17, 2025

Copy link
Copy Markdown
Member Author

Merge activity

  • Oct 17, 6:08 AM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Oct 17, 6:09 AM UTC: Graphite rebased this pull request as part of a merge.
  • Oct 17, 6:14 AM UTC: @Brooooooklyn merged this pull request with Graphite.

@Brooooooklyn
Brooooooklyn changed the base branch from fix/clippy-redundant-closure-for-method-calls to graphite-base/231 October 17, 2025 06:08
@Brooooooklyn
Brooooooklyn changed the base branch from graphite-base/231 to main October 17, 2025 06:08
Brooooooklyn and others added 2 commits October 17, 2025 06:08
Move item declarations (const, use, extern) to the beginning of their scopes:
- macos.rs: Move DYLD_INSERT_LIBRARIES const to function start
- client/mod.rs: Move extern "C" blocks and use statements before code
- unix/mod.rs: Move PRELOAD_CDYLIB and SAFE_FD_NUM consts to function/scope start

These changes improve code organization and follow Rust best practices
where items should be declared at the start of their scope.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Move item declarations (struct, use statements) to the beginning of test
functions to comply with clippy::items_after_statements lint.

Changes:
- vite_package_manager/src/request.rs: Move struct and use statements to
  the beginning of test functions
- vite_task/src/fingerprint.rs: Move use statements to the beginning of
  test functions and remove duplicate imports

All tests pass and clippy is clean with -D clippy::items_after_statements.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@Brooooooklyn
Brooooooklyn force-pushed the fix/clippy-items-after-statements branch from a92ef8a to 8b70578 Compare October 17, 2025 06:08
@Brooooooklyn
Brooooooklyn merged commit fd36c42 into main Oct 17, 2025
9 checks passed
@Brooooooklyn
Brooooooklyn deleted the fix/clippy-items-after-statements branch October 17, 2025 06:14
wan9chi pushed a commit that referenced this pull request Mar 12, 2026
- feat: add pre/post lifecycle hooks for package.json scripts (#231)
- feat: fast-fail execution when a task fails (#233)

Also syncs run-config.ts types for new `enablePrePostScripts` option.

https://claude.ai/code/session_0139LsSbe67hcD8NKKaK6Y8U
fengmk2 pushed a commit that referenced this pull request Mar 12, 2026
## Summary
- Bump vite-task dependency from `7e28617` to `28f371a` (latest main)
- Picks up:
  - feat: add pre/post lifecycle hooks for package.json scripts (#231)
  - feat: fast-fail execution when a task fails (#233)
- Syncs `run-config.ts` types for new `enablePrePostScripts` option

## Test plan
- [x] `cargo check --all-targets --all-features` passes
- [x] `cargo test -p vite-plus-cli` passes (22 tests)
- [x] `run-config.ts` types synced
- [ ] CI passes
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.

2 participants