Skip to content

style(sight): apply rustfmt + clippy -D warnings#668

Closed
jfeng18 wants to merge 3 commits into
alibaba:mainfrom
jfeng18:chore/sight-ci-gate
Closed

style(sight): apply rustfmt + clippy -D warnings#668
jfeng18 wants to merge 3 commits into
alibaba:mainfrom
jfeng18:chore/sight-ci-gate

Conversation

@jfeng18

@jfeng18 jfeng18 commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Summary

Refreshed on latest main. Applies cargo fmt + cargo clippy --fix + manual fixes to make the agentsight crate fully rustfmt + clippy -D warnings clean.

Changes

  • cargo fmt on all 100+ source files
  • cargo clippy --fix for auto-fixable lints (format strings, vec init, etc.)
  • Manual fixes: strip_prefix, &Path instead of &PathBuf, doc indentation
  • Crate-level #[allow] for generated BPF skeleton lints (unnecessary_cast, missing_safety_doc, etc.)

Not changed

  • No logic changes — purely cosmetic
  • Generated artifacts (agentsight.h) not committed

Test plan

  • 461 unit tests pass
  • cargo clippy -- -D warnings = 0 errors
  • cargo fmt --check = clean
  • Workflow adversarial review: PASS

jfeng18 and others added 3 commits June 3, 2026 19:59
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@jfeng18 jfeng18 force-pushed the chore/sight-ci-gate branch from 00f3707 to 73b745f Compare June 3, 2026 12:09
@jfeng18 jfeng18 changed the title ci(sight): enforce rustfmt + clippy -D warnings style(sight): apply rustfmt + clippy -D warnings Jun 4, 2026
@jfeng18 jfeng18 closed this Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component:sight src/agentsight/ scope:ci ./.github/ scope:documentation ./docs/|./*.md|./NOTICE

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant