Skip to content

Update project for latest pmat v2.200.0 features #40

@noahgift

Description

@noahgift

Overview

Update aprender to use the latest pmat v2.200.0 features for improved quality gates and tooling.

Current Status

Rust Project Score: 124.0/134 (92.5%, Grade: A+)

New Features to Integrate

  1. Quality Gates Configuration (pmat quality-gates)

    • Initialize .pmat-gates.toml with project standards
    • Integrate with CI/CD pipeline
    • Document usage in CLAUDE.md
  2. Semantic Code Search (pmat semantic)

    • Enable semantic code search with embeddings
    • Document usage for finding similar code patterns
  3. Mutation Testing (pmat mutate)

    • Integrate mutation testing into quality gates
    • Target: ≥80% mutation score
  4. Enhanced Scoring (pmat rust-project-score)

    • Add to CI/CD pipeline
    • Track score trends over time

Critical Issues Identified

  • 326 unwrap() calls in production code (Cloudflare-class defect)
    • Replace with .expect() or proper error handling
    • Enforce with clippy disallowed-methods
    • Separate tracking issue needed

Recommendations from pmat

  • Add workspace.lints for consistent linting
  • Enable high-value lint categories
  • Create .clippy.toml with disallowed-methods
  • Improve test coverage to ≥85%
  • Add benchmark CI workflow

Acceptance Criteria

  • .pmat-gates.toml configured and working
  • Makefile updated with new pmat commands
  • CLAUDE.md updated with latest features
  • CI/CD using new pmat features
  • Documentation complete
  • All 742 tests pass

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions