Skip to content

lint: promote all warnings to deny and add restriction lints#154

Merged
sachiniyer merged 1 commit intomainfrom
lint/strict-restrictions
Mar 7, 2026
Merged

lint: promote all warnings to deny and add restriction lints#154
sachiniyer merged 1 commit intomainfrom
lint/strict-restrictions

Conversation

@sachiniyer
Copy link
Copy Markdown
Contributor

@sachiniyer sachiniyer commented Mar 7, 2026

Summary

  • Promote all warnings to deny: pedantic group, expect_used, large_futures — violations now break the build instead of just warning
  • Add restriction lints (all as deny): dbg_macro, todo, unimplemented, mem_forget, wildcard_enum_match_arm, allow_attributes_without_reason, verbose_file_reads, rest_pat_in_fully_bound_structs
  • Add Rust-level lints: unsafe_code = "deny", unreachable_pub = "deny"
  • Fix violations: explicit enum arms in logo_math.rs and lib.rs, inline #[allow(..., reason = "...")] for external enum wildcard in auth.rs, unsafe block in render.rs, and generated code in api/mod.rs

With inline #[allow] requiring a reason, every exception is now documented at the point of use.

Test plan

  • cargo clippy — 0 warnings, 0 errors
  • cargo test — 139 tests pass
  • cargo fmt --check — clean
  • CI passes

🤖 Generated with Claude Code


Open with Devin

Promote pedantic, expect_used, and large_futures from warn to deny.
Add restriction lints: dbg_macro, todo, unimplemented, mem_forget,
wildcard_enum_match_arm, allow_attributes_without_reason,
verbose_file_reads, rest_pat_in_fully_bound_structs.
Add rust-level lints: unsafe_code and unreachable_pub as deny.
Fix all violations with inline allows where needed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 2 additional findings.

Open in Devin Review

@sachiniyer sachiniyer merged commit 9f2106b into main Mar 7, 2026
11 checks passed
@sachiniyer sachiniyer deleted the lint/strict-restrictions branch March 7, 2026 02:00
sachiniyer added a commit that referenced this pull request Mar 12, 2026
## Summary
- Bumps version from 0.1.10 to 0.1.11
- The release workflow will auto-tag and build artifacts when merged to
main

### Changes since v0.1.10

**Features:**
- Add shell tab completion via clap_complete (#182)
- Add --scan-id flag to bugs list command (#184)
- Add scans list command (#163)
- Add scans to the skill.md for the detail CLI (#185)
- Auto-detect repository in detail-bugs skill (#160)

**Fixes:**
- Show user-friendly error messages instead of debug output (#129)
- Continue list numbering across pages instead of resetting (#130)
- Add file locking to prevent concurrent config overwrites (#131)

**Chores & Refactoring:**
- Replace Makefile with cargo xtask (#159)
- Upgrade all dependencies to latest versions (#158)
- Enable comprehensive clippy lints (pedantic, nursery, restriction)
(#134, #135, #144, #152, #153, #154, #155)
- Add GitHub Pages workflow for API docs (#178)
- Add Scalar API reference page (#177)
- Add integration tests against live API (#181)
- Remove alpha warning from README (#156)

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant