Skip to content

Enforce rust-llm-tidy standards repo-wide and gate PRs on them - #148

Merged
Sewer56 merged 7 commits into
mainfrom
rust-llm-tidy
Aug 9, 2026
Merged

Enforce rust-llm-tidy standards repo-wide and gate PRs on them#148
Sewer56 merged 7 commits into
mainfrom
rust-llm-tidy

Conversation

@Sewer56

@Sewer56 Sewer56 commented Aug 9, 2026

Copy link
Copy Markdown
Member

Enforce rust-llm-tidy standards repo-wide and gate PRs on them

ReloadedCode now conforms to the default rust-llm-tidy rule set, and CI auto-tidies every PR against it. The run resolves all 82 lint findings (DOC001, DOC002, DOC004, DOC006), so a no-config pass is clean across the whole workspace.

Applying the rust-llm-tidy default pass touched 171 files:

  • Rust sources: reorder declarations (mods, impls, aliases) to rustfmt order; tighten visibility; move link-reference definitions back inside the doc comments they drifted out of; add missing doc comments with # Arguments, # Errors, and # Returns sections.
  • Markdown docs and README: align tables, convert inline links to link-reference definitions grouped at file end, fix fences.
  • No behavior change: edits are mechanical and normalized with cargo fmt.

The last commits settle convergence between the tidy reorder rule and rustfmt on cfg(test) test-module placement. That agreement is what lets CI gate on the default run with no .rust-llm-tidy.yml config.

CI gate. The new tidy.yml runs on PRs touching src/**, **/*.md, or **/*.MD. It uses Sewer56/rust-llm-tidy-action@v1 in apply mode: checkout the PR branch head, tidy changed files in place, commit and push fixes back to the branch, then post a report comment.

Risk. The only blast radius is the apply-mode workflow carrying contents: write on PRs; it force-applies style fixes to contributor branches automatically and can rewrite contributor commits.

Verification. Not run. The workspace has no prebuilt target/, so a full multi-crate check was out of scope here; each commit is cargo-fmt normalized and the final commit states the default run is clean.

Sewer56 added 5 commits August 9, 2026 16:49
…ences, links, lints)

Automated rust-llm-tidy output on the whole workspace with default settings,
normalized with cargo fmt. Fixes links-op reference definitions that were
appended outside doc comments by placing them back inside the doc comments.

Remaining lint findings (DOC001/DOC002/DOC004/DOC006) still open.
…e DOC001/DOC004/DOC006

Fixes all 82 rust-llm-tidy lint findings across the workspace via parallel
subagents; also settles remaining mod-declaration reorder convergence.
- reword redundant 'inlined inline' doc in entry.rs
- move doc comment above #[allow(dead_code)] in benches/common/mod.rs
- normalize # Arguments bullet style in bash impls and grep.rs to house
  style ('- `x`: desc')
- keep cfg(test) test-module placement as rustfmt requires (rust-llm-tidy
  reorder would move these 3 mods before their cfg(test) block; rustfmt
  moves them after - the repo's formatter wins. rust-llm-tidy reports only
  these 3 non-fatal REORDER records)
Add a Tidy workflow that tidies PR-changed .rs/.md files with the official
rust-llm-tidy action (mode: apply) and, on a pull request, commits and pushes
the fix commit back to the PR branch.

No .rust-llm-tidy.yml config is required: the reorder op now agrees with rustfmt
on cfg(test) test-module placement, so the default (no-config) run is clean
across the whole tree and CI can gate on it.
@codecov

codecov Bot commented Aug 9, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 77.67528% with 242 lines in your changes missing coverage. Please review.
✅ Project coverage is 80.37%. Comparing base (cb13303) to head (c78433d).
⚠️ Report is 8 commits behind head on main.

Files with missing lines Patch % Lines
src/reloaded-code-bubblewrap/src/probe.rs 0.00% 28 Missing ⚠️
...-serdesai/src/agent_runtime/provider_bridge/mod.rs 88.60% 22 Missing ⚠️
...d-code-core/src/models/catalog/internal/builder.rs 79.38% 20 Missing ⚠️
src/reloaded-code-bubblewrap/src/profile/types.rs 0.00% 14 Missing ⚠️
...rc/reloaded-code-agents/src/types/tool_settings.rs 79.66% 12 Missing ⚠️
src/reloaded-code-serdesai/src/agent_ext.rs 29.41% 12 Missing ⚠️
src/reloaded-code-serdesai/src/tools/todo.rs 33.33% 12 Missing ⚠️
...code-core/src/context/tool_prompt/tool_sections.rs 64.51% 11 Missing ⚠️
src/reloaded-code-core/src/tools/bash/mod.rs 56.00% 11 Missing ⚠️
src/reloaded-code-bubblewrap/src/profile/layout.rs 0.00% 8 Missing ⚠️
... and 30 more
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #148      +/-   ##
==========================================
- Coverage   80.39%   80.37%   -0.03%     
==========================================
  Files         118      118              
  Lines        4688     4688              
==========================================
- Hits         3769     3768       -1     
- Misses        919      920       +1     
Flag Coverage Δ
async 79.98% <77.55%> (-0.03%) ⬇️
blocking 57.54% <47.56%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...rc/reloaded-code-agents/src/parser/preprocessor.rs 94.44% <ø> (ø)
src/reloaded-code-agents/src/path/resolver.rs 87.50% <100.00%> (ø)
src/reloaded-code-agents/src/runtime/model.rs 68.42% <100.00%> (ø)
src/reloaded-code-agents/src/runtime/state.rs 98.03% <100.00%> (ø)
src/reloaded-code-agents/src/runtime/task.rs 100.00% <100.00%> (ø)
...rc/reloaded-code-bubblewrap/src/profile/builder.rs 0.00% <ø> (ø)
...rc/reloaded-code-bubblewrap/src/profile/factory.rs 0.00% <ø> (ø)
...rc/reloaded-code-bubblewrap/src/profile/presets.rs 0.00% <ø> (ø)
...reloaded-code-core/benches/common/corpus_medium.rs 0.00% <ø> (ø)
src/reloaded-code-core/benches/permissions.rs 0.00% <ø> (ø)
... and 88 more
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions

github-actions Bot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

rust-llm-tidy: ✅ fixes applied

I tidied the files below and pushed commit 342428a.

Changed files:

  • src/reloaded-code-models-dev/src/catalog/mod.rs
  • src/reloaded-code-serdesai/src/agent_runtime/provider_bridge/mod.rs

@github-actions

github-actions Bot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

rust-llm-tidy: ✅ all tidy

All files are tidy - no changes required.

@github-actions

github-actions Bot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

rust-llm-tidy: ✅ all tidy

All files are tidy - no changes required.

Sewer56 and others added 2 commits August 9, 2026 22:27
…gate pass

Fix rustdoc unresolved-link warnings in builder.rs, core/context/mod.rs,
serdesai/task.rs (field and crate-path doc links) for the
cargo doc -D warnings CI gate.

rust-llm-tidy's link op collapses inline [x](Self::x) links into
reference-style [x] + [x]: Self::x and appends the defs at EOF outside
any comment. rustdoc scopes reference defs to a single doc comment, and
EOF defs are invalid Rust, so the tidy apply action would re-break
builder.rs during the self-review gate. Inline crate:: links
(core/serdesai) are tidy-stable; builder.rs field links use variant C:
each doc comment using a label carries its own [label]: Self::<field>
def, which tidy leaves alone and rustdoc accepts.
Automated by the rust-llm-tidy GitHub Action.
@github-actions

github-actions Bot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

rust-llm-tidy: ✅ all tidy

All files are tidy - no changes required.

@Sewer56
Sewer56 merged commit 40f7c1c into main Aug 9, 2026
21 of 22 checks passed
@Sewer56
Sewer56 deleted the rust-llm-tidy branch August 9, 2026 21:30
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