Repository navigation
lint: deny map_err_ignore and unused_result_ok repo-wide - #14530
Conversation
Moves clippy::map_err_ignore and clippy::unused_result_ok from per-crate #![deny] attributes into .bazelrc and the strict clippy tier, adds both to the lint_attributes_test LINTS list, and fixes the 22 remaining sites in cli/archive, audit, depcheck, diff, dx_config, fingerprint, fuzz_run, gomod, lock tests, ocaml_cc_driver, semver, shim, the adopt test and tools/testing/determinism_check. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xut2i1LGG35HHijhcHmpFH
|
Generated by Claude Code |
|
Generated by Claude Code |
|
The affected-tests failures in shards 4 and 12 are not this PR's. I checked them locally on this PR's head (cda0cd8) and on main 8c9c770:
Generated by Claude Code |
|
Shards 19 and 15 aren't this PR's either:
Generated by Claude Code |
|
Shard 26 failed before any test ran: Generated by Claude Code |
|
Shard 22 fails only in Generated by Claude Code |
|
Shard 13 fails only in Generated by Claude Code |
|
Shard 11's two failures, Generated by Claude Code |
|
Shard 0 fails only in Generated by Claude Code |
|
Shard 25's failures are not this PR's:
Shard 18 was cut off by a runner shutdown signal (exit 143), the same as shard 17. Generated by Claude Code |
|
Shard 24 isn't this PR's. Locally, all 16
Generated by Claude Code |
…sult_ok denies (part of #12395) #14530 added both clippy denies to the rendered .bazelrc but left the renders_rust inline snapshot behind, so //cli/generate:dx_generate_test fails on main. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xut2hz7pt5D3ebRnkfBrgN
Closes #13800
Closes #14484
Adds
-Dclippy::map_err_ignoreand-Dclippy::unused_result_okto.bazelrcandcore/quality/tiers/clippy/strict.txt, adds both toLINTSintools/ci/lint_attributes_test.rs, and lists them on the strict tier indocs/cli/commands/quality.md. Consumers on the strict tier now get both lints.Takes both lints out of every per-crate and per-module
#[deny(..)](89 files, including the module-level ones incli/exec_reports); lists that drop back toindexing_slicing, string_sliceuse the one-line form.Fixes the 22 sites the repo-wide flag found (in cli/archive, audit, depcheck, diff, dx_config, fingerprint, fuzz_run, gomod, lock tests, ocaml_cc_driver, semver, shim, the adopt test, and tools/testing/determinism_check):
write!/writeln!(..).ok()into a String becomespush_str(&format!(..)).BUILD_WORKSPACE_DIRECTORYerrors in the schema bins, the fixture resolver variable, and the--shardparse error..ok().ok_or_else(..).rustfmt also reformatted a few touched files that were not formatted on main (
tools/testing/analysis_scaling_check.rs,determinism_check.rs,deploy/private/src/bin_nfpm_stage.rs,cli/lock/src/lib.rstests).Tested:
tools/dx lint //cli/...andtools/dx check --applyon all touched files report neither lint.bazel test -k --build_tests_onlyon the 73 touched packages plus//cli/cli:dx_cli_test,//cli/cli/tests/adopt:adopt_testand//tools/ci:lint_attributes_test: 314 pass.strict_tier_and_bazelrc_deny_the_same_rust_lintspasses. These fail the same way on main, on files this PR does not touch: the//tools/ciguard tests (lint_attributes_test'spanic_family_expects…for cli/exec_quality/src/testing.rs andno_source_discards…for cli/codegen_shard and deploy/private/src/crates.rs; zero_compat, prose_rules, pin_locations, aggregate_gates, config_consistency, and other allowlist drift),//tools/testing/nested:dx_nested_test(rules_flutter pin) and//cli/generate:dx_generate_test(read-only file system in the cloud sandbox).Generated by Claude Code