Skip to content

Enable the clippy::pedantic lint group - #43

Open
emilk wants to merge 2 commits into
mainfrom
emilk/clippy-pedantic
Open

Enable the clippy::pedantic lint group#43
emilk wants to merge 2 commits into
mainfrom
emilk/clippy-pedantic

Conversation

@emilk

@emilk emilk commented Aug 18, 2026

Copy link
Copy Markdown
Member

Instead of opting in to pedantic lints one by one, enable the whole group and opt out of the noisy ones, mirroring emilk/egui#8429.

Lints that were already enabled here one-by-one stay enabled, so this only adds coverage. Clippy is clean with this.

Matching PRs: rerun-io/egui_table#63, rerun-io/egui_tiles#155, emilk/egui_plot#255, emilk/eframe_template#236.

Instead of opting in to pedantic lints one by one, enable the whole
group and opt out of the noisy ones, like in
emilk/egui#8429.

Lints that were already enabled one-by-one here stay enabled.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@emilk emilk added the exclude from changelog Do not include in CHANGELOG.md label Aug 18, 2026
@emilk
emilk marked this pull request as ready for review August 18, 2026 08:59
emilk added a commit to rerun-io/revy that referenced this pull request Aug 18, 2026
cargo-cranky is unmaintained, and Cargo has supported lint tables since 1.74, so
the lints move into Cargo.toml and CI calls `cargo clippy` directly.

The lint set is the one from rerun_template: all of `clippy::pedantic` on, with
the unhelpful ones opted out one by one.
See rerun-io/rerun_template#43.

`disallowed-macros` now says `std::dbg`, since plain `dbg` does not name a
reachable macro and clippy 1.95 warns about it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
emilk added a commit to rerun-io/quiver that referenced this pull request Aug 18, 2026
Instead of opting in to pedantic lints one by one, enable the whole group
and opt out of the noisy ones, mirroring
rerun-io/rerun_template#43

The only new hit was `copy_iterator` on `ListValue`, which is intentional.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
rerun-sync Bot pushed a commit to rerun-io/rerun that referenced this pull request Aug 19, 2026
### Related
Same pattern as:
* emilk/egui#8429
* emilk/eframe_template#236
* emilk/egui_plot#255
* rerun-io/egui_table#63
* rerun-io/egui_tiles#155
* rerun-io/rerun_template#43

### What
Instead of opting in to pedantic lints one by one, enable the whole
group in both the `rerun` and the `dataplatform` workspace, and opt out
of the noisy ones.

This deletes 91 explicit lint lines per workspace and picks up new
pedantic lints for free. Each opt-out carries its hit count, so the cost
of turning one back on is visible. `restriction` and `nursery` stay
opt-in per lint.

One commit per lint fixed.

---------

Source-Ref: 9b69ee8f23610b9b427da62f8ab9f6cf782a9a3d
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
@emilk
emilk requested a lite review from Copilot August 20, 2026 12:48

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Enables the clippy::pedantic lint group at the workspace level (with low priority), and explicitly opts out of a small set of noisy pedantic lints while preserving existing explicit lint settings.

Changes:

  • Enable pedantic as a workspace Clippy lint group (warn, priority = -1).
  • Remove many individually-listed pedantic lints that are now covered by the group.
  • Add an allowlist for selected pedantic lints to reduce noise (e.g., float comparisons, casts, naming-related lints).

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

IsseW pushed a commit to rerun-io/quiver that referenced this pull request Aug 20, 2026
* chore: bump MSRV to 1.95.0

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* chore: enable the `clippy::pedantic` lint group

Instead of opting in to pedantic lints one by one, enable the whole group
and opt out of the noisy ones, mirroring
rerun-io/rerun_template#43

The only new hit was `copy_iterator` on `ListValue`, which is intentional.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* docs: add `# Panics` sections, enabling `missing_panics_doc`

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Comment thread Cargo.toml
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

exclude from changelog Do not include in CHANGELOG.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants