Skip to content

chore: document rationale for existing allow attributes#151

Merged
bug-ops merged 2 commits into
masterfrom
fix/147-allow-lint-justification
Jul 9, 2026
Merged

chore: document rationale for existing allow attributes#151
bug-ops merged 2 commits into
masterfrom
fix/147-allow-lint-justification

Conversation

@bug-ops

@bug-ops bug-ops commented Jul 9, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add a one-line rationale comment above each item-level #[allow(...)] attribute that lacked one, per the CLAUDE.md requirement that new suppressions be justified inline
  • Covers crates/mcp-skill/src/context.rs, crates/mcp-server/src/service.rs, and crates/mcp-cli/src/commands/{introspect,skill,generate}.rs
  • crates/mcp-core/src/error.rs:346 intentionally left untouched (inside a #[test] fn, self-explanatory from context, out of scope per the issue)

Test plan

  • cargo +nightly fmt --check
  • cargo +stable clippy --all-targets --all-features --workspace -- -D warnings
  • cargo nextest run --all-features --workspace --no-fail-fast (696 passed)
  • cargo test --doc --all-features --workspace (all doctests pass)
  • git diff confirmed comment-only change (13 insertions, 0 deletions)

Closes #147

@github-actions github-actions Bot added area: cli CLI commands and interface area: bridge MCP bridge and integration crate: mcp-cli Changes to mcp-cli crate (command-line interface) type: documentation Documentation changes (*.md, docs/, comments) breaking change Contains breaking API changes (requires major version bump) release Release preparation (changelog, version bumps) labels Jul 9, 2026
bug-ops added 2 commits July 9, 2026 19:31
Add a comment above each item-level #[allow(...)] explaining why the
lint does not apply, per the CLAUDE.md requirement for new suppressions.

Closes #147
@bug-ops
bug-ops enabled auto-merge (squash) July 9, 2026 17:31
@bug-ops
bug-ops force-pushed the fix/147-allow-lint-justification branch from 65da489 to 305f3a1 Compare July 9, 2026 17:31
@bug-ops
bug-ops merged commit 6fe8c08 into master Jul 9, 2026
17 checks passed
@bug-ops
bug-ops deleted the fix/147-allow-lint-justification branch July 9, 2026 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: bridge MCP bridge and integration area: cli CLI commands and interface breaking change Contains breaking API changes (requires major version bump) crate: mcp-cli Changes to mcp-cli crate (command-line interface) release Release preparation (changelog, version bumps) type: documentation Documentation changes (*.md, docs/, comments)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

several #[allow(...)] attributes lack the required justification comment

1 participant