Skip to content

Fix (some) shellcheck lint errors#6598

Closed
GuillaumeGomez wants to merge 2 commits intorust-lang:mainfrom
GuillaumeGomez:lint-errors
Closed

Fix (some) shellcheck lint errors#6598
GuillaumeGomez wants to merge 2 commits intorust-lang:mainfrom
GuillaumeGomez:lint-errors

Conversation

@GuillaumeGomez
Copy link
Member

Reopening of rust-lang/rust#143512.

You can see the explanations for each lints fixed in the original PR.

@GuillaumeGomez GuillaumeGomez changed the title Fix shellcheck lint errors Fix (some) shellcheck lint errors Jul 6, 2025
@GuillaumeGomez
Copy link
Member Author

I'm a bit confused by the errors, can't figure out if they come from my changes or not. Don't see where I could have mess things up though...

@Manishearth Manishearth enabled auto-merge (rebase) October 9, 2025 05:46
@jieyouxu jieyouxu added S-waiting-on-review Status: awaiting review from the assignee but also interested parties. and removed pr-not-reviewed labels Feb 19, 2026
@jieyouxu jieyouxu disabled auto-merge March 3, 2026 15:15
@jieyouxu jieyouxu closed this Mar 3, 2026
@rustbot rustbot removed the S-waiting-on-review Status: awaiting review from the assignee but also interested parties. label Mar 3, 2026
@jieyouxu jieyouxu reopened this Mar 3, 2026
@rustbot rustbot added the S-waiting-on-review Status: awaiting review from the assignee but also interested parties. label Mar 3, 2026
local build=$(cargo test $test_args 2>&1)
if [[ "$build" =~ "build failed" ]] || [[ "$build" =~ "test result: FAILED." ]]; then
local build
# shellcheck is complaining that `$test_args` can be interpreted as multiple arguments
Copy link
Member

Choose a reason for hiding this comment

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

Thought: we may want to run some version of ShellCheck in CI, but not for this PR.

@GuillaumeGomez
Copy link
Member Author

Nah let's close this. From working on this PR, my main thought was mostly: "we should rewrite this in python or in Rust" as even the shell linters doesn't improve the code much (imo) and only highlight the complexity of the shell language.

@rustbot rustbot removed the S-waiting-on-review Status: awaiting review from the assignee but also interested parties. label Mar 3, 2026
@GuillaumeGomez GuillaumeGomez deleted the lint-errors branch March 3, 2026 15:20
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.

4 participants