Skip to content

[FEATURE] Add Clippy CI snippet #10

@prog-time

Description

@prog-time

Note

The task was generated using the MCP server — prog-time/mcp-github-issues

Type: feature

Context

Release: 1
Type: add
Priority: medium
Blocks:
Blocked by:
Status: todo


Description

The repository has no CI snippet for Clippy, the canonical linter for Rust. All major languages in the repo (Go, Python, Ruby, Java, Swift, Kotlin) already have a linter snippet, so Rust is the only obvious gap. The snippet belongs to the linters category and follows the established three-layer pattern.


Motivation

Rust projects rely on cargo clippy as their de-facto linter — there is no real alternative. A ready-made snippet lets downstream Rust projects drop a single-line uses: reference into their workflow and get meaningful lint feedback from day one.


Target Structure

scripts/shell/linters/clippy.sh         ← new bash script
scripts/CI/linters/clippy.yml           ← new source YAML
CI/linters/clippy.yml                   ← assembled output (generated)
tests/linters/clippy.bats               ← BATS unit tests

Checklist

  • Create scripts/shell/linters/clippy.sh (require Cargo.toml, run cargo clippy --all-targets --all-features -- -D warnings)
  • Create scripts/CI/linters/clippy.yml with dtolnay/rust-toolchain@stable and actions/cache@v4 for cargo registry/target
  • Run assembler and verify CI/linters/clippy.yml is generated
  • Create tests/linters/clippy.bats (missing Cargo.toml / clean / warning fixtures)
  • Add clippy row to the linters category in README.md
  • Run bats tests/linters/clippy.bats — all tests pass
  • Run bats --recursive tests/ — suite stays green

Affected Files

File Change
scripts/shell/linters/clippy.sh create
scripts/CI/linters/clippy.yml create
CI/linters/clippy.yml create (generated by assembler)
tests/linters/clippy.bats create
README.md add clippy row to snippets table

Affected Files

No files specified

Checklist

No checklist items

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions