Skip to content

Format code and add formatting guidelines - #98

Merged
popen2 merged 1 commit into
mainfrom
claude/charming-knuth-HhKKr
May 25, 2026
Merged

popen2 merged 1 commit into
mainfrom
claude/charming-knuth-HhKKr

Conversation

@popen2

@popen2 popen2 commented May 25, 2026

Copy link
Copy Markdown
Member

Summary

This PR applies code formatting changes across the repository and establishes formatting standards for future contributions.

Key Changes

  • Code formatting: Applied cargo fmt to normalize code style across multiple files:

    • k8s-agent/src/cluster_discovery.rs: Reformatted multi-line attribute macros and function signatures
    • k8s-agent/src/config.rs: Reformatted multi-line attribute macros
    • chart-discovery/src/main.rs: Reformatted multi-line attribute macros
    • chart-discovery/src/oci_poll.rs: Reformatted import statements for consistency
  • CI enforcement: Added a new fmt job to .github/workflows/release.yml that runs cargo fmt --all -- --check to ensure all future contributions maintain consistent formatting

  • Documentation: Created AGENTS.md with guidelines for contributors, including instructions to run cargo fmt --all before committing

Notable Details

The formatting changes are purely stylistic and do not alter any functionality. The new CI job will prevent merging of PRs with unformatted code, ensuring the repository maintains consistent code style going forward.

https://claude.ai/code/session_01LSAxBMnoN7xwgZSsajZ9ZR

Add a `fmt` job to the release workflow that runs `cargo fmt --all -- --check`
so PRs fail when code isn't formatted, and document in AGENTS.md that agents
must run `cargo fmt --all` after code changes. Also format existing code so the
check passes.

https://claude.ai/code/session_01LSAxBMnoN7xwgZSsajZ9ZR
@popen2
popen2 merged commit a366cf6 into main May 25, 2026
6 checks passed
@popen2
popen2 deleted the claude/charming-knuth-HhKKr branch May 25, 2026 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants