Repository navigation
shell: shellcheck findings fail as warnings, strict optional checks, shfmt -s (part of #14676) - #14709
Conversation
|
Red
Shard 24 ( Generated by Claude Code |
|
Merge train: dropped, docs/cli/commands/quality.md conflicts with main (the perlcritic paragraph from #14711 landed next to the new shellcheck/shfmt paragraphs); core/quality/tools_registry.bzl also needs regenerating. Rebase onto main and re-queue. 🤖 Generated with Claude Code |
|
Merged origin/main into the branch (9754afe) and regenerated Generated by Claude Code |
|
#14711 landed and re-conflicted Generated by Claude Code |
|
Fixed: conflict already resolved on the branch by merge 9000fbf (another session, pushed while I was working). That merge keeps both the perlcritic paragraph from #14711 and the shellcheck/shfmt paragraphs in 🤖 Generated with Claude Code |
|
Red
Generated by Claude Code |
|
Merge train: dropped, //tools/ci:command_docs_test fails (passes on main): 🤖 Generated with Claude Code |
…shfmt -s (part of #14676) shellcheck gets severity(default = "warning"), so style and info findings fail the default --fail-on. Both tiers set external-sources=true. Strict keeps add-default-case, check-extra-masked-returns, check-set-e-suppressed, check-unassigned-uppercase and deprecate-which, and drops the noisy optional checks. shfmt runs with -s. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xut2hzCY9baSVjcqMb5hoA
The quality page now names shfmt's -s flag, which is a tool flag, not a dx quality flag, like the -c and --features entries already listed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xut2hxcqqAoDeuSr83mscS
9000fbf to
e3d6ddf
Compare
|
Fixed: 🤖 Generated with Claude Code |
…(part of #14676) The routine forbids growing allowlists; the page no longer names a flag token. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xut2hzCY9baSVjcqMb5hoA
|
Generated by Claude Code |
Linked Issue
Part of #14676
Changes
shellcheckrow passesseverity(default = "warning"), so style, info and note findings fail the default--fail-on warning. Regeneratedtools_registry.bzlandseverity_gen.rs.core/quality/tiers/shellcheck/standard.shellcheckrcandstrict.shellcheckrcsetexternal-sources=true.add-default-case,check-extra-masked-returns,check-set-e-suppressed,check-unassigned-uppercase,deprecate-whichand drops the excluded checks (avoid-negated-conditions,avoid-nullary-conditions,quote-safe-variables,require-double-brackets,require-variable-braces,useless-use-of-cat). Checked against the pinned shellcheck 0.11.0: the rc parses and SC2249/SC2230 fire.shfmtcheck and fix run with-s.-lnstays at shfmt's defaultauto, which already reads the shebang.docs/cli/commands/quality.mddocuments both.commands_tests.rsargv assertions for shfmt updated.Not in this PR: the
set -euo pipefailand reasonless# shellcheck disable=guard checks (no shared agent-guard hook exists yet, see #14647 item 6), and--check-sourced(the gcc parser rejects findings in files that were not passed in).Verification
Tested:
bazel test //core/quality/adapter:quality_adapter_test //core/quality/adapter:update_severity_test //core/quality:tools_registry_test //core/quality:registry_unit //core/quality:tools_unit //core/quality:unavailable_rows_test //docs:update_tool_configs_test //docs:update_tiers_tests //cli/generate:update_tools_test— all 10 passed.Not run:
tools/dx check --applyon the touched files. In this cloud container it analyzed far past the touched packages and failed on unrelated packages (the opam-repository archive returns 403 through the proxy, plus aspect errors in//lua/private/coverageand//rust/tests/fixtures/native_call).Generated by Claude Code