Skip to content

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

Open
jfeng18 wants to merge 2 commits into
alibaba:mainfrom
jfeng18:chore/sight-lint-v2
Open

style(sight): apply rustfmt + clippy -D warnings#726
jfeng18 wants to merge 2 commits into
alibaba:mainfrom
jfeng18:chore/sight-lint-v2

Conversation

@jfeng18

@jfeng18 jfeng18 commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Summary

Refreshed on latest main (supersedes #668). 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

Not changed

  • No logic changes — purely cosmetic
  • Generated artifacts not committed

Test plan

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

Supersedes #668

@jfeng18 jfeng18 requested a review from chengshuyi as a code owner June 4, 2026 23:59
@github-actions github-actions Bot added the component:sight src/agentsight/ label Jun 4, 2026
@jfeng18 jfeng18 force-pushed the chore/sight-lint-v2 branch 3 times, most recently from bd304f2 to c7f7c91 Compare June 6, 2026 13:24
jfeng18 and others added 2 commits June 10, 2026 19:31
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@jfeng18 jfeng18 force-pushed the chore/sight-lint-v2 branch from c7f7c91 to 784fd10 Compare June 10, 2026 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component:sight src/agentsight/

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant