Skip to content

Replace forbidden #[allow] attributes with narrowly-scoped #[expect] attributes #333

@coderabbitai

Description

@coderabbitai

Problem

The codebase contains multiple instances of #[allow] attributes which are forbidden per our coding guidelines. These need to be replaced with narrowly-scoped #[expect(lint, reason = "...")] attributes and annotated with FIXME comments.

Affected Files

The following files contain forbidden #[allow] attributes:

  • tests/common/mod.rs (lines 22-29)
  • wireframe_testing/src/logging.rs (lines 77-79)
  • wireframe_testing/src/helpers.rs (lines 18-20)
  • tests/session_registry.rs (lines 9-11 and 16-18)
  • tests/push_policies.rs (lines 15-17)
  • tests/extractor.rs (lines 13-15 and 20-22)
  • tests/connection_actor.rs (lines 21-23, 28-30, 35-37)
  • tests/app_data.rs (lines 14-16 and 21-23)
  • examples/ping_pong.rs (lines 43-44: allow(clippy::unused_async))
  • src/server/config/binding.rs (lines 26, 69, 141: allow(private_bounds))

Acceptance Criteria

  • All #[allow(...)] attributes replaced with #[expect(...)]
  • Each replacement includes a FIXME comment with issue reference
  • Lint suppressions remain narrowly scoped to the smallest viable scope
  • All existing functionality preserved
  • Code passes make fmt, make lint, and make test

References

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions