Repository navigation
chore(lint): make tool warnings fatal - #6145
Conversation
Biome's recommended rules default to warn and `biome check` exits 0 on warnings, so 15 crept into js/net. Fix them and pass --error-on-warnings. The wasm32 clippy lane builds tokio without `time`, so the tokio::time entries in moq-mux and moq-ffi clippy.toml did not resolve. Mark them allow-invalid. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…notices Sphinx: json.py annotated tracks with bare TrackProducer/TrackConsumer, which match three documented classes. Qualify them by module like flate.py, and build with -W --keep-going locally and fail_on_warning on Read the Docs. OBS: the source test includes moq-source.cpp, so GCC treated it as a header and flagged moq_source holding anonymous-namespace types. Move moq_source into the namespace, and compile the plugin and tests with -Werror. Vite: use import.meta.dirname and explicit .ts extensions in every config, which the native config loader requires. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tion-warnings-8f0f61 # Conflicts: # sh/js/workspace.test.py
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 9 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
@moq/qmux landed alongside the doc-comment check in the package build, so its build failed on the undocumented WebTransport members. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # js/qmux/src/error.ts # js/qmux/src/session.ts
|
Merged The Checks: (Written by Claude Opus 5.5) |
…tion-warnings-8f0f61 # Conflicts: # js/net/src/track.ts
|
Merged Checks on 372805a: The PR diff itself is unchanged from the Codex-reviewed 0a9771c, so the merge didn't get a fresh review. (Written by Claude Opus 5.5) |
Several tools in
just checkprinted warnings and still exited 0, so the warnings piled up. This PR fixes each one at the source and makes it fatal where the tool allows.warn, andbiome checkexits 0 on warnings. Fixed the 15 that had crept intojs/net(13 non-null assertions, one catch-parameter reassignment, one optional chain).sh/js/workspace.pynow passes--error-on-warnings.time, so thetokio::time::*entries inrs/moq-muxandrs/moq-ffididn't resolve (10 warnings). Marked those entriesallow-invalid. These are config diagnostics, not lints, so neither-D warningsnorbuild.warnings = "deny"can gate them. A regression here prints again but won't fail.moq/json.pyannotated tracks with bareTrackProducer/TrackConsumer, which match three documented classes each, so the doc links were ambiguous. They are now qualified by module, asflate.pyalready does.just py docsnow builds with-W --keep-going, and Read the Docs withfail_on_warning.#includesmoq-source.cpp, so GCC treated it as a header and warned (-Wsubobject-linkage) thatmoq_sourceholds anonymous-namespace types.moq_sourcemoved into the anonymous namespace, since only that TU uses it and OBS sees it asvoid *.sh/obs/compile.shandsh/obs/unit.shnow build with-Werror.vite.config.tsnow usesimport.meta.dirnameand explicit.tsextensions, which Vite's upcoming native config loader requires. Vite has no switch to make this notice fatal.sh/js/workspace.test.py: moq-dev/moq#6086 callsjust.chmodbefore the stub is written, sotest_dispatcher_passes_only_js_impact_pathsfails on main. That fix is in the merge commit, which also resolves the conflict on the Biome expectations.Left alone on purpose: uniffi's "old-style --config" notice (maturin passes
uniffi.tomlexplicitly; the file only holds a Kotlin rename, which the Kotlin build applies), the Dart0.0.0-devversion hint, and Vite's chunk-size advisories.Public API / wire impact: none. The Python change only touches annotations.
Checks:
MOQ_STRICT=1 just checkpasses on the final head.MOQ_STRICT=1 just check --allpassed on the Biome/clippy commit, before the Sphinx/OBS/Vite one. Also ransh/obs/unit.sh(with-Werror),just obs compile, and the wasm32 clippy lane.vite buildloads every changed config.(Written by Opus 5.5)
🤖 Generated with Claude Code