Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix formatting #2295

Merged
merged 6 commits into from
Mar 24, 2025
Merged

Conversation

hyperupcall
Copy link
Contributor

@hyperupcall hyperupcall commented Mar 23, 2025

Description

Commit b6f62a4 introduced some ShellCheck errors. This cleans up most of the low-hanging fruit (shell quoting, extraneous dollar sign in arithmetic context, inability to follow non-constant source, etc.). Note that there are still errors remaining, but much fewer exist after this change. Maybe I can fix the rest of the errors in another PR?

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • If my change requires a change to the documentation, I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • If I have added a new file, I also added it to clean_files.txt and formatted it using lint_clean_files.sh.
  • I have added tests to cover my changes, and all the new and existing tests pass.

@akinomyoga
Copy link
Contributor

This is essentially a duplicate of #2294.

@seefood seefood self-assigned this Mar 23, 2025
@seefood
Copy link
Contributor

seefood commented Mar 23, 2025

This is essentially a duplicate of #2294.

true. Edwin, see if you can merge them and see what's left.

also, have you installed pre-commit?

@hyperupcall
Copy link
Contributor Author

hyperupcall commented Mar 23, 2025

Oh oops I completely missed that! (my browser had an outdated view of the PR tab). I'll merge those changes in here once that's done

Yeah I've installed pre-commit I'm running all my changes through that before pushing

@hyperupcall hyperupcall marked this pull request as draft March 23, 2025 08:36
@seefood
Copy link
Contributor

seefood commented Mar 23, 2025

well, #2294 is done, please pull master and see if there's anything left?

@hyperupcall hyperupcall marked this pull request as ready for review March 24, 2025 04:54
@hyperupcall hyperupcall changed the title Reduce ShellCheck errors in completion directory Fix formatting Mar 24, 2025
@seefood seefood assigned akinomyoga and unassigned seefood Mar 24, 2025
@seefood seefood merged commit d763b08 into Bash-it:master Mar 24, 2025
7 checks passed
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.

3 participants